Skip to content

Search Emails

Gmail

Gmail

Search Emails

Search emails from the Gmail mailbox.

ActionAI Tool

Inputs

Name Type Required Description
searchtextRequiredThe Gmail search query (same syntax as the Gmail search box, e.g. 'from:foo@bar.com is:unread')
folderselectOptionalThe label to read emails from (Gmail system label IDs) (options: Inbox, Sent, Drafts, Trash, Spam)
limitnumberOptionalThe number of emails to read
offsetnumberRequiredThe offset to read emails from

Outputs

Name Type Description
tenantIntegrationIdtextThe integration used to execute this action
emailsarray of objectThe emails read from the Gmail mailbox
messageIdtextThe message ID of the email
threadIdtextThe thread ID of the email
subjecttextThe subject of the email
contenttextThe content of the email
contentTypeselectThe content type of the email (options: Text, HTML)
fromtextThe sender of the email
toarray of objectThe recipients of the email
emailAddresstextThe email address of the recipient
nametextThe name of the recipient