Trigger Communications

Triggers when a new email matching a Gmail search query is received. Supports Gmail search operators like 'from:sender@example.com subject:invoice'. Polls your real Gmail inbox via OAuth.

At a Glance

FieldValue
Trigger IDgmail-new-email-matching-search
CategoryCommunications
Tagsemail, gmail, communication, notification, search, filter

Trigger Configuration

FieldTypeRequiredDescription
qstringNoGmail search query using standard search operators (e.g. 'from:sender@example.com subject:invoice')
labelsarrayNoOnly trigger for emails with these labels (optional)

Trigger Result

FieldTypeRequiredDescription
triggeredAtstringYesTimestamp when the event was received (UTC, RFC3339 format)
fromstringNoSender (From header value)
tostringNoRecipients (To header value)
subjectstringNoEmail subject line
textstringNoPlain text body of the email
snippetstringNoShort text preview of the email
threadIdstringNoGmail thread ID
labelIdsarrayNoGmail label IDs on the message

Workflow Root Example

json
{ "nodes": { "root": { "type": "gmail-new-email-matching-search", "payload": { "q": "example-q", "labels": [] }, "children": [ "log_event" ] }, "log_event": { "type": "log", "payload": { "message": "Triggered at {{$trigger.triggeredAt}}" }, "children": [] } }}

Downstream nodes can use {{$trigger.triggeredAt}} and any result fields listed above. Event triggers usually expose the raw source payload under a field such as event, body, trade, or raw.

Ask a question... ⌘I