Bailey Trigger icon

Bailey Trigger

Listens to WhatsApp events via Baileys WebSocket connection

Bailey Trigger

AI-generated

Summary

Listen for a selected WhatsApp event through a Baileys WebSocket connection and emit each occurrence as workflow data. Choose a specific event or the default All Events option; the required baileyApi credentials provide the WhatsApp session.

Inputs

  • Event — Select All Events (default) or a specific event, such as Message Received, Chat Updated, Group Participants, or Connection Updated.
  • Options → Include Event Metadata — Defaults to true. Adds _event, _sessionId, and an ISO timestamp in _timestamp to each output item; turn off to omit these fields.
  • Options → Only Real Messages — Defaults to false. For Message Received (messages.upsert), removes messages containing a protocol message and emits nothing when all messages are filtered out.

Output shape

One workflow item for each emitted WhatsApp event; the event payload's object fields are placed at the item’s top level, or non-object payloads are placed in data.

With metadata enabled, output also includes _event, _sessionId, and _timestamp. All Events subscribes to the listed WhatsApp events. During manual testing, the trigger waits for and emits one event from the first subscribed event; while active, it emits each subscribed event.

Links

Discussion