D7 Messaging icon

D7 Messaging

Send messages using D7 APIs (SMS & WhatsApp)

Overview

This node allows sending messages via the D7 Networks API, supporting both SMS and WhatsApp channels. It is useful for automating communication workflows such as sending SMS alerts, notifications, or marketing messages, as well as sending various types of WhatsApp messages including text, media, and templated messages. For example, it can be used to send SMS reminders to customers or WhatsApp marketing campaigns with media attachments.

Use Case Examples

  1. Sending an SMS message to multiple recipients with custom text content.
  2. Sending a WhatsApp templated message with dynamic body parameters for personalized communication.
  3. Sending a WhatsApp media message with an image or video attachment and caption.

Properties

Name Meaning
Channel Selects the messaging channel to use, either SMS or WhatsApp.
Message Content The text content of the SMS message (used only when channel is SMS).
Message Type Specifies the type of WhatsApp message to send, such as utility text, marketing media, or service text.
Originator The WhatsApp number registered with D7 Networks used as the sender (required for WhatsApp).
Template ID The template ID from the D7 portal used for templated WhatsApp messages (required for certain WhatsApp message types).
Language The language code for the WhatsApp template message.
Message Body The text content for WhatsApp service text messages.
Preview URL Enables or disables URL preview in WhatsApp service text messages.
Media Caption Caption text for WhatsApp media messages.
Media URL URL of the media to be sent in WhatsApp media messages.
Media Type Type of media being sent in WhatsApp messages (image, video, or document).
Recipients Comma-separated list of phone numbers to receive the message.
Body Parameters Key-value pairs for template body parameters in WhatsApp templated messages.

Output

JSON

  • json - The JSON response from the D7 API after sending the message, containing details about the message status and delivery.

Dependencies

  • D7 Networks API key credential required for authentication.

Troubleshooting

  • Ensure the API key credential is correctly configured and has the necessary permissions to send messages.
  • Verify that the phone numbers in the recipients list are correctly formatted and include country codes.
  • For WhatsApp templated messages, ensure the template ID and language code are valid and approved in the D7 portal.
  • Check that media URLs are accessible and correctly formatted when sending media messages.
  • Common error messages may include authentication failures, invalid recipient numbers, or template validation errors. Resolving these typically involves correcting credentials, recipient formatting, or template details.

Links

Discussion