This workflow corresponds to n8n.io template #4025 — we link there as the canonical source.
This workflow follows the Agent → Gmail Tool recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "pKTny0sUPMYdssGf",
"name": "ai assistant updated",
"tags": [],
"nodes": [
{
"id": "b22ddb39-0c3c-49af-ae4d-8524686036aa",
"name": "Content Creator Agent",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
40,
260
],
"parameters": {},
"typeVersion": 2
},
{
"id": "325a1722-31a0-4ede-8813-3e2d5eab345f",
"name": "Tavily",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
160,
260
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "43ee4601-500b-4ca0-a090-cf28f837a234",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "8f752efb-d29a-401f-a7ad-e724698b494d",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
400,
400
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "21dec0e5-5a18-4cd4-b069-b86c9c21a497",
"name": "Set 'Text'",
"type": "n8n-nodes-base.set",
"position": [
700,
640
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "be3cf381-9d66-4a8e-a6f8-6df126e42152",
"name": "Download File",
"type": "n8n-nodes-base.telegram",
"disabled": true,
"position": [
480,
500
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "a5993876-e4f9-49e5-9822-273056d55d1b",
"name": "Transcribe",
"type": "@n8n/n8n-nodes-langchain.openAi",
"disabled": true,
"position": [
700,
460
],
"parameters": {},
"typeVersion": 1.6
},
{
"id": "32d1b628-942d-4719-8344-aac6172c387d",
"name": "Telegram Trigger1",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
40,
600
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "7e8dfe0d-1b0f-410b-9d0b-cfcec168ac97",
"name": "Response1",
"type": "n8n-nodes-base.telegram",
"position": [
1500,
460
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "1ed74eae-93a5-4a0a-899d-2599ee6fbe51",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
980,
460
],
"parameters": {},
"typeVersion": 1.9
},
{
"id": "b5bf7db3-e9c2-4083-ad18-91c36c0824b5",
"name": "MCP Client",
"type": "@n8n/n8n-nodes-langchain.mcpClientTool",
"position": [
1220,
640
],
"parameters": {},
"typeVersion": 1
},
{
"id": "8fef85d6-4aa1-4e25-a76e-415609fc9b0e",
"name": "MCP Server Trigger",
"type": "@n8n/n8n-nodes-langchain.mcpTrigger",
"position": [
920,
40
],
"parameters": {},
"typeVersion": 1
},
{
"id": "bb927115-eb61-4d99-8433-31f8cd8bcf65",
"name": "Create Event with Attendee",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
400,
260
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "0330df04-7284-49dc-8b70-e94efeb9f5f7",
"name": "Create Event",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
520,
260
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "df8d151d-d4b4-46e2-a1be-69a563f944b3",
"name": "Get Events",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
640,
260
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "410f9de0-ddb0-49a8-850c-cef6b1461b0b",
"name": "Delete Event",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
760,
260
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "59754072-d683-4389-8bdc-657d01074e1f",
"name": "Update Event",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
880,
260
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "f336a865-6d1b-4d53-b474-420d258f5d66",
"name": "Send Email",
"type": "n8n-nodes-base.gmailTool",
"position": [
1000,
260
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "33462765-50bf-47de-a88b-996dba3fe7cd",
"name": "Get Emails",
"type": "n8n-nodes-base.gmailTool",
"position": [
1240,
260
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "7c09927a-7bb4-429b-a4d0-2ee680617b45",
"name": "Create Draft",
"type": "n8n-nodes-base.gmailTool",
"position": [
1360,
260
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "06e1ace2-589c-41f8-8aaa-8934cc24fac3",
"name": "Email Reply",
"type": "n8n-nodes-base.gmailTool",
"position": [
1120,
260
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "d15d5aad-3713-41f4-8c7b-a8613f1e5029",
"name": "Get Labels",
"type": "n8n-nodes-base.gmailTool",
"position": [
1480,
260
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "b8fef7b3-ed77-40d2-a222-0bcc5040efb5",
"name": "Label Emails",
"type": "n8n-nodes-base.gmailTool",
"position": [
1600,
260
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "d7610a01-da36-49d7-af1b-393b8e34f55d",
"name": "Mark Unread",
"type": "n8n-nodes-base.gmailTool",
"position": [
1720,
260
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "5a8e0012-5a4e-4908-b9f5-cdbd66e16273",
"name": "update contact data",
"type": "n8n-nodes-base.googleSheetsTool",
"position": [
1840,
260
],
"parameters": {},
"typeVersion": 4.5
},
{
"id": "4130fd5b-d542-4ea5-aff5-c5e639b2da73",
"name": "search contact data",
"type": "n8n-nodes-base.googleSheetsTool",
"position": [
1960,
260
],
"parameters": {},
"typeVersion": 4.5
},
{
"id": "bb6b9750-2521-4d32-bbdf-ad1e68acb396",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
400
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "24072924-1e70-4a86-833c-f644a1084a7a",
"name": "Gemini model",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
900,
640
],
"parameters": {},
"typeVersion": 1
},
{
"id": "97ad86c2-e526-4255-a5aa-f9adfb4e00f2",
"name": "User Context",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
1040,
640
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "7d88a266-fe43-4c1c-b5ec-0ac4278f73d1",
"name": "response parser",
"type": "n8n-nodes-base.code",
"position": [
1320,
460
],
"parameters": {},
"typeVersion": 2
},
{
"id": "e342b2ed-542a-44c4-a350-d14621b6c390",
"name": "Switch input",
"type": "n8n-nodes-base.switch",
"position": [
260,
600
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "e4c0e51c-ebd3-42e8-8337-9740d47b19df",
"name": "Calculate Maths",
"type": "@n8n/n8n-nodes-langchain.toolCalculator",
"position": [
280,
260
],
"parameters": {},
"typeVersion": 1
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "1b3bde16-ec55-460b-88d6-e7dea0cb1c2f",
"connections": {
"Tavily": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "response parser",
"type": "main",
"index": 0
}
]
]
},
"Get Emails": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Get Events": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Get Labels": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"MCP Client": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Send Email": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Set 'Text'": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Transcribe": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Email Reply": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Mark Unread": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Create Draft": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Create Event": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Delete Event": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Gemini model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Label Emails": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Switch input": {
"main": [
[
{
"node": "Download File",
"type": "main",
"index": 0
}
],
[
{
"node": "Set 'Text'",
"type": "main",
"index": 0
}
]
]
},
"Update Event": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"User Context": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Download File": {
"main": [
[
{
"node": "Transcribe",
"type": "main",
"index": 0
}
]
]
},
"Calculate Maths": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"response parser": {
"main": [
[
{
"node": "Response1",
"type": "main",
"index": 0
}
]
]
},
"Telegram Trigger1": {
"main": [
[
{
"node": "Switch input",
"type": "main",
"index": 0
}
]
]
},
"search contact data": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"update contact data": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Content Creator Agent": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
},
"Create Event with Attendee": {
"ai_tool": [
[
{
"node": "MCP Server Trigger",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
> This n8n template builds Stacey, an AI assistant that runs inside Telegram. Stacey listens to your messages, understands what you want using AI, and intelligently routes commands to MCP-connected tools — like Gmail, Google Calendar, a blog writer, and more. > > For…
Source: https://n8n.io/workflows/4025/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Telegram Trigger receives incoming messages (text, voice, photo, document). Switch routes by message type to appropriate processors: Text → forwarded as-is. Voice → downloaded and sent to Transcribe a
Transform your Telegram messenger into a powerful, multi-modal personal or team assistant. This n8n workflow creates an intelligent agent that can understand text, voice, images, and documents, and ta
A comprehensive n8n workflow demonstrating advanced AI agent orchestration, stateful conversation management, and multi-modal input processing for nutrition tracking applications.
Transform your salon/service business with this streamlined Telegram automation system featuring Claude integration, zero-setup database management, and intelligent conversation handling. Claude MCP I
Jarvis is a powerful multi-agent productivity assistant built in n8n. It works directly from Telegram and can understand both text messages and voice notes.