This workflow corresponds to n8n.io template #4050 — we link there as the canonical source.
This workflow follows the Chat Trigger → Execute Workflow Trigger 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": "Je3vR1nLDqm3aMqQ",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "\ud83d\udcac Demo Call Back",
"tags": [
{
"id": "no8Mb078mvRgw7PS",
"name": "DEMO",
"createdAt": "2025-04-30T05:34:10.330Z",
"updatedAt": "2025-04-30T05:34:10.330Z"
}
],
"nodes": [
{
"id": "7f37feab-7b61-4fa6-8c91-c0fba6e81428",
"name": "Media Switch",
"type": "n8n-nodes-base.switch",
"position": [
200,
920
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "15cd74bb-555b-4dee-bb6e-083763a6aef3",
"name": "Flow Trigger",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-1820,
760
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "7278ddee-8706-48fb-a103-824122255564",
"name": "Input",
"type": "n8n-nodes-base.set",
"position": [
-1580,
760
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "8cdd1195-a304-4c19-ae58-32bc116767d9",
"name": "Test Trigger",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"position": [
-1820,
960
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "d422a706-ae5c-4260-8a56-f77c95f5e607",
"name": "Test Fields",
"type": "n8n-nodes-base.set",
"position": [
-1580,
960
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "efeb6250-7049-489e-9ca7-cd989c8ac4a7",
"name": "Download Minimax Audio",
"type": "n8n-nodes-base.httpRequest",
"notes": "\ud83d\udc7b ON ERROR STOP",
"onError": "continueErrorOutput",
"position": [
1540,
640
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 4.2
},
{
"id": "bf81adff-eab4-49b2-adae-86a2749e77ea",
"name": "Telegram Voice Output",
"type": "n8n-nodes-base.telegram",
"notes": "@chpy_demo_bot",
"position": [
1740,
620
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1.2
},
{
"id": "f5b0ae5d-a45d-46a2-9d73-cf543c10f1c7",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1160,
400
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "0b2a3b09-3719-4726-918c-2a041537d494",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
740,
480
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "27450565-b746-49ca-b652-2823ac5c532b",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
100,
760
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "f5517bef-bc96-4a88-a2a6-d581b064331a",
"name": "If Provider No",
"type": "n8n-nodes-base.if",
"position": [
-1340,
760
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "2dc1548d-6329-4d60-abd4-25e91543effb",
"name": "Provider Cache",
"type": "n8n-nodes-base.redis",
"notes": "TTL 15m",
"onError": "continueRegularOutput",
"position": [
-1080,
520
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "aaddc697-2336-46be-a88a-fa69a8eeabb8",
"name": "Save Provider Cache",
"type": "n8n-nodes-base.redis",
"notes": "TTL 15m",
"onError": "continueRegularOutput",
"position": [
-380,
600
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1
},
{
"id": "920995e5-e543-4f0e-bb3b-9c72843cbaab",
"name": "If Provider Cache",
"type": "n8n-nodes-base.if",
"position": [
-860,
520
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "9768a213-2471-496c-8101-5e1625ac5089",
"name": "Provider",
"type": "n8n-nodes-base.set",
"position": [
-160,
500
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "3462fb92-b466-4dbe-8176-8ed434162206",
"name": "Load Provider Data",
"type": "n8n-nodes-base.postgres",
"onError": "continueRegularOutput",
"position": [
-600,
600
],
"parameters": {},
"executeOnce": true,
"typeVersion": 2.6,
"alwaysOutputData": true
},
{
"id": "c5297e7c-5ab0-4a4b-8ec3-07b410f56f6a",
"name": "If Provider Voice",
"type": "n8n-nodes-base.if",
"position": [
560,
780
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "79e2cc7a-df75-46ec-b49a-884667b52e00",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2100,
660
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "ce0507a8-ebf1-4f4d-b3a8-9d17e3aa9d12",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"position": [
820,
720
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "12ee2e31-d06e-4b15-b72a-a2409f92f101",
"name": "Create Chat Log Output",
"type": "n8n-nodes-base.postgres",
"onError": "continueRegularOutput",
"position": [
560,
160
],
"parameters": {},
"executeOnce": true,
"typeVersion": 2.6
},
{
"id": "aea3239f-219b-41b1-9026-2222cac97a6f",
"name": "Create Chat Log Input",
"type": "n8n-nodes-base.postgres",
"onError": "continueRegularOutput",
"position": [
340,
60
],
"parameters": {},
"executeOnce": true,
"typeVersion": 2.6
},
{
"id": "de6b2428-dbc8-4004-a319-aadbeaf9c580",
"name": "If Input",
"type": "n8n-nodes-base.if",
"position": [
120,
140
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "5cbe76b1-0ea4-4d40-8941-e51ebbc038ff",
"name": "Output",
"type": "n8n-nodes-base.set",
"position": [
2220,
1380
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "254958ca-ad37-4c3e-8957-6af9f9899a55",
"name": "Media Switch1",
"type": "n8n-nodes-base.switch",
"position": [
200,
1140
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "91bdac61-2819-4189-8341-6ce9812f7d8f",
"name": "Chinese,Yue",
"type": "n8n-nodes-base.set",
"position": [
1100,
520
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "a08d4c06-ccba-4740-85fe-99c8786ca5da",
"name": "Minimax TTS",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueRegularOutput",
"position": [
1340,
640
],
"parameters": {},
"notesInFlow": false,
"typeVersion": 4.2,
"alwaysOutputData": true
},
{
"id": "c243d382-f5c7-49e9-8c2d-01104c550eee",
"name": "Chinese",
"type": "n8n-nodes-base.set",
"position": [
1100,
680
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "9673e139-15b0-445b-ad01-4bebc7703f70",
"name": "Japanese",
"type": "n8n-nodes-base.set",
"position": [
1100,
840
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "6ba0be81-f47d-4b22-a539-5a0ce10c3d7c",
"name": "English",
"type": "n8n-nodes-base.set",
"position": [
1100,
1000
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "eb8e9741-505d-4375-910a-64702dea7bc6",
"name": "If Reply",
"type": "n8n-nodes-base.if",
"position": [
1980,
800
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "d694be56-34f1-4f11-90d4-f55aa1f34b7b",
"name": "Telegram Reply Output",
"type": "n8n-nodes-base.telegram",
"notes": "@chpy_demo_bot",
"position": [
2220,
700
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1.2
},
{
"id": "60789078-05a3-48c8-8821-34513c82e009",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "7118e129-23d8-4420-b609-c6239912276a",
"name": "Telegram Output",
"type": "n8n-nodes-base.telegram",
"notes": "@chpy_demo_bot",
"position": [
2220,
940
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 1.2
},
{
"id": "e95a9255-1184-4c1c-b43d-678674c7abf2",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
520,
400
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b1f76f30-98c9-4421-a858-0d4795148fb4",
"name": "Parse Cache",
"type": "n8n-nodes-base.code",
"position": [
-600,
440
],
"parameters": {},
"typeVersion": 2
}
],
"active": false,
"settings": {
"timezone": "Asia/Hong_Kong",
"callerPolicy": "workflowsFromSameOwner",
"errorWorkflow": "oxs9DmRSQHNYlBEr",
"executionOrder": "v1"
},
"versionId": "f0c00aed-6394-4a2f-b4a8-669f30441226",
"connections": {
"Input": {
"main": [
[
{
"node": "If Provider No",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Chinese,Yue",
"type": "main",
"index": 0
}
],
[
{
"node": "Chinese",
"type": "main",
"index": 0
}
],
[
{
"node": "Chinese",
"type": "main",
"index": 0
}
],
[
{
"node": "Japanese",
"type": "main",
"index": 0
}
],
[
{
"node": "English",
"type": "main",
"index": 0
}
]
]
},
"Chinese": {
"main": [
[
{
"node": "Minimax TTS",
"type": "main",
"index": 0
}
]
]
},
"English": {
"main": [
[
{
"node": "Minimax TTS",
"type": "main",
"index": 0
}
]
]
},
"If Input": {
"main": [
[
{
"node": "Create Chat Log Input",
"type": "main",
"index": 0
}
],
[
{
"node": "Create Chat Log Output",
"type": "main",
"index": 0
}
]
]
},
"If Reply": {
"main": [
[
{
"node": "Telegram Reply Output",
"type": "main",
"index": 0
}
],
[
{
"node": "Telegram Output",
"type": "main",
"index": 0
}
]
]
},
"Japanese": {
"main": [
[
{
"node": "Minimax TTS",
"type": "main",
"index": 0
}
]
]
},
"Provider": {
"main": [
[
{
"node": "Media Switch",
"type": "main",
"index": 0
},
{
"node": "If Input",
"type": "main",
"index": 0
}
]
]
},
"Chinese,Yue": {
"main": [
[
{
"node": "Minimax TTS",
"type": "main",
"index": 0
}
]
]
},
"Minimax TTS": {
"main": [
[
{
"node": "Download Minimax Audio",
"type": "main",
"index": 0
}
]
]
},
"Parse Cache": {
"main": [
[
{
"node": "Provider",
"type": "main",
"index": 0
}
]
]
},
"Test Fields": {
"main": [
[
{
"node": "Input",
"type": "main",
"index": 0
}
]
]
},
"Flow Trigger": {
"main": [
[
{
"node": "Input",
"type": "main",
"index": 0
}
]
]
},
"Media Switch": {
"main": [
[
{
"node": "If Provider Voice",
"type": "main",
"index": 0
}
],
[],
[
{
"node": "Output",
"type": "main",
"index": 0
}
]
]
},
"Test Trigger": {
"main": [
[
{
"node": "Test Fields",
"type": "main",
"index": 0
}
]
]
},
"Media Switch1": {
"main": [
[
{
"node": "If Reply",
"type": "main",
"index": 0
}
],
[],
[
{
"node": "Output",
"type": "main",
"index": 0
}
]
]
},
"If Provider No": {
"main": [
[
{
"node": "Provider Cache",
"type": "main",
"index": 0
}
],
[
{
"node": "Media Switch1",
"type": "main",
"index": 0
}
]
]
},
"Provider Cache": {
"main": [
[
{
"node": "If Provider Cache",
"type": "main",
"index": 0
}
]
]
},
"Telegram Output": {
"main": [
[
{
"node": "Output",
"type": "main",
"index": 0
}
]
]
},
"If Provider Cache": {
"main": [
[
{
"node": "Parse Cache",
"type": "main",
"index": 0
}
],
[
{
"node": "Load Provider Data",
"type": "main",
"index": 0
}
]
]
},
"If Provider Voice": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
],
[
{
"node": "If Reply",
"type": "main",
"index": 0
}
]
]
},
"Load Provider Data": {
"main": [
[
{
"node": "Save Provider Cache",
"type": "main",
"index": 0
}
]
]
},
"Save Provider Cache": {
"main": [
[
{
"node": "Provider",
"type": "main",
"index": 0
}
]
]
},
"Create Chat Log Input": {
"main": [
[
{
"node": "Create Chat Log Output",
"type": "main",
"index": 0
}
]
]
},
"Telegram Reply Output": {
"main": [
[
{
"node": "Output",
"type": "main",
"index": 0
}
]
]
},
"Telegram Voice Output": {
"main": [
[
{
"node": "If Reply",
"type": "main",
"index": 0
}
]
]
},
"Download Minimax Audio": {
"main": [
[
{
"node": "Telegram Voice Output",
"type": "main",
"index": 0
}
],
[
{
"node": "If Reply",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Template was created in n8n v1.90.2 Execute Sub-workflow Trigger node Chat Trigger node Redis node Postgres node Telegram node HTTP Request node If node, Code node, Edit Fields (Set) Execute Sub-workflow Trigger: your own node MiniMax Account (https://www.minimax.io/) Scaling…
Source: https://n8n.io/workflows/4050/ — 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.
Template was created in n8n v1.90.2 Chat Trigger node Telegram Trigger node Redis node Postgres node Execute Sub-workflow If node, Code node, Edit Fields (Set), Extract From File Community nodes: n8n-
A robust n8n workflow designed to enhance Telegram bot functionality for user management and broadcasting. It facilitates automatic support ticket creation, efficient user data storage in Redis, and a
End-to-End Video Creation from user idea or transcript AI-Powered Scriptwriting using LLMs (e.g., DeepSeek via OpenRouter) Voiceover Generation with customizable TTS voices Image Scene Generation usin
This comprehensive N8N automation template revolutionizes content creation by delivering a complete end-to-end solution for AI-powered blog generation. Transform simple ideas into fully SEO-optimized,
Telegram Code. Uses lmChatOpenAi, outputParserAutofixing, outputParserStructured, telegramTrigger. Event-driven trigger; 43 nodes.