Search Emails
Gmail
Gmail
Search Emails
Search emails from the Gmail mailbox.
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
search | text | Required | The Gmail search query (same syntax as the Gmail search box, e.g. 'from:foo@bar.com is:unread') |
folder | select | Optional | The label to read emails from (Gmail system label IDs) (options: Inbox, Sent, Drafts, Trash, Spam) |
limit | number | Optional | The number of emails to read |
offset | number | Required | The offset to read emails from |
Outputs
| Name | Type | Description |
|---|---|---|
tenantIntegrationId | text | The integration used to execute this action |
emails | array of object | The emails read from the Gmail mailbox |
messageId | text | The message ID of the email |
threadId | text | The thread ID of the email |
subject | text | The subject of the email |
content | text | The content of the email |
contentType | select | The content type of the email (options: Text, HTML) |
from | text | The sender of the email |
to | array of object | The recipients of the email |
emailAddress | text | The email address of the recipient |
name | text | The name of the recipient |