DinastiAPI AI icon

DinastiAPI AI

Send WhatsApp messages using DinastiAPI - optimized for AI workflows

Overview

The node "DinastiAPI AI" integrates with the DinastiAPI service to interact with WhatsApp messaging and related features, optimized for AI workflows. It supports a wide range of operations such as sending various message types (text, images, documents, audio, video, locations, contacts, stickers, buttons, lists, polls, links, status updates), retrieving user or group information, checking user existence, downloading avatars, and listing newsletters.

Specifically, the List Newsletters operation fetches a complete list of subscribed newsletters or channels on WhatsApp, including details like names, descriptions, subscriber counts, and activity status. This is useful for scenarios where you want to monitor or manage newsletter subscriptions programmatically.

Practical examples:

  • Automatically retrieve and display all newsletters a user is subscribed to.
  • Use the newsletter list to trigger further automated messaging or analytics.
  • Integrate newsletter data into CRM or marketing automation workflows.

Properties

Name Meaning
Optimize Response Whether to optimize the API response to reduce token usage and improve AI processing.
Max Response Length Maximum number of characters in the response; longer responses will be truncated.
Include Only Essential Fields Whether to include only essential fields in the response to reduce noise.
Response Format How to format the response for optimal AI agent understanding. Options:
- Optimized: Clean, structured response.
- Raw: Complete raw API response.
- Summary: Brief summary with key info only.

These properties are shown when the node is used as a tool and the optimization option is enabled.

Output

The node outputs JSON data representing the API response from DinastiAPI for the requested operation.

For the List Newsletters operation, the output JSON contains a list of subscribed newsletters/channels with their metadata, such as:

  • Newsletter/channel names
  • Descriptions
  • Subscriber counts
  • Activity status

If response optimization is enabled, the output may be truncated to the first 10 items with additional metadata indicating the truncation and optimization status.

If the node is configured to save avatar images as binary data (not applicable for List Newsletters), it outputs binary data containing the image encoded in base64 along with MIME type and filename.

Dependencies

  • Requires an API key credential for DinastiAPI to authenticate requests.
  • The node makes HTTP GET or POST requests to DinastiAPI endpoints.
  • No other external dependencies are required.
  • For avatar downloads (not relevant here), the node performs additional HTTP requests to fetch image data.

Troubleshooting

  • Binary Property Not Found: If using binary media sources, ensure the specified binary property exists in the input data; otherwise, an error is thrown.
  • Unknown Operation Error: Selecting an unsupported operation will cause an error.
  • API Request Failures: Network issues or invalid credentials can cause request failures; verify API key and network connectivity.
  • Response Truncation: When optimizing responses, only the first 10 items are returned if the list is large; this is by design to reduce token usage.
  • Missing Required Parameters: Ensure all required parameters for the selected operation are provided, e.g., phone numbers or IDs.

Links and References

  • DinastiAPI GitHub Repository - Official documentation and source code for DinastiAPI.
  • WhatsApp Business API concepts for messaging and channels (external reference).

This summary focuses on the List Newsletters operation of the DinastiAPI AI node, describing its purpose, configurable properties, output structure, dependencies, and common troubleshooting points.

Discussion