8
n8n 中文网amn8n.com

通过Telegram创建销售报价单 - 单一JSON文件

高级

这是一个CRM, AI Chatbot领域的自动化工作流,包含 51 个节点。主要使用 Set, Code, Odoo, Switch, SplitOut 等节点。 通过Telegram使用Google Gemini AI在Odoo中实时创建销售报价单

前置要求
  • Telegram Bot Token
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "djMLEjSgXKxWXaG4",
  "meta": {
    "instanceId": "6b3e8c6c30cdfbf06283a3fa57016932c6b4ec959896c5c546ef5865ff697ff1",
    "templateCredsSetupCompleted": true
  },
  "name": "SO Creation , Product Price Via Telegram - Single JSON File",
  "tags": [],
  "nodes": [
    {
      "id": "7d351292-1d78-496e-a9e5-f44320d2c546",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        -1584,
        320
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "afba8b72-de05-45d5-8ef8-751e750639a4",
      "name": "Google Calendar MCP",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1392,
        496
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "92587b04-24e1-4f5f-9e3c-d5428d71eca8",
      "name": "Google Gemini 聊天模型",
      "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聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -960,
        896
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1b5f322e-4ca3-45bc-a64e-2e8668031638",
      "name": "Telegram触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -2208,
        320
      ],
      "webhookId": "bac2f061-47f4-4092-9001-0d1a0dcd64b4",
      "parameters": {},
      "notesInFlow": false,
      "typeVersion": 1.1
    },
    {
      "id": "1a4b8087-5cdd-42f2-a083-0df311308bc1",
      "name": "Telegram2",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -416,
        592
      ],
      "webhookId": "954bfaa8-34dd-49cc-a547-6779024170c6",
      "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 聊天模型",
      "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": "代码1",
      "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 聊天模型",
      "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
      ],
      "webhookId": "d2846dd3-7cdb-481c-a7bd-3912ae26d322",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "fd8e3181-ca56-4964-9209-e23e475f4ecb",
      "name": "Telegram1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -128,
        240
      ],
      "webhookId": "36108f81-5ae1-4071-9a07-9674771fdd7b",
      "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": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2480,
        -96
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "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": "编辑字段1",
      "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": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1808,
        1344
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "a063ab22-9961-493a-804f-1b7e88a8a2ef",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1808,
        1792
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "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": "便签 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        2192
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "14892494-a868-4f03-b2b5-2aaa496bcb8d",
      "name": "便签 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1184,
        2192
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "b7d68cab-4877-4d9b-84e2-0a20bcc3e0f6",
      "name": "## 为什么选择 4o 模型?👆",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1520,
        1920
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "d23bbe28-8278-40c4-8bfe-031d39ef574b",
      "name": "便签 9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        1824
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "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": "执行工作流触发器",
      "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": "创建联系人",
      "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": "便签 14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -672,
        2192
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "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": "编辑字段3",
      "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,
  "pinData": {},
  "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
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 客户关系管理, AI 聊天机器人

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量51
分类2
节点类型14
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者

🚀 AI & Automation Expert | n8n Creator I specialize in building AI-powered automation and workflow solutions using n8n and no-code/low-code tools. With extensive experience in process automation, system integration, and AI-driven workflows, I help businesses streamline operations, enhance productivity, and reduce manual effort. Passionate about scalable automation that drives efficiency and growth.

外部链接
在 n8n.io 查看

分享此工作流