Gmail

Send Gmail or trigger workflows from Gmail events

Configuration

Send Email

Operation
Send Email
Gmail Account*
Select Gmail account
To*
Recipient email address
Subject*
Email subject
Body*
Email content
Attachments
Upload files to attach
Attachments
Reference files from previous blocks
CC
CC recipients (comma-separated)
BCC
BCC recipients (comma-separated)
Send Email (gmail_send)

Send emails using Gmail

Input
ParameterTypeRequiredDescription
tostringYesRecipient email address
subjectstringNoEmail subject
bodystringYesEmail body content
contentTypestringNoContent type for the email body (text or html)
threadIdstringNoThread ID to reply to (for threading)
replyToMessageIdstringNoGmail message ID to reply to - use the "id" field from Gmail Read results (not the RFC "messageId")
ccstringNoCC recipients (comma-separated)
bccstringNoBCC recipients (comma-separated)
attachmentsfile[]NoFiles to attach to the email
Output
ParameterTypeDescription
contentstringSuccess message
idstringGmail message ID
threadIdstringGmail thread ID
itemsstringitems output

Read Email

Operation
Read Email
Gmail Account*
Select Gmail account
Label
Select Gmail label/folder
Label/Folder
Enter Gmail label name (e.g., INBOX, SENT, or custom label)
Unread Only
Disabled
Include Attachments
Disabled
Message ID
Enter message ID to read (optional)
Max Results
Maximum number of results (default: 10)
Read Email (gmail_read)

Read emails from Gmail

Input
ParameterTypeRequiredDescription
messageIdstringNoID of the message to read
folderstringNoFolder/label to read emails from
unreadOnlybooleanNoOnly retrieve unread messages
maxResultsnumberNoMaximum number of messages to retrieve (default: 1, max: 10)
includeAttachmentsbooleanNoDownload and include email attachments
Output
ParameterTypeDescription
contentstringText content of the email
metadatajsonMetadata of the email

Draft Email

Operation
Draft Email
Gmail Account*
Select Gmail account
To*
Recipient email address
Subject*
Email subject
Body*
Email content
Attachments
Upload files to attach
Attachments
Reference files from previous blocks
CC
CC recipients (comma-separated)
BCC
BCC recipients (comma-separated)
Draft Email (gmail_draft)

Draft emails using Gmail

Input
ParameterTypeRequiredDescription
tostringYesRecipient email address
subjectstringNoEmail subject
bodystringYesEmail body content
contentTypestringNoContent type for the email body (text or html)
threadIdstringNoThread ID to reply to (for threading)
replyToMessageIdstringNoGmail message ID to reply to - use the "id" field from Gmail Read results (not the RFC "messageId")
ccstringNoCC recipients (comma-separated)
bccstringNoBCC recipients (comma-separated)
attachmentsfile[]NoFiles to attach to the email draft
Output
ParameterTypeDescription
contentstringSuccess message
idstringGmail message ID
threadIdstringGmail thread ID
itemsstringitems output

Search Email

Operation
Search Email
Gmail Account*
Select Gmail account
Search Query*
Enter search terms
Max Results
Maximum number of results (default: 10)
Search Email (gmail_search)

Search emails in Gmail

Input
ParameterTypeRequiredDescription
querystringYesSearch query for emails
maxResultsnumberNoMaximum number of results to return
Output
ParameterTypeDescription
contentstringSearch results summary
idstringGmail message ID
threadIdstringGmail thread ID
subjectstringEmail subject
fromstringSender email address
datestringEmail date

Usage Instructions

Integrate Gmail into the workflow. Can send, read, and search emails. Can be used in trigger mode to trigger a workflow when a new email is received.

Notes

  • Category: tools
  • Type: gmail