AgentMail Trigger icon

AgentMail Trigger

Triggers when an email event occurs (received, sent, etc.)

AgentMail Trigger

AI-generated

Summary

Listens for a selected AgentMail email event through a webhook and emits its event details as workflow data. Choose Email Bounced, Email Delivered, Email Received (the default), or Email Sent; optionally limit events to one inbox.

Inputs

  • Event (required) — The AgentMail event to listen for: Email Bounced, Email Delivered, Email Received, or Email Sent.
  • Inbox Filter Name or ID — Optionally select an inbox to filter events. Leave empty to accept events from all inboxes; you can also provide an inbox ID with an expression.

Output shape

A single item containing event details, including event and message IDs, timestamp, inbox and thread IDs, sender, recipients, subject, text and HTML content, body URL, labels, attachments, and the raw webhook payload.

The trigger registers a webhook when the workflow is activated and removes it when deactivated. Events with a different type or, when configured, a different inbox are ignored.

Links

Discussion