Green API icon

Green API

Send WhatsApp messages via Green API

Message → Send

AI-generated

Overview

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

  1. Sending a notification message to a user by specifying their phone number as chat ID.
  2. Sending a message to a WhatsApp group by using the group's chat ID.
  3. 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 API
  • status - Status of the message sending operation
  • chatId - The chat ID where the message was sent
  • message - 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

Discussion