This workflow corresponds to n8n.io template #3629 — we link there as the canonical source.
This workflow follows the Agent → OpenAI Embeddings 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": "MMiaDhUfsB5mqTY7",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "MyAIAgentTeam:Email,Meeting,WebSearch,Notion,Tweet,RAG_PUBLIC",
"tags": [
{
"id": "W7eaE1NVqTisi5k2",
"name": "RAG",
"createdAt": "2025-01-26T15:21:53.716Z",
"updatedAt": "2025-01-26T15:21:53.716Z"
}
],
"nodes": [
{
"id": "1321c496-d6f9-4848-90da-e4f1daca28ba",
"name": "Telegram Trigger",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-420,
-300
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "8dba26e5-c046-43c5-a531-16e1dfc4e46e",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"position": [
-180,
-300
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "bb5e6ef2-b4a3-48d3-8ec0-a25ca4c73880",
"name": "OpenAI",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
320,
-300
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "714edd4b-c000-4fff-9bf2-8e977ff5c131",
"name": "OpenAI1",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
140,
0
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "aeba0720-6018-447b-a837-268ecdfda8e4",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
900,
-300
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "0c9dd0e1-e02e-4516-9e1c-9265fdaeb1fb",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
2020,
-300
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "6901ad71-e1b9-4398-80a3-9529c25fb3b3",
"name": "Edit Fields_Audio",
"type": "n8n-nodes-base.set",
"position": [
520,
-300
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "6d256ada-bee3-4b04-b353-18598addd3df",
"name": "Edit Fields_Image",
"type": "n8n-nodes-base.set",
"position": [
520,
0
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "564a7622-a9cf-4ca3-9771-3f491db51223",
"name": "Edit Fields_Text",
"type": "n8n-nodes-base.set",
"position": [
520,
-560
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "c845c087-90c7-46e4-bbda-f950cd296b54",
"name": "Pinecone Vector Store",
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"position": [
2920,
520
],
"parameters": {},
"typeVersion": 1
},
{
"id": "cc5b804a-69ba-4f43-9066-bd1f0cf0b2b3",
"name": "Embeddings OpenAI",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"position": [
2920,
660
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "1596ff83-3fe9-4900-ad2c-8eb5ca51dd8f",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-480,
-400
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "0eead02f-a3d4-4ac3-8b63-fa025190e366",
"name": "Window Buffer Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
960,
60
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "3394bbbf-ac4a-4f9a-9336-9c5f1812f3ee",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-240,
-400
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "4dd520eb-5c35-4091-890b-e15538f5c3d2",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
460,
-660
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "8270fa9f-5868-48d2-a5ac-09a59cececb2",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
460,
-380
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "cadcb52a-8a4c-41dd-9414-e46a07c7e500",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
460,
-80
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c16f77b5-4906-482f-baf6-e816df229341",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
100,
-380
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a589b921-3446-4713-975f-309c93b54b2e",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
100,
-80
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "1cac11a9-a2cf-431b-9d79-4fe36fd86d3b",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"position": [
780,
-660
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "e8e45470-39b0-440d-b6ab-4f27b613ef38",
"name": "Sticky Note8",
"type": "n8n-nodes-base.stickyNote",
"position": [
2880,
420
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d5695168-5c0e-4ed0-aa01-5ab531d10835",
"name": "Sticky Note10",
"type": "n8n-nodes-base.stickyNote",
"position": [
1920,
-340
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "72f31b34-2731-4c1a-9116-b321559d3713",
"name": "Sticky Note11",
"type": "n8n-nodes-base.stickyNote",
"position": [
900,
-20
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "0e316d8d-7085-42ca-902c-410fc73d00af",
"name": "DownloadAudio",
"type": "n8n-nodes-base.telegram",
"position": [
140,
-300
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "940e0073-eeb2-4ba5-98e2-4912e1ab67eb",
"name": "Sticky Note16",
"type": "n8n-nodes-base.stickyNote",
"position": [
-540,
-1220
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "bdc52072-069e-46a5-921d-998fa09cfbca",
"name": "Think",
"type": "@n8n/n8n-nodes-langchain.toolThink",
"position": [
3400,
640
],
"parameters": {},
"typeVersion": 1
},
{
"id": "ceedab35-e0eb-4bf8-8481-0ea783375c48",
"name": "Send Email",
"type": "n8n-nodes-base.gmailTool",
"position": [
-440,
520
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "26377cf7-6a54-4577-b8b8-23d8a649ae66",
"name": "Get Emails",
"type": "n8n-nodes-base.gmailTool",
"position": [
40,
520
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "3f34843b-65af-41cc-afe2-9873c007fb4f",
"name": "Create Draft",
"type": "n8n-nodes-base.gmailTool",
"position": [
-80,
520
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "bdaa94a7-12d7-4603-91b7-fc0ada366229",
"name": "Email Reply",
"type": "n8n-nodes-base.gmailTool",
"position": [
-320,
520
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "423b1189-de27-4761-9bca-193f017f0adc",
"name": "Get Labels",
"type": "n8n-nodes-base.gmailTool",
"position": [
160,
520
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "bc55fac9-007c-4240-8c8d-a33a0c183116",
"name": "Label Emails",
"type": "n8n-nodes-base.gmailTool",
"position": [
-200,
520
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "13dc9bfc-8245-47a6-80fc-43895a080649",
"name": "Create Event with Attendee",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
1600,
520
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "4f210b5c-695e-46e1-80c5-e2211c397db1",
"name": "Create Event",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
1460,
520
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "49b35ba2-c30e-41bf-8ae0-46f3d396bcd7",
"name": "Get Events",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
1320,
520
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "70124ef7-4764-488b-b78c-e411c8902c04",
"name": "Delete Event",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
1180,
520
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "c6e87c93-a51b-4fa0-a3e2-c33751c5b029",
"name": "Update Event",
"type": "n8n-nodes-base.googleCalendarTool",
"position": [
1040,
520
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "1003ec9d-3ebf-4a17-b9b4-1fbe207e2428",
"name": "Get Contact",
"type": "n8n-nodes-base.googleSheetsTool",
"position": [
500,
520
],
"parameters": {},
"typeVersion": 4.5
},
{
"id": "db0ab4fb-fe76-4be2-9904-c84724adb017",
"name": "Add Contact",
"type": "n8n-nodes-base.googleSheetsTool",
"position": [
660,
520
],
"parameters": {},
"typeVersion": 4.5
},
{
"id": "3c6e8e86-c5bf-4434-8621-deb2066b0872",
"name": "Tavily WebSearch",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
2300,
540
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "2033cd1a-fd72-46aa-b3ca-061bb8f434d3",
"name": "Post to X",
"type": "n8n-nodes-base.twitterTool",
"position": [
2640,
540
],
"parameters": {},
"typeVersion": 2
},
{
"id": "ac066edd-796b-459a-9f49-aa5e549bae1b",
"name": "Take notes in Notion",
"type": "n8n-nodes-base.notionTool",
"position": [
1940,
540
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "be889af3-5774-46d5-b40b-07d99f9c4637",
"name": "GPT",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
760,
40
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "5c82ad48-3db2-4f64-ad32-94bb83cc1d36",
"name": "Sticky Note9",
"type": "n8n-nodes-base.stickyNote",
"position": [
-500,
420
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "6061aa4e-67db-4788-a789-2de055bdd7f1",
"name": "Sticky Note12",
"type": "n8n-nodes-base.stickyNote",
"position": [
400,
420
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a51ee294-0f24-4b18-a995-bf0b008b0d3f",
"name": "Sticky Note13",
"type": "n8n-nodes-base.stickyNote",
"position": [
980,
420
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a3169f3b-04ad-42a8-8a2e-9449c4aa2ca3",
"name": "Sticky Note14",
"type": "n8n-nodes-base.stickyNote",
"position": [
1840,
420
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "602f0e39-5d52-47a3-970b-468f20f0c3c2",
"name": "Sticky Note15",
"type": "n8n-nodes-base.stickyNote",
"position": [
2200,
420
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b656529f-5251-43e2-8292-75dfe2382e90",
"name": "Sticky Note18",
"type": "n8n-nodes-base.stickyNote",
"position": [
2540,
420
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "3593f2fc-fd87-4001-91b5-ded8bba1e1be",
"name": "Sticky Note19",
"type": "n8n-nodes-base.stickyNote",
"position": [
3260,
420
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2bf8c254-ae2d-426d-acff-0a3555564b9b",
"name": "Sticky Note17",
"type": "n8n-nodes-base.stickyNote",
"position": [
-540,
-940
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"timezone": "Europe/Paris",
"callerPolicy": "workflowsFromSameOwner",
"executionOrder": "v1"
},
"versionId": "7e3b09f2-eda9-4c56-8bbf-e1b9398f9631",
"connections": {
"GPT": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Think": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"OpenAI": {
"main": [
[
{
"node": "Edit Fields_Audio",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Edit Fields_Text",
"type": "main",
"index": 0
}
],
[
{
"node": "DownloadAudio",
"type": "main",
"index": 0
}
],
[
{
"node": "OpenAI1",
"type": "main",
"index": 0
}
]
]
},
"OpenAI1": {
"main": [
[
{
"node": "Edit Fields_Image",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Telegram",
"type": "main",
"index": 0
}
]
]
},
"Post to X": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Get Emails": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Get Events": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Get Labels": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Send Email": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Add Contact": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Email Reply": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Get Contact": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Create Draft": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Create Event": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Delete Event": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Label Emails": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Update Event": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"DownloadAudio": {
"main": [
[
{
"node": "OpenAI",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields_Text": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Tavily WebSearch": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Telegram Trigger": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields_Audio": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields_Image": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Embeddings OpenAI": {
"ai_embedding": [
[
{
"node": "Pinecone Vector Store",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Take notes in Notion": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Window Buffer Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Pinecone Vector Store": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Create Event with Attendee": {
"ai_tool": [
[
{
"node": "AI Agent",
"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 is an ultimate AI assistant: Handle emails, schedule meetings, search the web, take notes, post to social media, and retrieve information from your knowledge base, all through simple Telegram commands (text, voice, or image). 1 Ready-to-use n8n workflow file () 4…
Source: https://n8n.io/workflows/3629/ — 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.
A lightweight, self-hosted AI assistant built entirely in n8n. Multi-channel messaging (Telegram, WhatsApp, Gmail), persistent memory, task management, and autonomous work — all in a single visual wor
This workflow implements an advanced AI automation agent (OpenClaw Agent) that interacts with users through Telegram and integrates multiple AI models, external tools, and cloud services to automate c
Your AI workforce is ready. Are you?
This comprehensive workflow bundle is designed as a powerful starter kit, enabling you to build a multi-functional AI assistant on Telegram. It seamlessly integrates AI-powered voice interactions, an
This n8n template automatically classifies incoming emails (Sales, Support, Internal, Finance, Promotions) and routes them to a dedicated OpenAI LLM Agent for processing. Depending on the category, th