1Click.AI WP Trigger icon

1Click.AI WP Trigger

Dispara o fluxo quando chegarem mensagens no WhatsApp

Overview

This node triggers a workflow when new messages are received on WhatsApp using the 1Click.AI service. It listens for incoming WhatsApp messages and emits the message data to the workflow, enabling automation based on WhatsApp communication. It is useful for scenarios such as customer support automation, message logging, or real-time notifications from WhatsApp chats.

Use Case Examples

  1. Automatically respond to customer inquiries received on WhatsApp.
  2. Log incoming WhatsApp messages to a database for record-keeping.
  3. Trigger alerts or actions in other systems when specific WhatsApp messages arrive.

Properties

Name Meaning
Forçar Reconexão If enabled, clears the authentication folder and restarts the WhatsApp connection without calling the socket.
Observação Informational notice that the node waits for incoming WhatsApp messages and triggers the workflow.

Output

JSON

  • isLog - Indicates if the output is a log message (true) or a regular message (false).
  • remoteJid - The WhatsApp ID of the message sender or group.
  • groupList - List of groups with details such as name, ID, description, member count, and group properties (only for '!grupos' command).
  • timestamp - Timestamp of the received message.
  • name - Name of the message sender (for individual messages).
  • participant - Participant ID in the chat (if applicable).
  • messageText - Text content of the received message.

Dependencies

  • Requires an API key credential for the 1Click.AI service to authenticate and connect to WhatsApp.

Troubleshooting

  • Invalid API key error: The node verifies the API key and throws an error if invalid. Ensure you have a valid key from https://1click.ai/vipclub.
  • Connection errors: If the socket cannot be created, the node throws an error. Check network connectivity and API key validity.
  • Force reconnection: If 'Forçar Reconexão' is enabled, the node clears authentication data and restarts connection, which may interrupt ongoing sessions.

Links

Discussion