WhatsThat Trigger icon

WhatsThat Trigger

Listen to session, message, and group events from WhatsThat

WhatsThat Trigger

AI-generated

Summary

Listen for specified WhatsThat events on a given session and emit them as trigger outputs to enable workflows to react to WhatsApp messaging and session activities.

Inputs

  • Session Name (required) — Specifies the unique identifier of the WhatsThat session to monitor for incoming events.
  • Event (required) — Selects the type of event to listen for, such as messages received, sent, session pairing status, group updates, or all events.
  • Link Command — When the 'Link Chat Command' event is selected, specifies the exact chat command users must send to trigger a linking process. For example, '/link-whatsthat'.

Output shape

Emits trigger events matching the specified event type from the targeted WhatsThat session, structured as JSON objects with event details including session ID, event name, message content or session/group data, and linking metadata where applicable.

When listening for the 'Link Chat Command' event, the node only emits an event when a message starting with the configured link command prefix is received, containing alias and chat identifiers. For other event types, it emits all matching events. Listening to the 'Any Event' option ('*') outputs all events from the session. The node does not accept inputs but requires a connected WhatsThat session credential. It emits asynchronously and includes error handling.

Examples

Example 1: Trigger a workflow when a new message is received on a specified WhatsThat session.

Set Session Name to target the desired WhatsThat session and Event to 'Message Received'. The workflow triggers whenever any incoming message is detected in that session.

Example 2: Trigger a workflow upon sending a chat command to link a chat alias.

Set Event to 'Link Chat Command' and configure Link Command with the chat command users will send (e.g., '/link-whatsthat'). When a user sends the link command followed by an alias in chat, the workflow triggers, providing linkage data.

Links

Discussion