8
n8n 中文网amn8n.com

我的工作流

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 73 个节点。主要使用 If, Set, Code, Merge, Switch 等节点。 卡路里追踪与饮食记录(Telegram、Gemini AI和数据表)

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • Telegram Bot Token
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "7a73e968af152b9877d4c64b00e93bdf2a57741f130f9226cd4d7217ba6e5e6c"
  },
  "name": "我的工作流",
  "tags": [],
  "nodes": [
    {
      "id": "c4a14c16-615e-4984-abca-8950f51fc0d5",
      "name": "正在输入…",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -2592,
        1344
      ],
      "webhookId": "1187d2ca-aeb3-4d67-a3eb-d1caa9b4aa6a",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "b6fbed49-0eca-43e4-84eb-98b5b5ab2566",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1104,
        992
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "8d6fa59e-bfd9-416d-93d6-61b5311fb4bc",
      "name": "条件判断",
      "type": "n8n-nodes-base.if",
      "position": [
        -2128,
        1104
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "7793f573-3215-4865-a5f2-ddff2ed1845a",
      "name": "发送文本消息1",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -1040,
        1632
      ],
      "webhookId": "b5fb6d30-d912-4eae-92dc-0a451a75d1df",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "2502b3b3-7de8-4460-a032-62f0095d1348",
      "name": "Google Gemini 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -1632,
        1824
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d9eba406-22d5-46d9-9028-66d961569f06",
      "name": "简单记忆1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -1440,
        1824
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "47fd6871-9bc5-4e1d-8df1-80faadfffc7d",
      "name": "MarkdownV",
      "type": "n8n-nodes-base.code",
      "position": [
        -1216,
        1632
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "3e80ff26-fa16-48d3-b472-1ffa98a74204",
      "name": "获取消息(注册)",
      "type": "n8n-nodes-base.set",
      "position": [
        -1712,
        1632
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "4eac791a-5c02-475e-bee5-9a9e9cdc71ef",
      "name": "注册代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1520,
        1632
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "5d6d74d5-3a17-43e7-a6e6-cfb35f885849",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1792,
        1520
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ab9d84ea-ff56-47c0-8291-2b0db03bd1f9",
      "name": "Telegram 触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -2816,
        1296
      ],
      "webhookId": "9f6605a3-c97d-43e5-be53-ee5675a03a1c",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "28e78669-1537-4eb8-8998-bb95260e5e40",
      "name": "Cal AI 路由代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1408,
        1264
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "0a357c18-1e14-4bd8-9877-1c31437eb066",
      "name": "Google Gemini 聊天模型2",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -1664,
        1328
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c3a64847-e428-48b2-8435-9d099e998529",
      "name": "记录餐食代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1024,
        832
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "53b2782e-6935-4d6f-9692-2aad57319852",
      "name": "报告代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1056,
        1264
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "25a26fdc-f3c1-4bcb-ad9c-a2aa3050c8fe",
      "name": "个人资料代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1072,
        1776
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "1b82e00a-5dbe-4e42-9264-ada9a02c7827",
      "name": "MarkdownV2",
      "type": "n8n-nodes-base.code",
      "position": [
        2288,
        1312
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "2c134d28-47ab-4966-a20a-1f1557b318ac",
      "name": "发送文本消息",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2560,
        1312
      ],
      "webhookId": "2bd7e815-17cd-4b7a-a496-dc9fa6ce7881",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "9b688054-66de-49f4-ae44-864d0223acef",
      "name": "Google Gemini 聊天模型3",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        992,
        1024
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "eae8dee6-4049-4b71-b255-92ceef715157",
      "name": "Google Gemini 聊天模型4",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1024,
        1504
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "eb931e12-64e8-4d53-8b32-4a1adee2728a",
      "name": "简单记忆2",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -592,
        1936
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "716c662b-1478-46ea-a134-b5309d5770ad",
      "name": "简单记忆3",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1184,
        1504
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "57601b08-4bda-48a2-b1a0-3e33c2527a07",
      "name": "简单记忆4",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1072,
        1968
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "6cc2d486-c3f9-4c9c-9c09-bf28414aeb09",
      "name": "顺序路由",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1008,
        1200
      ],
      "parameters": {},
      "typeVersion": 3.2,
      "alwaysOutputData": false
    },
    {
      "id": "ab4de25c-d61e-4c6a-8f2a-09afbcfb4d39",
      "name": "餐食分析(工具)",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "disabled": true,
      "position": [
        1360,
        1072
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "46690d43-2e23-4d90-a70b-d7e222927df7",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -304,
        -160
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f7034ed0-c898-407c-a1f7-8b015aac5d83",
      "name": "用户是否已注册?",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -2368,
        1104
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "b268f3db-7027-4b04-ba1c-8e08b3a81711",
      "name": "注册用户",
      "type": "n8n-nodes-base.dataTableTool",
      "position": [
        -1280,
        1824
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9e907188-7e3f-4fd3-abce-aa9b724baed9",
      "name": "获取对话状态",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        -1936,
        1088
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "d9c40f33-d2e1-407e-abed-696364c7e2d7",
      "name": "追加餐食数据",
      "type": "n8n-nodes-base.dataTableTool",
      "position": [
        1232,
        1024
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "fb2b64b7-d072-42cc-8660-d8196615433c",
      "name": "获取餐食详情",
      "type": "n8n-nodes-base.dataTableTool",
      "position": [
        -432,
        1936
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ad9b0430-36af-459a-9af8-a134c571dfaf",
      "name": "更新餐食",
      "type": "n8n-nodes-base.dataTableTool",
      "position": [
        -320,
        1968
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0853bd61-8d75-4e15-b238-f3be7bc793bc",
      "name": "获取用户数据",
      "type": "n8n-nodes-base.dataTableTool",
      "position": [
        1296,
        1520
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "483105d7-1e36-45b4-94fa-4a5b1804e2c2",
      "name": "获取每日餐食报告",
      "type": "n8n-nodes-base.dataTableTool",
      "position": [
        1408,
        1552
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "fcbf38c8-a218-4b20-be28-96728ebbf3fc",
      "name": "更新个人资料数据",
      "type": "n8n-nodes-base.dataTableTool",
      "position": [
        1264,
        1968
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dba52128-57cd-48c8-8804-882d8060f45e",
      "name": "标准化输入",
      "type": "n8n-nodes-base.set",
      "position": [
        -2592,
        1104
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "02871c77-5f01-4a8c-ba4b-ac09f8f37a17",
      "name": "对话状态路由器",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1728,
        1056
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "5962d05a-9ef7-4798-bc26-42becdd90dc9",
      "name": "下载语音消息",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -240,
        816
      ],
      "webhookId": "64d56d2c-7881-4ef5-bacc-562e4874ddeb",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "389797f4-3b57-43e6-8868-56f15cdc56d5",
      "name": "下载图片",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -240,
        992
      ],
      "webhookId": "ee821c43-9030-4398-b281-0bb56c07c91f",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "4eb2fdc8-9ee7-426e-aadd-05a4395670df",
      "name": "分析图片",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        176,
        992
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "47cff34d-b07d-4cb3-82d4-e0058109a2e4",
      "name": "分析语音消息",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        160,
        816
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0e2a68a2-5cbc-431b-8691-8e49df3adee6",
      "name": "获取消息(音频/视频消息)",
      "type": "n8n-nodes-base.set",
      "position": [
        352,
        816
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "b6fd18a8-79e8-446c-ae97-69bbeae90885",
      "name": "获取消息(媒体消息)",
      "type": "n8n-nodes-base.set",
      "position": [
        352,
        992
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "e77d3bfc-01ca-45f9-a791-0269126348b5",
      "name": "修复 MIME 类型",
      "type": "n8n-nodes-base.code",
      "position": [
        -16,
        816
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "89d77d38-e905-4c03-a486-382689cdcd85",
      "name": "修复 MIME 类型5",
      "type": "n8n-nodes-base.code",
      "position": [
        0,
        992
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "880ab6f1-0483-40cb-beff-11efcfb47f5a",
      "name": "分析文本消息",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        -112,
        608
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1,
      "waitBetweenTries": 5000
    },
    {
      "id": "7b4b6848-2fa3-434d-ad2c-abf552979280",
      "name": "输入消息路由器",
      "type": "n8n-nodes-base.switch",
      "position": [
        -624,
        816
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "ab8f72bd-904e-41c3-b1ca-e96c95fa2850",
      "name": "获取错误消息",
      "type": "n8n-nodes-base.set",
      "position": [
        -224,
        1200
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "8481bf5c-83c4-471a-b19e-c7579bc74fd3",
      "name": "合并2",
      "type": "n8n-nodes-base.merge",
      "position": [
        640,
        800
      ],
      "parameters": {},
      "typeVersion": 3.2,
      "alwaysOutputData": true
    },
    {
      "id": "13426161-5cb6-4e01-859f-4ffc257c3244",
      "name": "重新分析餐食",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        -224,
        1744
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1,
      "waitBetweenTries": 5000
    },
    {
      "id": "da46e92a-0eb0-47b2-80ad-a3380f29928c",
      "name": "解析 AI 输出",
      "type": "n8n-nodes-base.code",
      "position": [
        128,
        1744
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f1934137-6106-4bd6-87c7-d483ccac5d28",
      "name": "保存更新的餐食",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        320,
        1744
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9ac4fd7e-6616-409c-92a6-6e362cf13e2d",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2880,
        960
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b24fa5c1-d2a6-46a0-9f80-7d25e7e3ddb2",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1776,
        928
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d51f50a5-5c61-4b6e-8bd6-f9ab67c30a0d",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        560
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "78c35204-06b2-4e63-9ce0-054fc6833443",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -816,
        1488
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "13f0ea32-be43-4d47-8454-396c416bc69e",
      "name": "Google Gemini 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -752,
        1856
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "99981767-186d-4610-ab06-68356553100e",
      "name": "格式化文本分析",
      "type": "n8n-nodes-base.set",
      "position": [
        336,
        608
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "fc3abee7-cc95-42d3-a8c9-dec0294d11e2",
      "name": "状态设置节点 #1",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        320,
        1568
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ec41c0ac-888d-4386-9033-b28f4cffd3f6",
      "name": "清除状态",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        496,
        1744
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "73a28a1d-a1e1-4899-be64-bd864bcf110b",
      "name": "更新餐食代理(步骤 1 - 询问 ID)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -592,
        1568
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "06a50082-f130-4994-9776-b5bf57375ccf",
      "name": "更新餐食代理(步骤 2 - 询问描述)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -592,
        2096
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "aacc589f-74a9-4ee3-b01f-71ca9128a9f1",
      "name": "更新餐食代理(步骤 3 - 最终输出)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -592,
        1744
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "2b8862b3-19b0-4793-b7ab-c36d5a5b6840",
      "name": "发送文本消息2",
      "type": "n8n-nodes-base.telegram",
      "position": [
        560,
        1568
      ],
      "webhookId": "b5fb6d30-d912-4eae-92dc-0a451a75d1df",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "019998c1-0187-40f4-9c7e-ead0bf37cea2",
      "name": "发送文本消息3",
      "type": "n8n-nodes-base.telegram",
      "position": [
        544,
        1952
      ],
      "webhookId": "b5fb6d30-d912-4eae-92dc-0a451a75d1df",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "2ba18310-e47a-4078-bb2b-d3e715bfc59e",
      "name": "MarkdownV3",
      "type": "n8n-nodes-base.code",
      "position": [
        128,
        1568
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "7bc2ed76-597e-40bc-a78e-652b978e2df1",
      "name": "MarkdownV4",
      "type": "n8n-nodes-base.code",
      "position": [
        128,
        1952
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "48ae86e3-527d-4504-843e-d31cc7b225e6",
      "name": "新描述状态设置节点 #2",
      "type": "n8n-nodes-base.dataTable",
      "position": [
        320,
        1952
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7a5573e0-88a6-4954-abf3-a14a967ba217",
      "name": "创建成功消息",
      "type": "n8n-nodes-base.set",
      "position": [
        704,
        1744
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "8ef9fc14-da8f-4baa-8848-4ffdf019110a",
      "name": "设置更新个人资料状态",
      "type": "n8n-nodes-base.dataTableTool",
      "position": [
        1456,
        1984
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "58120cf4-216f-4911-8122-1918f7cec6ce",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -2816,
        1056
      ],
      "webhookId": "03604481-49a1-4fc4-b675-35ac094dd1f5",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "5e5cdbef-d9fb-47ca-a235-c17ebeb80ebb",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2176,
        1104
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6653d3fe-9073-4c14-bc94-e79708687f7a",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        976,
        560
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Get Conversation State",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "get_message (register)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge2": {
      "main": [
        [
          {
            "node": "The Log Meal Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Standardize Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fix mime": {
      "main": [
        [
          {
            "node": "Analyze voice message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fix mime5": {
      "main": [
        [
          {
            "node": "Analyze image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MarkdownV": {
      "main": [
        [
          {
            "node": "Send a text message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MarkdownV2": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MarkdownV3": {
      "main": [
        [
          {
            "node": "State-Setting Node #1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "MarkdownV4": {
      "main": [
        [
          {
            "node": "New Description State-Setting Node #2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "updateMeal": {
      "ai_tool": [
        [
          {
            "node": "Update Meal Agent (Step 3 - Final Output)",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "getUserData": {
      "ai_tool": [
        [
          {
            "node": "Report Agent",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "Profile Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Report Agent": {
      "main": [
        [
          {
            "node": "MarkdownV2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze image": {
      "main": [
        [
          {
            "node": "get_message (Media  message)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Profile Agent": {
      "main": [
        [
          {
            "node": "MarkdownV2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Register User": {
      "ai_tool": [
        [
          {
            "node": "Register Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "The Log Meal Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Download IMAGE": {
      "main": [
        [
          {
            "node": "Fix mime5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Register Agent": {
      "main": [
        [
          {
            "node": "MarkdownV",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory1": {
      "ai_memory": [
        [
          {
            "node": "Register Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory2": {
      "ai_memory": [
        [
          {
            "node": "Update Meal Agent (Step 3 - Final Output)",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory3": {
      "ai_memory": [
        [
          {
            "node": "Report Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory4": {
      "ai_memory": [
        [
          {
            "node": "Profile Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Clear the State": {
      "main": [
        [
          {
            "node": "Create Success Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Output": {
      "main": [
        [
          {
            "node": "Save Updated Meal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Re-Analyze Meal": {
      "main": [
        [
          {
            "node": "Parse AI Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Meal Data": {
      "ai_tool": [
        [
          {
            "node": "The Log Meal Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Typing…",
            "type": "main",
            "index": 0
          },
          {
            "node": "Standardize Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fetchmealdetails": {
      "ai_tool": [
        [
          {
            "node": "Update Meal Agent (Step 3 - Final Output)",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Save Updated Meal": {
      "main": [
        [
          {
            "node": "Clear the State",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Standardize Input": {
      "main": [
        [
          {
            "node": "Is User Registered?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sequential Routing": {
      "main": [
        [
          {
            "node": "Input Message Router",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update Meal Agent (Step 1 - Ask for ID)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Report Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Profile Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "The Log Meal Agent": {
      "main": [
        [
          {
            "node": "MarkdownV2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "getDailyMealReport": {
      "ai_tool": [
        [
          {
            "node": "Report Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Cal AI Router Agent": {
      "main": [
        [
          {
            "node": "Sequential Routing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is User Registered?": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Profile Data": {
      "ai_tool": [
        [
          {
            "node": "Profile Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Text Message": {
      "main": [
        [
          {
            "node": "Format Text Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Text Analysis": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Input Message Router": {
      "main": [
        [
          {
            "node": "Analyze Text Message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Download Voice Message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Download IMAGE",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "get_error_message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze voice message": {
      "main": [
        [
          {
            "node": "get_message (Audio/Video message)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "State-Setting Node #1": {
      "main": [
        [
          {
            "node": "Send a text message2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "logMealAnalysis(tool)": {
      "ai_tool": [
        [
          {
            "node": "The Log Meal Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Create Success Message": {
      "main": [
        [
          {
            "node": "MarkdownV2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Voice Message": {
      "main": [
        [
          {
            "node": "Fix mime",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Conversation State": {
      "main": [
        [
          {
            "node": "Conversation State Router",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get_message (register)": {
      "main": [
        [
          {
            "node": "Register Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Update Meal Agent (Step 3 - Final Output)",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Update Meal Agent (Step 1 - Ask for ID)",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Update Meal Agent (Step 2 - Ask for Desc)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set Update Profile State": {
      "ai_tool": [
        [
          {
            "node": "Profile Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Conversation State Router": {
      "main": [
        [
          {
            "node": "Update Meal Agent (Step 2 - Ask for Desc)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update Meal Agent (Step 3 - Final Output)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Profile Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Cal AI Router Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Register Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Cal AI Router Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "The Log Meal Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "Report Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Profile Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "get_message (Media  message)": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "get_message (Audio/Video message)": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "New Description State-Setting Node #2": {
      "main": [
        [
          {
            "node": "Send a text message3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Meal Agent (Step 1 - Ask for ID)": {
      "main": [
        [
          {
            "node": "MarkdownV3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Meal Agent (Step 2 - Ask for Desc)": {
      "main": [
        [
          {
            "node": "MarkdownV4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Meal Agent (Step 3 - Final Output)": {
      "main": [
        [
          {
            "node": "Re-Analyze Meal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 内容创作, 多模态 AI

需要付费吗?

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

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

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

作者
Gerald Denor

Gerald Denor

@dominixai

Gerald Akhidenor is an AI Automation Lead Creative with 5 years of experience in AI automation consultancy. He specializes in n8n and API integrations, driving innovative automation solutions. As founder of DominixAI, Gerald combines creative vision and technical expertise to streamline processes and boost efficiency through cutting-edge AI technologies. Website: https://dominixai.com JobMonkey: https://trafficabc.com/jobmonkey-application-generator/

外部链接
在 n8n.io 查看

分享此工作流