Prerequisites
- A Google account with Gmail enabled
- project_contributor access in your workspace
- Gmail API enabled in your Google Cloud project (handled automatically when connecting through the Console)
Connect in AgentRuntime
1
Connect Google
On Connections, use the Google account card and complete OAuth. Enable the Gmail service for your account. See Google Workspace setup and Connections.
2
Add gmail MCP instance
Go to MCP, click Add instance for gmail. Open Instance config, wire your Google connection, and set the profile active.
3
Add a workflow step
In Workflow Studio, add an mcp_call step targeting your
gmail instance. Pick a tool and configure tool_args.What you can build
- Run notifications — On workflow success or failure,
send_emailto operators with run ID and a Command Center link. - Inbox triage —
search_emailsforis:unread label:support→ LLM draft → human_task →reply_to_email. - Lead alert — Webhook from a form →
send_emailto sales with submission details and CRM link. - Digest reports — Postgres or Sheets data → LLM summary →
send_emailon a schedule.
Tools
Example
Send a notification after a workflow completes:Configuration
The instance inherits OAuth tokens from your Google connection. Optional config profile fields:Gmail search syntax
search_emails accepts standard Gmail operators:
from:sender@example.comis:unreadsubject:invoiceafter:2026/01/01
from:alerts@example.com is:unread newer_than:7d