Actions13
- Chatwoot Integration Actions
- Instance Actions
- Message Actions
- Parser Actions
- Webhook Actions
Overview
This node operation "Send Text From Chatwoot" under the "Message" resource enables sending text messages via the MegaAPI WhatsApp service by extracting message data from a Chatwoot webhook payload. It is designed to automate WhatsApp messaging workflows triggered by Chatwoot events, such as when a new outgoing message is created in Chatwoot.
Typical use cases include:
- Automatically forwarding Chatwoot outgoing messages to WhatsApp contacts.
- Integrating Chatwoot conversations with WhatsApp messaging for seamless customer communication.
- Automating responses or notifications on WhatsApp based on Chatwoot interactions.
For example, when a user sends a message in Chatwoot, this node can extract the recipient's phone number and message content from the Chatwoot event payload and send it as a WhatsApp message through MegaAPI.
Properties
| Name | Meaning |
|---|---|
| Input Source | Notice that by default, this operation extracts data automatically from the Chatwoot message_created payload. |
| Advanced Overrides | Boolean flag to specify whether to manually provide values instead of extracting from Chatwoot payload. |
| To | Recipient phone number in WhatsApp format (e.g., 5511999999999@s.whatsapp.net). Required if not using advanced overrides. |
| Text | The text content of the message to send. Required if not using advanced overrides. |
Output
The node outputs JSON data representing the result of the send message operation. This typically includes confirmation details such as message ID, status, or any error information returned by the MegaAPI WhatsApp service.
No binary data output is indicated for this operation.
Dependencies
- Requires integration with MegaAPI WhatsApp service to send messages.
- Needs a valid API authentication token or credential configured in n8n to authorize requests to MegaAPI.
- Expects input data in the form of a Chatwoot webhook payload (
message_createdevent) containing message content and recipient information unless manual override is enabled.
Troubleshooting
Common Issues:
- Missing or malformed Chatwoot payload: Ensure the input JSON matches the expected Chatwoot
message_createdevent structure. - Incorrect recipient phone number format: Must follow WhatsApp JID format like
5511999999999@s.whatsapp.net. - API authentication errors: Verify that the MegaAPI credentials are correctly set up in n8n.
- Network or connectivity issues with MegaAPI service.
- Missing or malformed Chatwoot payload: Ensure the input JSON matches the expected Chatwoot
Error Messages:
"Unknown message operation: sendText": Indicates the operation name is incorrect or unsupported; verify operation selection.- Errors related to missing required parameters like "To" or "Text" usually mean these fields were not provided or extracted properly.
- API response errors will be included in the output JSON under an error field if the request fails.
Links and References
- Chatwoot Webhook Documentation
- MegaAPI WhatsApp Service Documentation
- WhatsApp JID Format Explanation
Note: This summary is based solely on static analysis of the provided source code and property definitions without runtime execution.