Actions29
- Chat Actions
- Group Actions
- Instance Actions
- Message Actions
- Webhook Actions
Overview
This node enables sending a plain text message to a specified WhatsApp contact using the MegaAPI WhatsApp service. It is useful for automating communication workflows where you want to send notifications, alerts, or any textual information directly to WhatsApp users.
Common scenarios include:
- Sending order confirmations or updates to customers.
- Delivering reminders or alerts to team members.
- Broadcasting announcements or messages to individual contacts.
For example, you can configure this node to send a greeting message like "Hello! This is a test message." to a contact identified by their WhatsApp phone number in the format phone_number@s.whatsapp.net.
Properties
| Name | Meaning |
|---|---|
| To (Contact) | The WhatsApp contact to send the message to. Must be formatted as phone_number@s.whatsapp.net (e.g., 556195562618@s.whatsapp.net). |
| Text Message | The content of the text message to send. Supports multiline input. |
| Information | A notice indicating that the message will be sent to the specified WhatsApp contact using the required format. |
Output
The node outputs JSON data representing the result of the send message operation. This typically includes confirmation details such as message ID, status, timestamps, or any response returned by the MegaAPI service confirming the message was sent successfully.
No binary data output is produced by this operation.
Dependencies
- Requires an active MegaAPI WhatsApp service account with valid API credentials (an API host URL and an authentication token).
- The node expects these credentials to be configured in n8n under the appropriate credential type.
- Internet connectivity to reach the MegaAPI endpoint is necessary.
Troubleshooting
- Invalid Contact Format: If the "To (Contact)" property is not in the correct format (
phone_number@s.whatsapp.net), the API may reject the request. Ensure the contact string strictly follows this pattern. - Authentication Errors: Missing or incorrect API credentials will cause authorization failures. Verify that the API token and host are correctly set in the node credentials.
- Message Content Issues: Empty or excessively long text messages might be rejected. Make sure the "Text Message" field is filled appropriately.
- API Rate Limits or Service Downtime: If messages fail intermittently, check for rate limiting or service availability issues on the MegaAPI side.
- Error Messages: The node throws errors indicating unknown operations or resources if misconfigured. Confirm that the resource is set to "Message" and operation to "Send Text Message".
Links and References
- MegaAPI WhatsApp Service Documentation (example placeholder link)
- WhatsApp Contact Formatting Guidelines