2Chat Trigger icon

2Chat Trigger

Triggers on 2Chat events (messages, phone calls, status updates, etc.)

2Chat Trigger

AI-generated

Summary

Subscribe to a 2Chat webhook event and pass each received event to the workflow as JSON. Choose an event and, where applicable, limit it to a WhatsApp number, group, virtual number, or WABA number; new-conversation events can also be scoped by time period.

Inputs

  • event (required) — Select the event to listen for: WhatsApp messages, conversations, group activity, calls, or WABA messages. Defaults to new WhatsApp messages sent or received.
  • whatsappNumber (required) — For non-call, non-WABA events, select or enter the WhatsApp number to filter on. For WABA message events, select or enter a WABA number. The field is hidden for call events.
  • on_group — For group message, reaction, join, leave, and removal events, optionally filter to a group. Selecting “All Groups” omits the group filter.
  • virtualNumber — For incoming call completed, outbound call completed, and call status update events, optionally select a virtual number; its ID is sent as the channel filter.
  • time_period — For new WhatsApp conversation events, choose the period used to consider a conversation new. Defaults to “All Time”.

Output shape

A single-item JSON array for each webhook request, containing the request body plus receivedAt and webhookEvent fields.

receivedAt is the receipt timestamp in ISO format. webhookEvent copies the body’s event value, or is set to "unknown" if absent. The trigger registers a webhook subscription when activated and removes it when deactivated.

Links

Discussion