Actions29
- Chat Actions
- Group Actions
- Instance Actions
- Message Actions
- Webhook Actions
Overview
This node operation sends a text message to a specific WhatsApp group using the MegaAPI WhatsApp service. It is useful for automating communication within WhatsApp groups, such as sending announcements, updates, or alerts to all group members simultaneously. For example, a business could use this node to broadcast promotional messages to customer groups or coordinate team activities by sending reminders and instructions.
Properties
| Name | Meaning |
|---|---|
| Group JID | The unique identifier of the WhatsApp group to send the message to. Format: group_id@g.us (e.g., 125485541258@g.us). Must be a group where the user is a member. |
| Message Text | The text content of the message to send to the WhatsApp group. Supports multiline input. |
Output
The node outputs JSON data containing details about the sent message, including:
- Message status: Indicates whether the message was successfully sent.
- Message ID: A unique identifier for the sent message.
- Delivery confirmation: Information confirming if the message was delivered to the group.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to the MegaAPI WhatsApp service.
- Needs valid API authentication credentials configured in n8n (an API key/token and host URL).
- The user must be a member of the target WhatsApp group to send messages.
Troubleshooting
Common issues:
- Sending fails if the provided Group JID is invalid or incorrectly formatted.
- Messages cannot be sent if the user is not a member of the specified WhatsApp group.
- Authentication errors may occur if API credentials are missing or incorrect.
Error messages:
"Unknown group operation: sendMessageGroup": This indicates a misconfiguration or unsupported operation; ensure the operation name is correct.- Errors related to authorization typically mean the API token or host is not properly set.
- Network or connectivity errors suggest issues reaching the MegaAPI service endpoint.
Resolutions:
- Verify the Group JID format and membership.
- Check and update API credentials in n8n settings.
- Ensure network access to the MegaAPI host URL.
Links and References
- WhatsApp Group JID Format Explanation
- MegaAPI official documentation (refer to your API provider's docs for detailed usage)