Commune Trigger icon

Commune Trigger

Starts a workflow when an email arrives in a Commune inbox

Commune Trigger

AI-generated

Summary

Triggers a workflow when an email arrives in a specified Commune inbox.

Inputs

  • domainId (required) — The ID of the domain that owns the inbox.
  • inboxId (required) — The ID of the inbox to monitor for incoming emails.
  • events — The email events to listen for (defaults to Inbound Email).
  • output — Determines the response structure: 'Message Only' extracts key message, sender, security, and extraction details, while 'Full Payload' returns the complete raw webhook object.

Output shape

a single item

In 'Message Only' mode, returns standard fields such as subject, body_text, body_html, from, message_id, thread_id, extracted_data, security flags, and attachment IDs. In 'Full Payload' mode, returns the unflattened raw webhook payload.

Examples

Example 1: Trigger a workflow on incoming inbox messages using simplified email fields

Domain ID: d_abc123, Inbox ID: inbox_xyz, Events: Inbound Email, Output: Message Only

Example 2: Inspect complete raw webhook data including raw email and security contexts

Domain ID: d_abc123, Inbox ID: inbox_xyz, Events: Inbound Email, Output: Full Payload

Links

Discussion