Gmail MCPワークフロー - AI駆動のメール管理
中級
これはTicket Management, AI Chatbot分野の自動化ワークフローで、15個のノードを含みます。主にGmailTool, McpTriggerなどのノードを使用。 Gmail MCPワークフロー - AI駆動のメール管理
前提条件
- •Googleアカウント + Gmail API認証情報
使用ノード (15)
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"meta": {
"instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "984b6aba-c9ea-4b12-9274-c8d479c2719f",
"name": "MCP Server Trigger",
"type": "@n8n/n8n-nodes-langchain.mcpTrigger",
"notes": "🚀 MCP TRIGGER\n\nThis is the entry point for AI interactions with Gmail. The MCP (Model Context Protocol) trigger allows AI models to call any of the connected Gmail tools based on user requests.\n\nKey Features:\n• Enables natural language Gmail commands\n• Routes AI requests to appropriate Gmail operations\n• Provides context-aware email management\n• Supports complex multi-step email workflows",
"position": [
-1640,
200
],
"webhookId": "fe5e5e6c-07d6-48c1-a1f8-d554bae77daf",
"parameters": {
"path": "fe5e5e6c-07d6-48c1-a1f8-d554bae77daf"
},
"typeVersion": 1.1
},
{
"id": "64fd5646-c65b-4142-944f-7046a745690b",
"name": "Gmail - メール送信",
"type": "n8n-nodes-base.gmailTool",
"notes": "📧 SEND EMAIL\n\nCompose and send emails through AI commands. The AI extracts recipient, subject, and message content from natural language requests.\n\nUse Cases:\n• \"Send an email to john@example.com about the meeting\"\n• \"Compose a follow-up email to the client\"\n• \"Send a thank you note to the team\"\n\nAI Parameters:\n• To: Email recipient(s)\n• Subject: Email subject line\n• Message: Email body content",
"position": [
-1020,
700
],
"webhookId": "3000cd3a-79cd-4af9-949c-6f04955a725a",
"parameters": {
"sendTo": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('To', ``, 'string') }}",
"message": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message', ``, 'string') }}",
"options": {},
"subject": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Subject', ``, 'string') }}"
},
"credentials": {
"gmailOAuth2": {
"id": "LVRUgE95PAvkE1Mc",
"name": "Gmail account 2"
}
},
"typeVersion": 2.1
},
{
"id": "c57c28ce-2353-4f18-b7db-91f508ebe4da",
"name": "Gmail - メール取得",
"type": "n8n-nodes-base.gmailTool",
"notes": "📖 READ EMAIL\n\nRetrieve and read email content by message ID. Perfect for AI to analyze, summarize, or extract information from specific emails.\n\nUse Cases:\n• \"Read the latest email from Sarah\"\n• \"Get the content of message ID 123456\"\n• \"Show me the email about the project update\"\n\nReturns:\n• Full email content\n• Headers and metadata\n• Attachments information\n• Thread context",
"position": [
-800,
600
],
"webhookId": "305f98e4-e58c-486d-b66e-eb67fb0201a4",
"parameters": {
"operation": "get"
},
"credentials": {
"gmailOAuth2": {
"id": "LVRUgE95PAvkE1Mc",
"name": "Gmail account 2"
}
},
"typeVersion": 2.1
},
{
"id": "d164fa99-97f4-4544-8ea6-c74ae06bb2b4",
"name": "Gmail - 未読マーク",
"type": "n8n-nodes-base.gmailTool",
"notes": "👁️ MARK AS UNREAD\n\nMark emails as unread to ensure they get attention later. Useful for emails that need follow-up or further action.\n\nUse Cases:\n• \"Mark that important email as unread\"\n• \"I need to revisit this email later\"\n• \"Flag this message for follow-up\"\n\nBest Practices:\n• Use for emails requiring action\n• Combine with labels for better organization\n• Great for creating manual reminders",
"position": [
-600,
500
],
"webhookId": "0a16a6f4-f36a-4774-9229-bd2a6ed30fde",
"parameters": {
"operation": "markAsUnread"
},
"credentials": {
"gmailOAuth2": {
"id": "LVRUgE95PAvkE1Mc",
"name": "Gmail account 2"
}
},
"typeVersion": 2.1
},
{
"id": "d5712ba7-9db0-4203-b5b9-1a0ece642cce",
"name": "Gmail - ラベル追加",
"type": "n8n-nodes-base.gmailTool",
"notes": "🏷️ ADD LABELS\n\nOrganize emails by adding labels for better categorization and workflow management.\n\nUse Cases:\n• \"Label this email as 'Important'\"\n• \"Add 'Project-X' label to recent emails\"\n• \"Categorize this as 'Follow-up Required'\"\n\nAI Parameters:\n• Message_ID: Target email ID\n• Label_Names_or_IDs: Labels to apply\n\nTip: Use descriptive labels for AI-driven organization",
"position": [
-280,
400
],
"webhookId": "d2ae386f-e833-4129-ad97-94e3b3bcb950",
"parameters": {
"labelIds": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Label_Names_or_IDs', ``, 'string') }}",
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
"operation": "addLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "LVRUgE95PAvkE1Mc",
"name": "Gmail account 2"
}
},
"typeVersion": 2.1
},
{
"id": "558332d6-5ff4-4eea-9aa1-7851ad94397e",
"name": "Gmail - 既読マーク",
"type": "n8n-nodes-base.gmailTool",
"notes": "✅ MARK AS READ\n\nMark emails as read to maintain inbox organization and track processed messages.\n\nUse Cases:\n• \"Mark all emails from today as read\"\n• \"I've processed this email, mark it read\"\n• \"Clean up my unread messages\"\n\nAutomation Ideas:\n• Auto-mark newsletters as read\n• Mark processed support tickets\n• Bulk mark promotional emails",
"position": [
-600,
60
],
"webhookId": "4c54b980-dccb-47af-b9aa-672cc0cf687c",
"parameters": {
"operation": "markAsRead"
},
"credentials": {
"gmailOAuth2": {
"id": "LVRUgE95PAvkE1Mc",
"name": "Gmail account 2"
}
},
"typeVersion": 2.1
},
{
"id": "ea878786-f87d-4734-bed0-f4d96c459593",
"name": "Gmail - ラベル削除",
"type": "n8n-nodes-base.gmailTool",
"notes": "🗑️ REMOVE LABELS\n\nRemove labels from emails to update categorization or clean up organization system.\n\nUse Cases:\n• \"Remove 'Urgent' label from this email\"\n• \"Clean up old project labels\"\n• \"Update email categorization\"\n\nAI Parameters:\n• Message_ID: Target email ID\n• Label_Names_or_IDs: Labels to remove\n\nWorkflow Tip: Combine with add labels for label migration",
"position": [
-1460,
640
],
"webhookId": "830a9b14-2bbe-4969-a3a9-fd76a8069339",
"parameters": {
"labelIds": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Label_Names_or_IDs', ``, 'string') }}",
"messageId": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Message_ID', ``, 'string') }}",
"operation": "removeLabels"
},
"credentials": {
"gmailOAuth2": {
"id": "LVRUgE95PAvkE1Mc",
"name": "Gmail account 2"
}
},
"typeVersion": 2.1
},
{
"id": "98f2cb9e-d0a9-48a9-9b9a-26a195128180",
"name": "付箋 - MCPトリガー",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2020,
-60
],
"parameters": {
"color": 5,
"width": 689,
"height": 424,
"content": "## 🚀 MCP TRIGGER EXPLANATION\n\n**What it does:**\nThis is the entry point for AI interactions with Gmail. The MCP (Model Context Protocol) trigger allows AI models to call any of the connected Gmail tools based on user requests.\n\n**Key Features:**\n• Enables natural language Gmail commands\n• Routes AI requests to appropriate Gmail operations\n• Provides context-aware email management\n• Supports complex multi-step email workflows\n\n**Example Commands:**\n\"Send an email to john@example.com\"\n\"Mark the latest email as important\"\n\"Read my unread messages\""
},
"typeVersion": 1
},
{
"id": "f3431de6-e652-44d0-9060-d8f320e148eb",
"name": "付箋 - メール送信",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1180,
840
],
"parameters": {
"width": 350,
"height": 284,
"content": "## 📧 SEND EMAIL\n\n**Purpose:**\nCompose and send emails through AI commands. The AI extracts recipient, subject, and message content from natural language requests.\n\n**Use Cases:**\n• \"Send an email to john@example.com about the meeting\"\n• \"Compose a follow-up email to the client\"\n• \"Send a thank you note to the team\"\n\n**AI Parameters:**\n• **To:** Email recipient(s)\n• **Subject:** Email subject line\n• **Message:** Email body content"
},
"typeVersion": 1
},
{
"id": "763d55d6-9c23-4997-b877-594e4c89d81d",
"name": "付箋 - メール取得",
"type": "n8n-nodes-base.stickyNote",
"position": [
-700,
780
],
"parameters": {
"color": 7,
"width": 320,
"height": 264,
"content": "## 📖 READ EMAIL\n\n**Purpose:**\nRetrieve and read email content by message ID. Perfect for AI to analyze, summarize, or extract information from specific emails.\n\n**Use Cases:**\n• \"Read the latest email from Sarah\"\n• \"Get the content of message ID 123456\"\n• \"Show me the email about the project update\"\n\n**Returns:**\n• Full email content\n• Headers and metadata\n• Attachments information\n• Thread context"
},
"typeVersion": 1
},
{
"id": "7e7eb446-0483-4c47-9420-c8c9292f48c1",
"name": "付箋 - 未読マーク",
"type": "n8n-nodes-base.stickyNote",
"position": [
-400,
580
],
"parameters": {
"width": 300,
"height": 244,
"content": "## 👁️ MARK AS UNREAD\n\n**Purpose:**\nMark emails as unread to ensure they get attention later. Useful for emails that need follow-up or further action.\n\n**Use Cases:**\n• \"Mark that important email as unread\"\n• \"I need to revisit this email later\"\n• \"Flag this message for follow-up\"\n\n**Best Practices:**\n• Use for emails requiring action\n• Combine with labels for better organization\n• Great for creating manual reminders"
},
"typeVersion": 1
},
{
"id": "976116f9-1b9e-466c-b3cf-46aa9a484320",
"name": "付箋 - ラベル追加",
"type": "n8n-nodes-base.stickyNote",
"position": [
-300,
60
],
"parameters": {
"color": 6,
"width": 320,
"height": 444,
"content": "## 🏷️ ADD LABELS\n\n**Purpose:**\nOrganize emails by adding labels for better categorization and workflow management.\n\n**Use Cases:**\n• \"Label this email as 'Important'\"\n• \"Add 'Project-X' label to recent emails\"\n• \"Categorize this as 'Follow-up Required'\"\n\n**AI Parameters:**\n• **Message_ID:** Target email ID\n• **Label_Names_or_IDs:** Labels to apply\n\n**Tip:** Use descriptive labels for AI-driven organization"
},
"typeVersion": 1
},
{
"id": "835c248d-e384-419b-a22f-9e590afa56c6",
"name": "付箋 - 既読マーク",
"type": "n8n-nodes-base.stickyNote",
"position": [
-900,
-60
],
"parameters": {
"width": 400,
"height": 244,
"content": "## ✅ MARK AS READ\n\n**Purpose:**\nMark emails as read to maintain inbox organization and track processed messages.\n\n**Use Cases:**\n• \"Mark all emails from today as read\"\n• \"I've processed this email, mark it read\"\n• \"Clean up my unread messages\"\n\n**Automation Ideas:**\n• Auto-mark newsletters as read\n• Mark processed support tickets\n• Bulk mark promotional emails"
},
"typeVersion": 1
},
{
"id": "faae81d9-bf04-4b66-8bb4-649b22f6cd5b",
"name": "付箋 - ラベル削除",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1640,
780
],
"parameters": {
"width": 320,
"height": 264,
"content": "## 🗑️ REMOVE LABELS\n\n**Purpose:**\nRemove labels from emails to update categorization or clean up organization system.\n\n**Use Cases:**\n• \"Remove 'Urgent' label from this email\"\n• \"Clean up old project labels\"\n• \"Update email categorization\"\n\n**AI Parameters:**\n• **Message_ID:** Target email ID\n• **Label_Names_or_IDs:** Labels to remove\n\n**Workflow Tip:** Combine with add labels for label migration"
},
"typeVersion": 1
},
{
"id": "f2da52ae-39ce-40b7-a162-4c4cb369e7f4",
"name": "付箋 - 概要",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2620,
280
],
"parameters": {
"color": 7,
"width": 400,
"height": 664,
"content": "## 🎯 WORKFLOW OVERVIEW\n\n**Gmail MCP - AI-Powered Email Management**\n\nThis workflow provides a complete toolkit for intelligent email management through AI interactions using the Model Context Protocol (MCP).\n\n**Core Capabilities:**\n• 📧 Send personalized emails\n• 📖 Read and analyze email content\n• 🏷️ Organize with smart labeling\n• ✅ Manage read/unread status\n• 🤖 Natural language commands\n\n**Getting Started:**\n1. Ensure Gmail OAuth2 is configured\n2. Test each tool individually\n3. Use natural language with your AI\n4. Monitor workflow execution logs"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"c57c28ce-2353-4f18-b7db-91f508ebe4da": {
"ai_tool": [
[
{
"node": "984b6aba-c9ea-4b12-9274-c8d479c2719f",
"type": "ai_tool",
"index": 0
}
]
]
},
"558332d6-5ff4-4eea-9aa1-7851ad94397e": {
"ai_tool": [
[
{
"node": "984b6aba-c9ea-4b12-9274-c8d479c2719f",
"type": "ai_tool",
"index": 0
}
]
]
},
"d5712ba7-9db0-4203-b5b9-1a0ece642cce": {
"ai_tool": [
[
{
"node": "984b6aba-c9ea-4b12-9274-c8d479c2719f",
"type": "ai_tool",
"index": 0
}
]
]
},
"64fd5646-c65b-4142-944f-7046a745690b": {
"ai_tool": [
[
{
"node": "984b6aba-c9ea-4b12-9274-c8d479c2719f",
"type": "ai_tool",
"index": 0
}
]
]
},
"d164fa99-97f4-4544-8ea6-c74ae06bb2b4": {
"ai_tool": [
[
{
"node": "984b6aba-c9ea-4b12-9274-c8d479c2719f",
"type": "ai_tool",
"index": 0
}
]
]
},
"ea878786-f87d-4734-bed0-f4d96c459593": {
"ai_tool": [
[
{
"node": "984b6aba-c9ea-4b12-9274-c8d479c2719f",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
中級 - チケット管理, AIチャットボット
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
予備モデルを使った最初のメールエージェントを構築する
最初の自動化されたメールサポートエージェントを構築する(AIバックアップとログ記録を含む)
Gmail
Gmail Trigger
Agent
+
Gmail
Gmail Trigger
Agent
11 ノードDavid Olusola
チケット管理
Airtable MCP
AirtableにおけるAI駆動の連絡先管理で、自然言語コマンドをサポート
Airtable Tool
Mcp Trigger
Airtable Tool
Mcp Trigger
10 ノードDavid Olusola
顧客管理
Google Sheets MCP - AI駆動型スプレッドシート管理
Google Sheets MCP - AI駆動型スプレッドシート管理システム
Google Sheets Tool
Mcp Trigger
Google Sheets Tool
Mcp Trigger
15 ノードDavid Olusola
文書抽出
AI駆動型カスタマーサポート:メール、ナレッジベース、リ Humanアップグレードの自動化
AIメールサポートシステム:Gmail、Gemini、GPT-4、Slack、Google Sheetsを統合したワークフロー
Set
Gmail
Slack
+
Set
Gmail
Slack
26 ノードDavid Olusola
チケット管理
自動顧客フィードバックトリAGEとフォローアップには、Gemini、JotForm、Gmail、Jiraを使用します
Gemini、JotForm、Gmail、Jiraを使った自動化顧客フィードバック triage とフォローアップ
Set
Jira Tool
Gmail Tool
+
Set
Jira Tool
Gmail Tool
14 ノードZain Khan
チケット管理
ジェミニ2.0フラッシュAIとGoogleスプレッドシートを活用した会話型リードキャプチャ
Gemini 2.0 Flash AI と Google Sheets を基にした対話型リードキャプチャー
Webhook
Agent
Google Sheets Tool
+
Webhook
Agent
Google Sheets Tool
10 ノードDavid Olusola
リード獲得
ワークフロー情報
難易度
中級
ノード数15
カテゴリー2
ノードタイプ3
作成者
David Olusola
@dae221AI automation consultant working with ambitious businesses on their most complex operational challenges. For project inquiries, reach me at david@daexai.com
外部リンク
n8n.ioで表示 →
このワークフローを共有