Actions
| Name | Description |
|---|---|
list_messagesList email messages in the mailbox | List email messages in the mailbox |
get_messageGet a specific email message with full content | Get a specific email message with full content |
send_emailSend an email message | Send an email message |
reply_to_emailSend a reply to an existing email thread | Send a reply to an existing email thread |
add_labelAdd a label to an email message | Add a label to an email message |
remove_labelRemove a label from an email message | Remove a label from an email message |
list_labelsList all labels in the Gmail account | List all labels in the Gmail account |
custom_api_callMake a custom API call to the Gmail API | Make a custom API call to the Gmail API |
Triggers
| Name | Description |
|---|---|
new_emailTriggers when a new email is received | Triggers when a new email is received |
email_labeledTriggers when a label is added to an email | Triggers when a label is added to an email |
Quick Start
import { WeavzClient } from '@weavz/sdk'
const weavz = new WeavzClient({ apiKey: 'wvz_...' })
const result = await weavz.actions.execute({
integrationName: 'gmail',
actionName: 'list_messages',
input: { /* ... */ },
connectionId: 'conn_id',
workspaceId: 'ws_id',
})Related Integrations
Works well with
Frequently Asked Questions
How do I connect Gmail to my app?
Use Weavz Hosted Connect for OAuth2 authentication. Install the SDK, create a connection through the connect portal or API, then execute actions programmatically.
What actions does Gmail support?
Gmail supports 8 actions including List Messages, Get Message, Send Email, Reply to Email, Add Label, and more.
Can I use Gmail with AI agents?
Yes. Add Gmail to an MCP server in TOOLS mode or CODE mode. CODE mode provides 80-98% context reduction with 3 meta-tools for efficient agent access.
What authentication does Gmail use?
Gmail uses OAuth2. Weavz handles token management, refresh, and secure credential storage automatically.
How much does the Gmail integration cost?
The Gmail integration is included on all Weavz plans including the free tier with 1,000 actions per month. No credit card required.
What triggers does Gmail support?
Gmail supports 2 triggers including New Email, Email Labeled.
Connect Gmail in 2 minutes
Get 1,000 free actions every month. No credit card required.