Block 1 - SEND_EMAIL
- Type / Role
- n8n-nodes-base.gmailTool - gmailTool
- Config choices
- Version 2.1
This workflow is provided as-is. Please review and test before using in production.
AI Powered Gmail MCP Server for n8n Description This n8n workflow template leverages an external AI Model Control Plane (MCP) Server to automate various Gmail tasks, such as composing emails, re...
n8n-nodes-base.gmailtool, @n8n/n8n-nodes-langchain.mcptrigger
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Luciano Gutierrez.
Original n8n.io sourceThis n8n workflow template leverages an external AI Model Control Plane (MCP) Server to automate various Gmail tasks, such as composing emails, replying to threads, and handling follow-ups using dynamically generated content. It uses the native n8n Gmail nodes available from v1.88.0 onwards.
Ideal for developers, automation engineers, and power users using self-hosted n8n (v1.88.0+) who want to integrate artificial intelligence directly into their email workflows via a dedicated MCP Server for enhanced control and customization over AI interactions.
This template provides a structured approach to integrating Gmail with an MCP Server:
π‘ MCP Trigger (βMCP_GMAILβ): An n8n Webhook node that receives HTTP calls from your MCP Server. It standardizes the inputs (like recipient, subject, AI prompt) for all subsequent Gmail nodes. (You will need to configure your MCP Server to call this webhook URL).
π€ SEND_EMAIL (Gmail Node v2.1): Sends new messages. The email body (message field) is typically populated by content generated from an AI prompt processed by your MCP server and passed via the trigger.
π REPLY_EMAIL (Gmail Node v2.1): Automatically replies to existing conversations (threads). It uses AI-generated content (via MCP) to formulate the reply based on the thread context. Requires Message ID and/or Thread ID.
π₯ GET_EMAIL (Gmail Node v2.1): Fetches data for a specific message (using Message ID) for analysis, processing, or archiving. Useful for retrieving context before replying.
β³ SEND_AND_WAIT (Gmail Node v2.1): Sends an email and pauses the workflow execution until a reply is received in that specific conversation (thread). This is crucial for building automated follow-up sequences. It then outputs data from the reply message.
Note: All Gmail nodes in this template use the native n8n Gmail Tool, integrated since v1.88.0. No additional installation of community nodes is required. See the official n8n documentation for more details on node configuration.*
Ensure you have the following before importing:
Settings > Credentials > New > Google > Gmail (OAuth2 API) to set this up if you haven't already.Follow these steps to get the template running:
Credentials:Header Auth credential in n8n with your MCP API Key, or configuring the HTTP Request node within the workflow directly, depending on your MCP's authentication scheme. Link this credential where needed (e.g., in the Trigger node if MCP calls n8n with auth, or in HTTP Request nodes if n8n calls MCP).β¨ Generate Sales Email Body via MCP, π₯ Fetch Customer Replies).Tailor the workflow to your specific needs:
GET_EMAIL or if you add a Gmail - Get Many node), refine the search using the Search field (standard Gmail search operators) or filter by Label Names to process specific emails (e.g., unread from a specific sender, emails with a certain label).message or body fields passed to the send/reply nodes. Adjust prompts to control:"Reply to the following email thread [{{ $json.thread_content }}] addressing the customer {{ $json.customer_name }} about their query..."SEND_AND_WAIT node. Add nodes to:MySQL, PostgreSQL, Airtable).HubSpot, Salesforce).Slack, Discord, Telegram).Error Trigger node. From there, you can:This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | AI-powered Gmail MCP server |
|---|---|
| Complexity | intermediate |
| Nodes | 5 |
| Categories | Ticket Management, Multimodal AI |
| Author | Luciano Gutierrez |
| Published | 20 Apr 2025 |
Use the JSON export at /data/workflows/3623/3623.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
AI Powered Gmail MCP Server for n8n Description This n8n workflow template leverages an external AI Model Control Plane (MCP) Server to automate various Gmail tasks, such as composing emails, re...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management, Multimodal AI use case.