MegaAPI icon

MegaAPI

Interact with MegaAPI WhatsApp service

Message → Send Text Message

AI-generated

Overview

This node operation sends a text message to a specified WhatsApp contact using the MegaAPI WhatsApp service. It is useful for automating communication, notifications, or customer engagement via WhatsApp by programmatically sending text messages to individual contacts.

Use Case Examples

  1. Sending a greeting message to a customer after they sign up.
  2. Notifying a user about an appointment or event via WhatsApp.
  3. Automating customer support responses by sending predefined text messages.

Properties

Name Meaning
To (Contact) The WhatsApp contact to send the message to, formatted as phone_number@s.whatsapp.net (e.g., 556195562618@s.whatsapp.net). This is a required field.
Text Message The content of the text message to send to the specified WhatsApp contact. This is a required field.

Output

JSON

  • messageId - The unique identifier of the sent message.
  • status - The status of the message sending operation (e.g., sent, failed).
  • to - The WhatsApp contact to whom the message was sent.
  • text - The text content of the sent message.

Dependencies

  • Requires an API key credential for MegaAPI WhatsApp service authentication.

Troubleshooting

  • Ensure the 'To (Contact)' field is correctly formatted as phone_number@s.whatsapp.net; incorrect formatting will cause message sending to fail.
  • Verify that the API token or credentials are valid and have the necessary permissions to send messages.
  • Common errors include 'Unknown message operation' if the operation parameter is incorrect, or network/authentication errors if credentials are invalid.

Discussion