This workflow corresponds to n8n.io template #9148 — we link there as the canonical source.
This workflow follows the Agent → 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": "djMLEjSgXKxWXaG4",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "SO Creation , Product Price Via Telegram - Single JSON File",
"tags": [],
"nodes": [
{
"id": "7d351292-1d78-496e-a9e5-f44320d2c546",
"name": "Code",
"type": "n8n-nodes-base.code",
"position": [
-1584,
320
],
"parameters": {},
"typeVersion": 2
},
{
"id": "afba8b72-de05-45d5-8ef8-751e750639a4",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"position": [
-1392,
496
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "92587b04-24e1-4f5f-9e3c-d5428d71eca8",
"name": "Google Gemini Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-2096,
592
],
"parameters": {},
"typeVersion": 1
},
{
"id": "62529e71-35bf-4fde-b8b6-48c4609e8cb7",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"maxTries": 2,
"position": [
-864,
592
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 1.7,
"waitBetweenTries": 2000
},
{
"id": "5f65a597-d676-498f-be26-0c4d06333622",
"name": "Google Gemini Chat Model1",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-960,
896
],
"parameters": {},
"typeVersion": 1
},
{
"id": "1b5f322e-4ca3-45bc-a64e-2e8668031638",
"name": "Telegram Trigger",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-2208,
320
],
"parameters": {},
"notesInFlow": false,
"typeVersion": 1.1
},
{
"id": "1a4b8087-5cdd-42f2-a083-0df311308bc1",
"name": "Telegram2",
"type": "n8n-nodes-base.telegram",
"position": [
-416,
592
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "a546524e-aa31-49a0-bbfe-27407ea7084c",
"name": "From AI1",
"type": "@n8n/n8n-nodes-langchain.agent",
"maxTries": 2,
"position": [
-864,
48
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 1.7,
"waitBetweenTries": 2000
},
{
"id": "75f274b8-075f-4341-baa4-fd6f7555be2b",
"name": "Google Gemini Chat Model3",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-864,
240
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3a0c1ba4-35ad-4ae8-a6bd-063a78bff969",
"name": "Sale Quotation1",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
752,
368
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "08d5d8b1-33f9-4939-817e-4ec2623cc62c",
"name": "Google Gemini Chat Model2",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
272,
256
],
"parameters": {},
"typeVersion": 1
},
{
"id": "0a886b82-f214-4caa-9199-670449e78aff",
"name": "Code1",
"type": "n8n-nodes-base.code",
"position": [
-80,
32
],
"parameters": {},
"typeVersion": 2
},
{
"id": "43e8c8da-f6cd-47f9-8e80-110dbd08e007",
"name": "Quote Creator",
"type": "@n8n/n8n-nodes-langchain.agent",
"maxTries": 2,
"position": [
272,
32
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 1.7,
"waitBetweenTries": 2000
},
{
"id": "7e1e4e4f-f800-475b-bc39-72fecd11bb65",
"name": "Check Feedback",
"type": "@n8n/n8n-nodes-langchain.textClassifier",
"position": [
-528,
48
],
"parameters": {},
"typeVersion": 1
},
{
"id": "cca282cc-a062-4b5a-b59c-ee5fe7ba8633",
"name": "Google Gemini Chat Model5",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-528,
240
],
"parameters": {},
"typeVersion": 1
},
{
"id": "8a86a030-8a46-4350-9a1e-59c5d604afe4",
"name": "Telegram3",
"type": "n8n-nodes-base.telegram",
"position": [
672,
32
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "fd8e3181-ca56-4964-9209-e23e475f4ecb",
"name": "Telegram1",
"type": "n8n-nodes-base.telegram",
"position": [
-128,
240
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "6483db97-8246-493e-8f39-43eda24386bd",
"name": "From AI",
"type": "@n8n/n8n-nodes-langchain.agent",
"maxTries": 2,
"position": [
-1984,
320
],
"parameters": {},
"executeOnce": false,
"notesInFlow": false,
"retryOnFail": true,
"typeVersion": 1.7,
"waitBetweenTries": 3000
},
{
"id": "b62a5a34-027a-4619-aa1a-f4683f43e713",
"name": "Window Buffer Memory1",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-1936,
592
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "3630b8be-99b8-4146-9891-9d11fda1fff8",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2480,
-96
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d911080a-07dc-4b8f-8a73-2f07d4172214",
"name": "Prepare output",
"type": "n8n-nodes-base.code",
"position": [
-1056,
1488
],
"parameters": {},
"typeVersion": 2
},
{
"id": "da8c7ab4-e0cc-47fd-99fd-e7fb7b9d015e",
"name": "Edit Fields1",
"type": "n8n-nodes-base.set",
"position": [
-1280,
1488
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "6825e65c-c8fb-4041-bfc4-9d0c9d5df7a5",
"name": "Product Data",
"type": "n8n-nodes-base.odoo",
"position": [
-1504,
1488
],
"parameters": {},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "3181ed43-344d-463c-b39a-b4abad41d592",
"name": "Switch1",
"type": "n8n-nodes-base.switch",
"position": [
-1744,
1488
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "f66b49e6-f03d-4cee-b2a8-58abdfe53595",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1808,
1344
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a063ab22-9961-493a-804f-1b7e88a8a2ef",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1808,
1792
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "24d11eac-3a2a-4c98-8183-95018b54010a",
"name": "Sale Order1",
"type": "n8n-nodes-base.odoo",
"position": [
-1152,
2352
],
"parameters": {},
"typeVersion": 1
},
{
"id": "530cf8fa-5bf4-4d45-a985-4725292aaeb8",
"name": "Split Out3",
"type": "n8n-nodes-base.splitOut",
"position": [
-640,
2352
],
"parameters": {},
"typeVersion": 1
},
{
"id": "bcf8f2a0-f265-4dd9-9df0-88c760f8dcd3",
"name": "Sale Order Line1",
"type": "n8n-nodes-base.odoo",
"position": [
-160,
2352
],
"parameters": {},
"typeVersion": 1
},
{
"id": "56097df4-1ede-4fb1-8f76-c1f149b6f32b",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-224,
2192
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "14892494-a868-4f03-b2b5-2aaa496bcb8d",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1184,
2192
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b7d68cab-4877-4d9b-84e2-0a20bcc3e0f6",
"name": "Sticky Note8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1520,
1920
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d23bbe28-8278-40c4-8bfe-031d39ef574b",
"name": "Sticky Note9",
"type": "n8n-nodes-base.stickyNote",
"position": [
-400,
1824
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "8947e7a8-d98a-41e0-80e9-856209edfacf",
"name": "Prepare output3",
"type": "n8n-nodes-base.code",
"position": [
736,
2352
],
"parameters": {},
"typeVersion": 2
},
{
"id": "71551f4e-e055-4f59-b6bd-63d9ad749b30",
"name": "Code2",
"type": "n8n-nodes-base.code",
"position": [
-1184,
1984
],
"parameters": {},
"typeVersion": 2
},
{
"id": "cbcbef39-b327-4225-805f-1c1613a693ca",
"name": "Execute Workflow Trigger",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-2480,
1728
],
"parameters": {},
"typeVersion": 1
},
{
"id": "551810c0-d52b-4465-81ab-6db22f1ea519",
"name": "Switch2",
"type": "n8n-nodes-base.switch",
"position": [
-2000,
1728
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "42e5265a-e883-431b-8365-ddfd64af00b4",
"name": "Search Customer",
"type": "n8n-nodes-base.odoo",
"position": [
-1472,
1984
],
"parameters": {},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "63f63039-092d-46ee-ae94-72844cacfa08",
"name": "Create Contact",
"type": "n8n-nodes-base.odoo",
"position": [
-336,
1904
],
"parameters": {},
"typeVersion": 1,
"alwaysOutputData": false
},
{
"id": "f2c3f269-6e4c-48fd-87ec-f85e4db047f7",
"name": "Check Existing Customer",
"type": "n8n-nodes-base.switch",
"position": [
-960,
1984
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "a617a5af-680e-4591-860c-2055215f3125",
"name": "Search Customer1",
"type": "n8n-nodes-base.odoo",
"position": [
-112,
1904
],
"parameters": {},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "e4d90817-e89c-4894-8379-f8e2d18d6eaa",
"name": "Code6",
"type": "n8n-nodes-base.code",
"position": [
128,
2000
],
"parameters": {},
"typeVersion": 2
},
{
"id": "147c7319-4db7-4a7f-abbd-590e848740fb",
"name": "Code7",
"type": "n8n-nodes-base.code",
"position": [
-560,
2000
],
"parameters": {},
"typeVersion": 2
},
{
"id": "8d3bc0c7-0aa7-466e-9bc8-84210a9bf4f2",
"name": "Prepare Item Lines",
"type": "n8n-nodes-base.code",
"position": [
-848,
2352
],
"parameters": {},
"typeVersion": 2
},
{
"id": "bcf94c4f-d698-40e0-9934-511a0ea843a0",
"name": "Get Product Variant",
"type": "n8n-nodes-base.odoo",
"position": [
-384,
2352
],
"parameters": {},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "fe844145-07e8-4797-a60b-061fa50f296a",
"name": "Sticky Note14",
"type": "n8n-nodes-base.stickyNote",
"position": [
-672,
2192
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "0c4644b4-d311-4779-8d5e-fee947759552",
"name": "Get Sales Order Details",
"type": "n8n-nodes-base.odoo",
"position": [
512,
2352
],
"parameters": {},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "5b82c1c0-57d4-4796-a814-108236e8f718",
"name": "Get Sales Order line Id",
"type": "n8n-nodes-base.odoo",
"position": [
288,
2352
],
"parameters": {},
"typeVersion": 1,
"alwaysOutputData": true
},
{
"id": "922b4fd8-86b9-4be6-93fa-16f255caf62f",
"name": "Create Sales Order SubWorkflow",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
528,
304
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "f3632e18-b6b8-48f9-8b48-927849055c2b",
"name": "Edit Fields3",
"type": "n8n-nodes-base.set",
"position": [
-2288,
1728
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "b8b5070a-f69c-404a-982a-50164e106681",
"name": "Get Product Pricing",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
-592,
880
],
"parameters": {},
"typeVersion": 1.2
}
],
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "ec657872-a219-420c-b2f5-82211b41436c",
"connections": {
"Code": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Code1": {
"main": [
[
{
"node": "Quote Creator",
"type": "main",
"index": 0
}
]
]
},
"Code2": {
"main": [
[
{
"node": "Check Existing Customer",
"type": "main",
"index": 0
}
]
]
},
"Code6": {
"main": [
[
{
"node": "Sale Order1",
"type": "main",
"index": 0
}
]
]
},
"Code7": {
"main": [
[
{
"node": "Sale Order1",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "From AI1",
"type": "main",
"index": 0
}
],
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
],
[]
]
},
"From AI": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
},
"Switch1": {
"main": [
[
{
"node": "Product Data",
"type": "main",
"index": 0
}
]
]
},
"Switch2": {
"main": [
[
{
"node": "Switch1",
"type": "main",
"index": 0
}
],
[
{
"node": "Search Customer",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Telegram2",
"type": "main",
"index": 0
}
]
]
},
"From AI1": {
"main": [
[
{
"node": "Check Feedback",
"type": "main",
"index": 0
}
]
]
},
"Split Out3": {
"main": [
[
{
"node": "Get Product Variant",
"type": "main",
"index": 0
}
]
]
},
"Sale Order1": {
"main": [
[
{
"node": "Prepare Item Lines",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields1": {
"main": [
[
{
"node": "Prepare output",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields3": {
"main": [
[
{
"node": "Switch2",
"type": "main",
"index": 0
}
]
]
},
"Product Data": {
"main": [
[
{
"node": "Edit Fields1",
"type": "main",
"index": 0
}
]
]
},
"Quote Creator": {
"main": [
[
{
"node": "Telegram3",
"type": "main",
"index": 0
}
]
]
},
"Check Feedback": {
"main": [
[
{
"node": "Code1",
"type": "main",
"index": 0
}
],
[
{
"node": "Telegram1",
"type": "main",
"index": 0
}
]
]
},
"Create Contact": {
"main": [
[
{
"node": "Search Customer1",
"type": "main",
"index": 0
}
]
]
},
"Sale Quotation1": {
"ai_tool": [
[]
]
},
"Search Customer": {
"main": [
[
{
"node": "Code2",
"type": "main",
"index": 0
}
]
]
},
"Sale Order Line1": {
"main": [
[
{
"node": "Get Sales Order line Id",
"type": "main",
"index": 0
}
]
]
},
"Search Customer1": {
"main": [
[
{
"node": "Code6",
"type": "main",
"index": 0
}
]
]
},
"Telegram Trigger": {
"main": [
[
{
"node": "From AI",
"type": "main",
"index": 0
}
]
]
},
"Prepare Item Lines": {
"main": [
[
{
"node": "Split Out3",
"type": "main",
"index": 0
}
]
]
},
"Get Product Pricing": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Get Product Variant": {
"main": [
[
{
"node": "Sale Order Line1",
"type": "main",
"index": 0
}
]
]
},
"Window Buffer Memory1": {
"ai_memory": [
[
{
"node": "From AI",
"type": "ai_memory",
"index": 0
}
]
]
},
"Check Existing Customer": {
"main": [
[
{
"node": "Create Contact",
"type": "main",
"index": 0
}
],
[
{
"node": "Code7",
"type": "main",
"index": 0
}
]
]
},
"Get Sales Order Details": {
"main": [
[
{
"node": "Prepare output3",
"type": "main",
"index": 0
}
]
]
},
"Get Sales Order line Id": {
"main": [
[
{
"node": "Get Sales Order Details",
"type": "main",
"index": 0
}
]
]
},
"Execute Workflow Trigger": {
"main": [
[
{
"node": "Edit Fields3",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "From AI",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Google Gemini Chat Model1": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Google Gemini Chat Model2": {
"ai_languageModel": [
[
{
"node": "Quote Creator",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Google Gemini Chat Model3": {
"ai_languageModel": [
[
{
"node": "From AI1",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Google Gemini Chat Model5": {
"ai_languageModel": [
[
{
"node": "Check Feedback",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Create Sales Order SubWorkflow": {
"ai_tool": [
[
{
"node": "Quote Creator",
"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
Overview
Source: https://n8n.io/workflows/9148/ — 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 comprehensive n8n workflow demonstrating advanced AI agent orchestration, stateful conversation management, and multi-modal input processing for nutrition tracking applications.
> AI-powered nutrition assistant for Telegram — log meals, set goals, and get personalized daily reports with Google Sheets integration.
Turn your Telegram into a personal Bloomberg terminal. Ask any question about any stock — get institutional-grade analysis back in seconds. TwelveData Pro Analyst is a complete, ready-to-import n8n wo
This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
Multi Agent System Benefits. Uses gmailTool, lmChatOpenAi, agent, googleCalendarTool. Event-driven trigger; 46 nodes.