Actions29
- Chat Actions
- Contact Actions
- Group Actions
- Message Actions
- Status Actions
Message → Send
AI-generatedOverview
This node operation sends a text message via WhatsApp using the Green API. It allows sending messages to individual or group chats by specifying the chat ID and message content. Additional options include quoting a previous message, enabling or disabling link previews, customizing the preview appearance, and setting typing notification duration. This operation is useful for automating WhatsApp communications, such as sending notifications, alerts, or customer support messages.
Use Case Examples
- Sending a simple text message to a customer using their phone number as chat ID.
- Sending a message with a custom link preview to promote a product or service.
- Quoting a previous message in a conversation to provide context in a reply.
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. |
| Message | The text content of the message to be sent. |
| Quoted Message ID | Optional ID of a message to quote in the sent message. |
| Options | Additional settings for the message such as custom preview details, link preview toggle, preview size, typing notification time, and credentials override. |
Output
JSON
sentMessage- The response object from the Green API after sending the message, containing details about the sent message.
Dependencies
- Green API credentials including 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.
- If using custom preview, ensure the preview details are correctly formatted and URLs are accessible.
- Common error messages include failures to send message due to invalid parameters or authentication errors; verify input data and credentials accordingly.
Links
- Green API Documentation - Official documentation for the Green API used to send WhatsApp messages.