Actions13
- Chatwoot Integration Actions
- Instance Actions
- Message Actions
- Parser Actions
- Webhook Actions
Overview
This node operation "Send Text Direct From Chatwoot" under the "Message" resource allows sending a WhatsApp text message by directly using a complete Chatwoot message_created event payload. Instead of manually specifying recipient and message content, users provide the full JSON payload from Chatwoot, and the node automatically extracts all necessary fields to send the message via the MegaAPI WhatsApp service.
Common scenarios:
- Automating WhatsApp responses triggered by Chatwoot conversations.
- Integrating Chatwoot messaging events with WhatsApp without manual data mapping.
- Quickly forwarding outgoing Chatwoot messages as WhatsApp texts in customer support workflows.
Practical example:
You receive a Chatwoot webhook payload when an agent sends a message in Chatwoot. You paste this entire JSON payload into the node's input property. The node extracts the recipient phone number and message content, then sends the text message through WhatsApp seamlessly.
Properties
| Name | Meaning |
|---|---|
| Chatwoot Payload | Complete JSON string of the Chatwoot message_created event payload. All relevant fields are extracted automatically. Example structure includes event type, message type, conversation metadata (sender phone), and message content. |
Output
The node outputs a JSON object representing the result of the send message operation. This typically includes confirmation details such as message ID, status, or any response returned by the MegaAPI WhatsApp service.
No binary data output is indicated for this operation.
Dependencies
- Requires integration with the MegaAPI WhatsApp service to send messages.
- Needs a valid API key or authentication configured in n8n credentials for MegaAPI (not shown explicitly in code).
- Input must be a valid Chatwoot
message_createdevent payload JSON string. - Proper formatting of the Chatwoot payload is essential for automatic extraction.
Troubleshooting
- Invalid or malformed Chatwoot payload: If the JSON is incomplete or incorrectly formatted, the node will fail to extract necessary fields. Ensure the full Chatwoot event payload is pasted exactly as received.
- Unknown operation or resource errors: These occur if the node parameters are misconfigured. Confirm that Resource is set to "Message" and Operation to "Send Text Direct From Chatwoot".
- API authentication failures: If MegaAPI credentials are missing or invalid, message sending will fail. Verify API keys and connection settings.
- Phone number format issues: The sender phone number must be correctly included in the payload under
conversation.meta.sender.phone_numberin international format with plus sign (e.g., "+5511999999999"). - Error messages: Errors thrown by the node will include descriptive messages. Use the "Continue On Fail" option to handle errors gracefully in workflows.
Links and References
- Chatwoot Webhook Events Documentation
- MegaAPI WhatsApp Service Documentation (generic reference, actual URL may vary)
- WhatsApp Business API Phone Number Formatting
Note: This summary is based on static analysis of the provided source code and property definitions without runtime execution.