This workflow corresponds to n8n.io template #4155 — we link there as the canonical source.
This workflow follows the Agent → OpenAI Chat 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": "USWygSriOR85Mi2L",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "Ultimate Gaming AI Agent",
"tags": [],
"nodes": [
{
"id": "bc671547-46a7-4d0b-880e-12e7d68b4cb6",
"name": "Telegram Trigger",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-1500,
-1080
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "59be08b5-15d6-4fb1-aebe-651854d79f7a",
"name": "User Authentication (Replace Telegram ID)",
"type": "n8n-nodes-base.code",
"position": [
-1140,
-1080
],
"parameters": {},
"typeVersion": 2
},
{
"id": "c8bf03ac-4d38-4be0-8043-412070b6ca9a",
"name": "Simple Memory",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
620,
-740
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "c857ee49-8c59-4fa8-89ee-ff958aea3d2d",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
320,
-740
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "47914f9f-379b-4092-bb48-f8302e994cb7",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
1180,
-1060
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "374bef7a-954b-4ef0-ac52-582034bbba48",
"name": "Gaming AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
660,
-1060
],
"parameters": {},
"typeVersion": 1.9
},
{
"id": "706b20e5-3c57-4ae9-b548-89eb9813f0f7",
"name": "OpenAI4",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
120,
-1720
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "bc2e1fcd-8be3-4117-aa77-10170d208c3f",
"name": "Get Image Info",
"type": "n8n-nodes-base.editImage",
"position": [
-240,
-1720
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3c39b6d2-8fde-4f75-81b6-21f4fcac0509",
"name": "OpenAI2",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
-80,
-1280
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "aebd6674-f866-4947-a103-d3e57b6fc2ea",
"name": "Set Message",
"type": "n8n-nodes-base.set",
"position": [
300,
-1060
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "a2041a7b-faf5-4383-a165-676bf6835fdf",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
1480,
-2320
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "e8bdad22-d679-47b4-afd4-3679b30ef2cd",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1580,
-1260
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "5e4ff616-0bf9-4ab0-a93c-92892ead9e14",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1200,
-1260
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "dff37ea9-5cbb-46ce-b38e-fc43a813297a",
"name": "Message Format Selector",
"type": "n8n-nodes-base.switch",
"position": [
-800,
-1080
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "ca441e6c-1c6a-429a-ad7e-4eb0ed231dc5",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-900,
-1260
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2dca1b8e-3066-4eeb-8952-94c65eb77406",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-740,
-2120
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9fcb311f-930c-4709-ae47-f122615e6129",
"name": "Telegram Image Download",
"type": "n8n-nodes-base.telegram",
"position": [
-580,
-1720
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "61bd4a0b-467d-4875-8794-16b5d25f2307",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-540,
-1520
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "ff0643fa-1065-460b-a166-03785a9c55d0",
"name": "Telegram Sound Download",
"type": "n8n-nodes-base.telegram",
"position": [
-460,
-1280
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "27f4f469-d159-4850-b717-0f91e423401f",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
200,
-1260
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2906b7a2-924e-4859-902e-f0581bb669f2",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"position": [
580,
-1260
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "62abc5c4-5ebe-4413-9629-306372873e01",
"name": "Sticky Note9",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
-780
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "6abaac04-f551-456d-b6b4-aa26c022effa",
"name": "Sticky Note10",
"type": "n8n-nodes-base.stickyNote",
"position": [
1100,
-1260
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "8a4f5666-5346-477b-b9d8-d6ae9326a208",
"name": "Sticky Note11",
"type": "n8n-nodes-base.stickyNote",
"position": [
540,
-780
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "33c28d8c-f868-4b00-bef3-9ea4446371c1",
"connections": {
"OpenAI2": {
"main": [
[
{
"node": "Set Message",
"type": "main",
"index": 0
}
]
]
},
"OpenAI4": {
"main": [
[
{
"node": "Set Message",
"type": "main",
"index": 0
}
]
]
},
"Set Message": {
"main": [
[
{
"node": "Gaming AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "Gaming AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"Get Image Info": {
"main": [
[
{
"node": "OpenAI4",
"type": "main",
"index": 0
}
]
]
},
"Gaming AI Agent": {
"main": [
[
{
"node": "Telegram",
"type": "main",
"index": 0
}
]
]
},
"Telegram Trigger": {
"main": [
[
{
"node": "User Authentication (Replace Telegram ID)",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Gaming AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Message Format Selector": {
"main": [
[
{
"node": "Telegram Image Download",
"type": "main",
"index": 0
}
],
[
{
"node": "Telegram Sound Download",
"type": "main",
"index": 0
}
],
[
{
"node": "Set Message",
"type": "main",
"index": 0
}
]
]
},
"Telegram Image Download": {
"main": [
[
{
"node": "Get Image Info",
"type": "main",
"index": 0
}
]
]
},
"Telegram Sound Download": {
"main": [
[
{
"node": "OpenAI2",
"type": "main",
"index": 0
}
]
]
},
"User Authentication (Replace Telegram ID)": {
"main": [
[
{
"node": "Message Format Selector",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Play smarter, not harder.
Source: https://n8n.io/workflows/4155/ — 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.
BoomerBobBot.TP. Uses agent, telegramTrigger, telegram, memoryBufferWindow. Event-driven trigger; 95 nodes.
Digital marketers, content creators, social media managers, and businesses who want to use AI marketing automation for YouTube Shorts without spending hours on production. This AI workflow helps anyon
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.
Unlock the Power of Language with Personalized AI Learning! MOTION TUTOR is a revolutionary AI-powered language learning platform that adapts to your progress and guides you from basic vocabulary to c
Automate your personal productivity with this intelligent n8n workflow that integrates Telegram, Google Sheets, and OpenAI (GPT-4o). This system uses multiple AI agents to manage work hours, tasks, fi