DinastiAPI AI icon

DinastiAPI AI

Send WhatsApp messages using DinastiAPI - optimized for AI workflows

Overview

This node enables sending WhatsApp messages through the DinastiAPI service, optimized for AI workflows. It supports a wide range of message types including text, images, documents, audio, video, locations, contacts, stickers, interactive buttons, lists, polls, and links. The "Send List" operation specifically allows creating structured list messages with multiple selectable options, ideal for menus, catalogs, or organized choices in conversations.

Practical scenarios include:

  • Sending interactive menus to customers for product selection.
  • Broadcasting organized options in customer support chats.
  • Creating polls or surveys with predefined choices.
  • Sharing multimedia content with captions and context information.

Properties

Name Meaning
Recipient Phone number, Group ID (@g.us), Newsletter ID (@newsletter), or LID (@lid) to which the message will be sent.
Button Text Text displayed on the list button that users click to open the list.
Description Description text shown within the list to guide users on what to choose.
Top Text Header text displayed above the list, typically used as an introductory or title text.
Footer Text Optional text shown below the list, often used for disclaimers or additional info.
List Items Collection of items in the list. Each item includes:
• Title (required): The main label of the list item.
• Description (optional): Additional details about the item.
• Row ID (required): Unique identifier for the item.
Additional Options Various optional settings:
• Message ID: Custom ID for the message.
• Presence Simulation: Simulate typing/recording indicator for specified milliseconds.
• Message Duration: Disappearing message timer.
• Context Information: Reply, forward, mentions, etc.
Optimize Response Whether to optimize the API response to reduce token usage and improve AI processing.
Max Response Length Maximum characters allowed in the response; longer responses are truncated.
Include Only Essential Fields Whether to include only essential fields in the response to reduce noise.
Response Format Format of the response: Optimized (structured for AI), Raw (complete API response), or Summary (brief key info).

Output

The node outputs JSON data representing the API response from DinastiAPI after sending the list message. This includes status information and any metadata returned by the API.

If the "optimizeResponse" option is enabled, the output may be truncated or simplified to improve AI processing efficiency, including flags indicating optimization and truncation details.

No binary data is produced by the "Send List" operation itself.

Dependencies

  • Requires an active DinastiAPI API key credential configured in n8n.
  • Internet access to communicate with the DinastiAPI endpoints.
  • Proper configuration of the node's input properties according to the chosen operation.

Troubleshooting

  • Missing Binary Property Error: If using operations involving binary data (not applicable for Send List), errors like Binary property "X" not found indicate the specified binary data was not available in the input. For Send List, this does not apply.
  • Invalid Recipient Format: Ensure the recipient phone number or group/newsletter/LID ID is correctly formatted, including domain suffixes like @g.us, @newsletter, or @lid.
  • Required Fields Missing: The list requires at least one item with a unique Row ID and Title. Omitting these will cause errors.
  • API Errors: Network issues or invalid credentials will result in API request failures. Verify API key validity and network connectivity.
  • Context Info Misconfiguration: When using reply or mention features, ensure correct message IDs and participant JIDs are provided to avoid errors.

Links and References


This summary focuses on the "Send List" operation of the DinastiAPI AI node, describing its purpose, inputs, outputs, dependencies, and common troubleshooting tips based on static code analysis.

Discussion