Actions21
- Message Actions
- Group Actions
- Chat Actions
- Contact Actions
Overview
This node enables forwarding WhatsApp messages from one chat to another using the Green API service. It is useful when you want to programmatically share or duplicate messages between different chats, such as forwarding customer support conversations to a team group or sharing important updates across multiple contacts.
Practical examples:
- Forwarding specific messages from a private chat to a group chat for team collaboration.
- Automatically forwarding notifications received in one chat to another chat for logging or monitoring purposes.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The destination chat ID where messages will be forwarded. Use phone@c.us format for private chats or chatId@g.us for groups. |
| Chat ID From | The source chat ID from which the messages are being forwarded (in phone@c.us format). |
| Message IDs | Comma-separated list of message IDs to forward from the source chat. |
Output
The node outputs an array of JSON objects representing the response from the Green API after attempting to forward the messages. Each object typically contains details about the forwarded messages or any errors encountered.
If the operation succeeds, the output JSON confirms the forwarding action. If it fails, the node throws an error with details.
The node does not output binary data for this operation.
Dependencies
- Requires an active Green API account with valid credentials: an instance ID and an API token.
- The node makes HTTP POST requests to Green API endpoints to perform forwarding.
- Proper configuration of the Green API credentials in n8n is necessary.
Troubleshooting
Common issues:
- Invalid or missing chat IDs can cause failures.
- Incorrect message IDs or messages that do not exist in the source chat will result in errors.
- Network or authentication issues with the Green API service.
Error messages:
"Failed to forward messages: <error message>"indicates the API call failed. Check the provided chat IDs, message IDs, and credentials.- Errors include the data sent in the request for easier debugging.
Resolution tips:
- Verify chat IDs follow the correct format (
phone@c.usfor private,chatId@g.usfor groups). - Confirm message IDs are accurate and belong to the source chat.
- Ensure the Green API credentials are correctly set up and have sufficient permissions.
- Check network connectivity and API endpoint availability.
- Verify chat IDs follow the correct format (
Links and References
- Green API Documentation – Official API docs for message forwarding and other WhatsApp operations.
- WhatsApp Chat and Group ID Formats – Explanation of chat ID formats used in WhatsApp.