DinastiAPI Newsletter icon

DinastiAPI Newsletter

Manage WhatsApp newsletters/channels using DinastiAPI API

Overview

The "Send Newsletter Message" operation of the DinastiAPI Newsletter node allows users to send various types of messages to a WhatsApp newsletter or channel managed via the DinastiAPI service. This operation supports sending text messages as well as media messages including images, videos, documents, and audio files.

This node is beneficial for automating communication with subscribers of WhatsApp newsletters, enabling businesses or content creators to broadcast updates, promotions, or multimedia content efficiently. For example, a marketing team can use this node to send promotional text messages or product images to their subscriber base automatically.

Properties

Name Meaning
Newsletter JID The unique identifier (JID) of the newsletter/channel to which the message will be sent.
Message Type The type of message to send. Options: Text, Image, Video, Document, Audio.
Message The text content of the message (required if Message Type is Text).
Media Base64 encoded media data or a URL pointing to the media file (required for media messages).
Caption Optional caption text for media messages (Image, Video, Document, Audio).
File Name The file name for document messages (e.g., "document.pdf").

Output

The output of this operation is a JSON array containing the response from the DinastiAPI after sending the message. Each item corresponds to an input item processed by the node and includes details about the success or failure of the message sending request.

If the message includes media, the node handles the media upload or reference transparently, but the output remains JSON metadata about the sent message rather than binary data.

Dependencies

  • Requires an API key credential for authenticating with the DinastiAPI service.
  • The node makes HTTP requests to DinastiAPI endpoints to perform actions.
  • Proper configuration of the API credential in n8n is necessary for successful operation.

Troubleshooting

  • Common Issues:
    • Invalid or missing Newsletter JID will cause the API request to fail.
    • Incorrect media encoding or invalid URLs may result in media upload errors.
    • Missing required fields depending on the message type (e.g., no message text for text messages) will cause validation errors.
  • Error Messages:
    • Errors returned from the API typically include descriptive messages indicating what went wrong (e.g., "Newsletter not found", "Invalid media format").
    • To resolve, verify all required parameters are correctly set and that media data is properly formatted.
  • Tips:
    • Ensure the media field contains either a valid base64 string prefixed with the data URI scheme or a reachable URL.
    • When sending documents, always provide a meaningful file name.

Links and References

  • DinastiAPI Documentation (hypothetical link)
  • WhatsApp Newsletter concepts and best practices (refer to official WhatsApp Business API documentation)

Discussion