Green API Message Trigger icon

Green API Message Trigger

Simple WhatsApp message trigger - starts workflow when any message is received

Green API Message Trigger

AI-generated

Overview

This node acts as a trigger for workflows based on incoming WhatsApp messages received via the Green API. It listens for various types of messages and starts the workflow when a message matching the specified criteria is received. This is useful for automating responses, processing messages, or integrating WhatsApp communication into other systems.

Use Case Examples

  1. Trigger a workflow when any text message is received in a private chat.
  2. Start a workflow only for image or video messages in group chats.
  3. Filter incoming messages to trigger workflows only if they contain specific keywords and exclude messages sent by bots.

Properties

Name Meaning
Message Types Specifies the types of WhatsApp messages that will trigger the workflow, such as text, image, video, audio, document, sticker, or all message types.
Chat Filter Filters messages by chat type to trigger the workflow only for all chats, private chats, or group chats.
Quick Filters Additional filters to refine triggering conditions, including keywords to match in message text and an option to exclude messages sent by bots.

Output

JSON

  • messageId - Unique identifier of the message.
  • chatId - Identifier of the chat where the message was received.
  • senderId - Identifier of the message sender.
  • senderName - Name of the message sender.
  • messageType - Type of the message (e.g., textMessage, imageMessage).
  • timestamp - Timestamp when the message was received.
  • messageText - Text content of the message, if available.
  • downloadUrl - URL to download media content, if available.
  • caption - Caption of the media message, if available.
  • fileName - File name of the media, if available.

Dependencies

  • Requires a Green API credential for authentication to receive WhatsApp messages.

Troubleshooting

  • If the webhook does not trigger, ensure the webhook URL is correctly set up in the Green API dashboard and the node is active.
  • If no messages trigger the workflow, verify that the message types and chat filters are correctly configured to match incoming messages.
  • If keywords filtering is used, ensure keywords are comma-separated and case-insensitive matching is expected.
  • Messages sent by the bot itself are excluded by default; disable this filter if you want to include them.

Discussion