Actions21
- Message Actions
- Group Actions
- Chat Actions
- Contact Actions
Message → Send
AI-generatedOverview
This node operation sends a text message via WhatsApp using the Green API. It requires specifying the chat ID (either a private chat or group chat) and the message text. Optionally, a quoted message ID can be provided to quote a previous message in the chat. This operation is useful for automating WhatsApp messaging in workflows, such as sending notifications, alerts, or conversational messages to users or groups.
Use Case Examples
- Sending a notification message to a user by specifying their phone number as chat ID.
- Sending a message to a WhatsApp group by using the group's chat ID.
- Quoting a previous message in a chat to provide context in the new message.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The identifier of the chat to send the message to. For private chats, use phone@c.us format; for group chats, use chatId@g.us format. |
| Message | The text content of the message to send. |
| Quoted Message ID | Optional ID of a message to quote in the new message. |
Output
JSON
sentMessageId- The ID of the sent message returned by the APIstatus- Status of the message sending operationchatId- The chat ID where the message was sentmessage- The text content of the sent message
Dependencies
- Green API service
- API authentication credentials (instance ID and API token)
Troubleshooting
- Ensure the chat ID is correctly formatted (phone@c.us for private chats, chatId@g.us for groups).
- Verify that the API credentials (instance ID and API token) are valid and have the necessary permissions.
- Check network connectivity to the Green API endpoint.
- Common error messages include failures to send the message due to invalid parameters or network issues. The node provides detailed error messages including the data sent for easier debugging.
Links
- Green API Documentation - Official documentation for the Green API used to send WhatsApp messages.