Gmail
Send, read, search, and move Gmail messages or trigger workflows from Gmail events
Gmail is Google's popular email service that provides a robust platform for sending, receiving, and managing email communications. With over 1.8 billion active users worldwide, Gmail offers a feature-rich experience with powerful search capabilities, organizational tools, and integration options.
With Gmail, you can:
- Send and receive emails: Communicate with contacts through a clean, intuitive interface
- Organize messages: Use labels, folders, and filters to keep your inbox organized
- Search efficiently: Find specific messages quickly with Google's powerful search technology
- Automate workflows: Create filters and rules to automatically process incoming emails
- Access from anywhere: Use Gmail across devices with synchronized content and settings
- Integrate with other services: Connect with Google Calendar, Drive, and other productivity tools
In Sim, the Gmail integration enables your agents to fully manage emails programmatically with comprehensive automation capabilities. This allows for powerful automation scenarios such as sending notifications, processing incoming messages, extracting information from emails, and managing communication workflows at scale. Your agents can:
- Compose and send: Create personalized emails with attachments and send to recipients
- Read and search: Find specific messages using Gmail's query syntax and extract content
- Organize intelligently: Mark messages as read/unread, archive or unarchive emails, and manage labels
- Clean up inbox: Delete messages, move emails between labels, and maintain inbox zero
- Trigger workflows: Listen for new emails in real-time, enabling responsive workflows that react to incoming messages
This integration bridges the gap between your AI workflows and email communications, enabling seamless interaction with one of the world's most widely used communication platforms. Whether you're automating customer support responses, processing receipts, managing subscriptions, or coordinating team communications, the Gmail integration provides all the tools you need for comprehensive email automation.
Integrate Gmail into the workflow. Can send, read, search, and move emails. Can be used in trigger mode to trigger a workflow when a new email is received.
Send emails using Gmail
| Parameter | Type | Required | Description |
|---|
to | string | Yes | Recipient email address |
subject | string | No | Email subject |
body | string | Yes | Email body content |
contentType | string | No | Content type for the email body (text or html) |
threadId | string | No | Thread ID to reply to (for threading) |
replyToMessageId | string | No | Gmail message ID to reply to - use the "id" field from Gmail Read results (not the RFC "messageId") |
cc | string | No | CC recipients (comma-separated) |
bcc | string | No | BCC recipients (comma-separated) |
attachments | file[] | No | Files to attach to the email |
| Parameter | Type | Description |
|---|
content | string | Success message |
metadata | object | Email metadata |
Draft emails using Gmail
| Parameter | Type | Required | Description |
|---|
to | string | Yes | Recipient email address |
subject | string | No | Email subject |
body | string | Yes | Email body content |
contentType | string | No | Content type for the email body (text or html) |
threadId | string | No | Thread ID to reply to (for threading) |
replyToMessageId | string | No | Gmail message ID to reply to - use the "id" field from Gmail Read results (not the RFC "messageId") |
cc | string | No | CC recipients (comma-separated) |
bcc | string | No | BCC recipients (comma-separated) |
attachments | file[] | No | Files to attach to the email draft |
| Parameter | Type | Description |
|---|
content | string | Success message |
metadata | object | Draft metadata |
Read emails from Gmail
| Parameter | Type | Required | Description |
|---|
messageId | string | No | ID of the message to read |
folder | string | No | Folder/label to read emails from |
unreadOnly | boolean | No | Only retrieve unread messages |
maxResults | number | No | Maximum number of messages to retrieve (default: 1, max: 10) |
includeAttachments | boolean | No | Download and include email attachments |
| Parameter | Type | Description |
|---|
content | string | Text content of the email |
metadata | json | Metadata of the email |
attachments | file[] | Attachments of the email |
Search emails in Gmail
| Parameter | Type | Required | Description |
|---|
query | string | Yes | Search query for emails |
maxResults | number | No | Maximum number of results to return |
| Parameter | Type | Description |
|---|
content | string | Search results summary |
metadata | object | Search metadata |
Move emails between Gmail labels/folders
| Parameter | Type | Required | Description |
|---|
messageId | string | Yes | ID of the message to move |
addLabelIds | string | Yes | Comma-separated label IDs to add (e.g., INBOX, Label_123) |
removeLabelIds | string | No | Comma-separated label IDs to remove (e.g., INBOX, SPAM) |
| Parameter | Type | Description |
|---|
content | string | Success message |
metadata | object | Email metadata |
Mark a Gmail message as read
| Parameter | Type | Required | Description |
|---|
messageId | string | Yes | ID of the message to mark as read |
| Parameter | Type | Description |
|---|
content | string | Success message |
metadata | object | Email metadata |
Mark a Gmail message as unread
| Parameter | Type | Required | Description |
|---|
messageId | string | Yes | ID of the message to mark as unread |
| Parameter | Type | Description |
|---|
content | string | Success message |
metadata | object | Email metadata |
Archive a Gmail message (remove from inbox)
| Parameter | Type | Required | Description |
|---|
messageId | string | Yes | ID of the message to archive |
| Parameter | Type | Description |
|---|
content | string | Success message |
metadata | object | Email metadata |
Unarchive a Gmail message (move back to inbox)
| Parameter | Type | Required | Description |
|---|
messageId | string | Yes | ID of the message to unarchive |
| Parameter | Type | Description |
|---|
content | string | Success message |
metadata | object | Email metadata |
Delete a Gmail message (move to trash)
| Parameter | Type | Required | Description |
|---|
messageId | string | Yes | ID of the message to delete |
| Parameter | Type | Description |
|---|
content | string | Success message |
metadata | object | Email metadata |
Add label(s) to a Gmail message
| Parameter | Type | Required | Description |
|---|
messageId | string | Yes | ID of the message to add labels to |
labelIds | string | Yes | Comma-separated label IDs to add (e.g., INBOX, Label_123) |
| Parameter | Type | Description |
|---|
content | string | Success message |
metadata | object | Email metadata |
Remove label(s) from a Gmail message
| Parameter | Type | Required | Description |
|---|
messageId | string | Yes | ID of the message to remove labels from |
labelIds | string | Yes | Comma-separated label IDs to remove (e.g., INBOX, Label_123) |
| Parameter | Type | Description |
|---|
content | string | Success message |
metadata | object | Email metadata |
- Category:
tools
- Type:
gmail