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, with a focus on AI-optimized 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 Sticker" operation specifically allows sending animated or static stickers in WebP format to individual users, groups, newsletters, or LIDs.

Common scenarios for this node include automating customer communication, broadcasting updates, conducting surveys via polls, sharing media-rich content, and enhancing chat interactions with stickers and interactive elements. For example, a business could use it to send promotional stickers to customers or share location details for event meetups.

Properties

Name Meaning
Recipient Phone number, Group ID (@g.us), Newsletter ID (@newsletter), or LID (@lid) identifying the message recipient.
Sticker Source Method to provide the sticker:
- Binary Data (from previous node)
- Base64 encoded string (WebP format)
- URL to the sticker file
Binary Property Name of the binary property containing the sticker data when using Binary Data as source.
Base64 Sticker Base64 encoded sticker in WebP format (required if Sticker Source is Base64).
Sticker URL URL to the sticker file (required if Sticker Source is URL).
Additional Options Collection of optional settings:
- Message ID: Custom message identifier.
- Presence Simulation: Simulate typing/recording indicator duration (0-30000 ms).
- Message Duration: Disappearing message timer.
- Context Information: Reply, forward, mentions, etc.

Output

The node outputs a JSON object representing the API response from DinastiAPI after attempting to send the sticker message. This includes status information and any metadata returned by the API.

If the operation is successful, the output contains confirmation details about the sent message. In case of errors, the output JSON will contain an error message describing the issue.

No binary data is output for the "Send Sticker" operation itself.

Dependencies

  • Requires an active DinastiAPI account with valid API credentials configured in n8n.
  • The node uses HTTP requests to communicate with DinastiAPI endpoints.
  • Proper network connectivity to DinastiAPI servers is necessary.
  • If using binary data sources for stickers, prior nodes must provide the binary data correctly formatted.

Troubleshooting

  • Binary Property Not Found: If you select "Binary Data" as the sticker source but the specified binary property does not exist in the input item, the node will throw an error like Binary property "data" not found. Ensure the previous node outputs the binary data under the correct property name.
  • Invalid Sticker Format: Stickers must be in WebP format. Providing unsupported formats may cause the API to reject the message.
  • Missing Required Fields: The recipient phone number or sticker source fields are required. Omitting these will result in validation errors.
  • Network or Authentication Errors: Failures connecting to DinastiAPI or invalid API credentials will cause request errors. Verify your API key and network access.
  • Message ID Conflicts: Providing a custom message ID that duplicates existing IDs might cause issues; usually, it's best to let the system auto-generate it unless you have a specific reason.

Links and References

  • DinastiAPI GitHub Repository - Official documentation and source code for the DinastiAPI service.
  • WhatsApp Sticker Format Reference: Stickers must be WebP images, typically animated or static, compatible with WhatsApp's requirements.

Discussion