Features
- Read and Search Emails: Find emails by sender, subject, date, or content
- Compose and Send: Write and send emails with AI assistance
- Label Management: Organize emails with labels and folders
- Draft Management: Create, edit, and manage email drafts
- Attachment Handling: Work with email attachments
- Email Automation: Set up automated email workflows
Setup
OAuth Configuration
The Gmail integration uses the following OAuth scopes:https://www.googleapis.com/auth/gmail.modify- Read, compose, and send emails
Provider Details
- Provider: Composio
- Toolkit: GMAIL
- Auth Type: OAuth 2.0
- Managed By: Composio platform
Usage Examples
Reading Emails
Composing Emails
Organizing Inbox
Searching Emails
Available Actions
The Gmail agent can perform the following actions:- Get user profile information
- List and search emails
- Read email content
- Compose and send emails
- Create and manage drafts
- Add and remove labels
- Mark emails as read/unread
- Archive and delete emails
- Handle attachments
- Manage filters
- Search with advanced queries
Workflows & Triggers
The Gmail integration supports automated workflows through triggers:New Gmail Message Trigger
Trigger: When a new email arrives in your inbox Auto-Activated: Yes (monitors INBOX by default) Use Cases:- Auto-respond to certain emails
- Forward important emails to Slack
- Create tasks from emails
- Log emails to a database
AI Agent Details
Gmail uses a specialized subagent for intelligent email management:- Agent Name:
gmail_agent - Domain: Email management and communication
- Capabilities:
- Composing professional emails
- Understanding email context
- Organizing inbox intelligently
- Managing labels and filters
- Handling attachments
- Email workflow automation
Agent System Prompt
The Gmail agent is designed to:- Compose professional, context-aware emails
- Understand natural language email requests
- Maintain proper email etiquette
- Suggest labels and organizational structures
- Automate repetitive email tasks
API Reference
The Gmail integration exposes these tools to the AI:| Tool | Description |
|---|---|
GMAIL_GET_PROFILE | Get user’s Gmail profile information |
GMAIL_LIST_MESSAGES | List emails with filters |
GMAIL_GET_MESSAGE | Get full email content |
GMAIL_SEND_MESSAGE | Send a new email |
GMAIL_CREATE_DRAFT | Create email draft |
GMAIL_MODIFY_MESSAGE | Update email labels/status |
GMAIL_TRASH_MESSAGE | Move email to trash |
GMAIL_SEARCH | Search emails with query |
Metadata Extraction
GAIA automatically extracts and stores your Gmail email address when you connect:- Personalizing email composition
- Filtering your own sent emails
- Identifying your email address in conversations
Troubleshooting
Connection Issues
OAuth authorization failed
OAuth authorization failed
Can't read emails
Can't read emails
Verify that you granted the
gmail.modify scope during authorization. You may need to reconnect the integration.Rate limit errors
Rate limit errors
Gmail has API rate limits. GAIA automatically handles rate limiting, but extremely high volume may cause delays.
Common Questions
Is my email data secure?
Is my email data secure?
Yes. GAIA uses OAuth for secure authentication and never stores your Gmail password. Your credentials are encrypted and only used to make API calls on your behalf.
Can GAIA send emails on my behalf?
Can GAIA send emails on my behalf?
Yes, but only when you explicitly ask it to. The AI agent will always confirm before sending important emails.
Does GAIA read all my emails?
Does GAIA read all my emails?
GAIA only accesses emails when you specifically ask it to. It doesn’t continuously monitor your inbox unless you set up a workflow trigger.
Best Practices
Related Integrations
- Google Calendar - Schedule meetings mentioned in emails
- Slack - Forward important emails to Slack channels
- Notion - Save email content to Notion pages
- Linear - Create Linear issues from emails
Next Steps
Build Email Workflows
Automate email handling with workflows
Custom Email Rules
Set up custom triggers for incoming emails