8
n8n 中文网amn8n.com

AIAutomationPro终极RAG聊天机器人v1 n8n市场模板

高级

这是一个Support Chatbot, AI RAG领域的自动化工作流,包含 128 个节点。主要使用 If, Set, Wait, Merge, Filter 等节点。 多语言Telegram RAG聊天机器人,集成监督AI和自动化Google Drive流程

前置要求
  • Supabase URL 和 API Key
  • Telegram Bot Token
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • PostgreSQL 数据库连接信息
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "uXY9yCLJHJsimwZb",
  "meta": {
    "instanceId": "b3df22d2875c82e3ba1883c50049ed9cee0bcabf99d2b486961d2245a09e3964",
    "templateCredsSetupCompleted": true
  },
  "name": "AIAutomationPro 终极 RAG 聊天机器人 v1 n8n 市场模板",
  "tags": [
    {
      "id": "RHp83eTHbIpxlDCF",
      "name": "Template",
      "createdAt": "2025-01-03T16:24:28.562Z",
      "updatedAt": "2025-01-03T16:24:28.562Z"
    },
    {
      "id": "9WaaDMaxf8DAlcAT",
      "name": "Chatbot",
      "createdAt": "2025-04-26T04:33:25.378Z",
      "updatedAt": "2025-04-26T04:33:25.378Z"
    }
  ],
  "nodes": [
    {
      "id": "774541b3-f62e-4821-9064-4c3e5f7199dc",
      "name": "当点击“测试工作流”时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1700,
        -240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f0985efe-d503-40eb-aee4-f3537c5192e3",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        2480,
        -140
      ],
      "webhookId": "53ed9565-f3fd-4cd9-ae13-579587d178b7",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5def5f7b-c99c-46f0-85c7-861720b4b53a",
      "name": "Google Docs - 创建",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1680,
        -40
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "4e70edb4-b60b-4297-b342-69a787479352",
      "name": "保存文本到文档",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1880,
        -40
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "60596cd2-58e3-4068-b9cc-9a83e0b120ae",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -980,
        -320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1f92e990-a4a3-4ee2-876f-f6776758e05a",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        700,
        -80
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "c6feea36-b5c9-464b-a91b-4808ee270b73",
      "name": "内容格式化器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        780,
        -220
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "daab34fc-07cc-46d7-9c59-26a7f3b2c92d",
      "name": "Google Sheets 网站链接",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -860,
        -240
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "04744426-e417-4d33-b867-eaa9f54ad103",
      "name": "循环遍历链接",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -180,
        -240
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "820068da-059f-4f94-a55d-d87dee20e846",
      "name": "如果文档 ID",
      "type": "n8n-nodes-base.if",
      "position": [
        1460,
        -220
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "f1392f76-678e-4dea-a0b0-4079f9ed535e",
      "name": "更新文本到文档",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1880,
        -240
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f2eedf85-2b24-420f-ac51-4e5a4b0b62f2",
      "name": "筛选链接",
      "type": "n8n-nodes-base.filter",
      "position": [
        -640,
        -240
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "a80a29d5-3d21-4af0-bd03-03fc165cdd03",
      "name": "Google Sheets 网站链接 - 更新",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2280,
        -140
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "3f720ec2-1356-4ba7-bf5e-ca511437888c",
      "name": "合并文档输出",
      "type": "n8n-nodes-base.merge",
      "position": [
        2080,
        -140
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "fed5ec6e-391d-49a3-8b86-93a6fabaf466",
      "name": "从文档获取文本",
      "type": "n8n-nodes-base.googleDocs",
      "position": [
        1680,
        -240
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "800bb9ba-8f66-4e86-924b-7f7d3e2095f1",
      "name": "HTTP 请求 - Crawl4AI",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        40,
        -220
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6198f95d-5175-4b75-97a6-0f53c687c15b",
      "name": "编辑字段",
      "type": "n8n-nodes-base.set",
      "position": [
        260,
        -220
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "57bdc818-7f94-4754-b33f-cbe3d49ff330",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1340,
        -320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3cc9d9be-a7df-4695-a5c1-c335370ab896",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        -320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f16bee06-c1c5-47af-85ad-e32925874e91",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        600,
        -320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "326b86b1-d216-4677-88b0-6c31d43ceeaa",
      "name": "编辑字段设置",
      "type": "n8n-nodes-base.set",
      "position": [
        -1320,
        -240
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "bca67ace-da22-48fa-b7d2-ffcd46e3bcb7",
      "name": "便利贴5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1440,
        -320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3b69d33c-e5cc-40e2-95f0-dae5ef9840c8",
      "name": "下载文件",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -360,
        500
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 3
    },
    {
      "id": "72734cff-8286-4fcf-a537-0af759b96bbe",
      "name": "删除旧文档行",
      "type": "n8n-nodes-base.supabase",
      "position": [
        -580,
        500
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "d4fbe2e3-84fb-4c57-a28c-16263d661d10",
      "name": "默认数据加载器",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        440,
        640
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5ed1225e-b390-483a-83c9-c21293a7cbc0",
      "name": "OpenAI 嵌入",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        320,
        640
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "bf254871-4e3b-40b8-8903-4297a908eb0a",
      "name": "字符文本分割器",
      "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
      "position": [
        620,
        760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "374e6d18-21ab-4fb4-94e4-40adb12feee7",
      "name": "Google Drive 文件已创建",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -1700,
        480
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d105b1cd-32a6-4b17-b78b-07a502d68c55",
      "name": "Google Drive 文件已更新",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -1700,
        680
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4c26086d-0a2c-461e-a24d-7ffd1dbc263e",
      "name": "循环遍历文件",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1320,
        480
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "753a6b7d-b3dc-48b4-ac0d-6b2939f8bf28",
      "name": "设置文件数据",
      "type": "n8n-nodes-base.set",
      "position": [
        -1020,
        500
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "599934ea-5c72-474b-b3c0-b71d0e7246a7",
      "name": "等待1",
      "type": "n8n-nodes-base.wait",
      "position": [
        840,
        740
      ],
      "webhookId": "ea2f32d6-edaf-4c30-adad-7f21655cf448",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "e3d30d3c-0da6-4f35-bbac-e9c47831cb80",
      "name": "切换文件类型",
      "type": "n8n-nodes-base.switch",
      "position": [
        -140,
        500
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "c9ef1ba4-ae40-437d-b69a-216000650a91",
      "name": "从文档提取",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        80,
        480
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "7f73ad9a-6aef-4593-be5a-af3289ae4ec2",
      "name": "从 PDF 提取",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        80,
        680
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6bc5b3c6-b25e-44fd-9700-4be7d03d5405",
      "name": "Google Sheets 获取文档",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -800,
        500
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "a796ce4b-18e1-4d78-aa60-eecb1d6718a5",
      "name": "将内容插入 Supabase Vectorstore",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "position": [
        380,
        480
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c9e2fd87-040e-41a0-8f71-426e8709417e",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1460,
        380
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "73d19256-b30c-4831-bc13-7c9dbef5aa36",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1040,
        -80
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "7df5f4e8-ecd0-484f-b1a7-d8751ea01683",
      "name": "Google Sheets 手动文档",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2440,
        1280
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "ddd876dc-b3e2-4a7f-ab0e-759964c531f7",
      "name": "将内容插入 Supabase Vectorstore",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "position": [
        1860,
        1280
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c1522924-236e-48d2-bf21-8167efb64cc9",
      "name": "条件判断",
      "type": "n8n-nodes-base.if",
      "position": [
        -900,
        1320
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "ee28d787-55d6-445e-b317-096b66af1423",
      "name": "将 Word 转换为 Google Docs",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -680,
        1420
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "66116beb-54e8-47d7-aceb-a75555863f7f",
      "name": "Google Drive - 删除文件",
      "type": "n8n-nodes-base.googleDrive",
      "onError": "continueRegularOutput",
      "position": [
        -460,
        1420
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 3,
      "waitBetweenTries": 5000
    },
    {
      "id": "846ade2c-d78e-4ff7-99a2-1ef11d1964f2",
      "name": "设置文件获取数据",
      "type": "n8n-nodes-base.set",
      "position": [
        -1340,
        1300
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "5e541155-ab69-4c94-9887-ffb116378447",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1120,
        1300
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "9c117801-a2fe-4b61-985d-a194226660e9",
      "name": "设置文件获取数据1",
      "type": "n8n-nodes-base.set",
      "position": [
        -240,
        1420
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "42fb5601-4aa9-4b90-904a-ae02b368c81c",
      "name": "聚合",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        2240,
        1280
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "81784a26-bbae-41f1-af7a-5ae4386f2368",
      "name": "下载文件1",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        880,
        1300
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 3
    },
    {
      "id": "b20e8c55-f199-45a6-b276-0c04c7d9d5e9",
      "name": "删除旧文档行",
      "type": "n8n-nodes-base.supabase",
      "position": [
        660,
        1300
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "984f460d-2230-475d-9b57-c059b602fdfe",
      "name": "默认数据加载器",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        1920,
        1440
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3f62bd5b-ae73-4915-b082-530e2bc2731e",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        1800,
        1440
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "93dea7b7-74cb-487e-a1e0-e9d2c0f85fca",
      "name": "字符文本分割器",
      "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
      "position": [
        2100,
        1560
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1edc5d97-f9b3-4542-9c7e-7ffb4521abc6",
      "name": "Google Drive 文件已创建1",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -1680,
        1300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e81eceb0-9381-4efc-968d-698b7f607f97",
      "name": "Google Drive 文件已更新1",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -1680,
        1520
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "90676dde-ef73-4584-9ec5-7d93ec9c924b",
      "name": "循环遍历文件1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        240,
        1280
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "39c2ceb9-d55b-42fe-90c9-597157ab014d",
      "name": "设置文件数据1",
      "type": "n8n-nodes-base.set",
      "position": [
        440,
        1300
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "0c42ffc8-24fd-427d-9d36-6202984b26b2",
      "name": "等待2",
      "type": "n8n-nodes-base.wait",
      "position": [
        2460,
        1540
      ],
      "webhookId": "8ac2de0e-9abe-45e3-8458-f5af441b8e6e",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "62003f3f-1404-4dd8-89b2-b3278b158bed",
      "name": "切换文件类型1",
      "type": "n8n-nodes-base.switch",
      "position": [
        1100,
        1300
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "b1a26801-0962-4f76-a6da-f8672a9c29ee",
      "name": "从文档提取1",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1500,
        1280
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "ef5bd6cd-6106-4b53-afec-c6fe2298b4d0",
      "name": "从 PDF 提取1",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1500,
        1520
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0860b819-fbaa-4b11-a244-f8e925cac4b9",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1460,
        1180
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f5e2fdeb-116b-4c34-9089-6d3b706e4cf1",
      "name": "Google Sheets - 手动文档 - 获取行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1340,
        2300
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "2ce70865-89bd-4b54-b44f-b714c49d504c",
      "name": "Google Sheets 手动文档 - 删除行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        20,
        2340
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "76695b98-8c1a-417c-ae66-df5747c13591",
      "name": "Google Sheets - 网站链接 - 获取行1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1340,
        2560
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "14322f0d-9c38-4ea2-bc1f-f7de3dd85016",
      "name": "Google Sheets 网站链接 - 删除行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        20,
        2600
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "1eb9bf8c-a02e-4e4d-bcb4-154474061589",
      "name": "删除旧文档行3",
      "type": "n8n-nodes-base.supabase",
      "position": [
        -640,
        2320
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "565803ef-bb8b-483c-b6bf-353c1291792a",
      "name": "循环遍历文件3",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1100,
        2300
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "e28a84f3-b6cb-40cd-a237-aa15b9d3ac73",
      "name": "设置文件数据3",
      "type": "n8n-nodes-base.set",
      "position": [
        -860,
        2320
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "44208a68-50cd-403d-947d-839d68ce8c1e",
      "name": "删除旧文档行4",
      "type": "n8n-nodes-base.supabase",
      "position": [
        -640,
        2580
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "1b34667e-b92d-45b4-8873-4b0241da2b7a",
      "name": "循环遍历文件4",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1100,
        2560
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "1813340d-f3db-44d3-a674-13087a76376c",
      "name": "设置文件数据4",
      "type": "n8n-nodes-base.set",
      "position": [
        -860,
        2580
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "ccd8c838-68f9-4f60-8ace-80d512083518",
      "name": "Google Drive - 删除文件1",
      "type": "n8n-nodes-base.googleDrive",
      "onError": "continueRegularOutput",
      "position": [
        -200,
        2200
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 3,
      "waitBetweenTries": 5000
    },
    {
      "id": "00bc1aaa-0394-40d8-81be-94ccea60ed6a",
      "name": "Google Drive - 删除文件",
      "type": "n8n-nodes-base.googleDrive",
      "onError": "continueRegularOutput",
      "position": [
        -200,
        2480
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 3,
      "waitBetweenTries": 5000
    },
    {
      "id": "4bf344a5-b342-4a09-b0be-5d4d18ecb1aa",
      "name": "如果文档 ID1",
      "type": "n8n-nodes-base.if",
      "position": [
        -420,
        2320
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "ede42fdd-14f6-4c9f-b23a-2953c875128b",
      "name": "如果文档 ID",
      "type": "n8n-nodes-base.if",
      "position": [
        -420,
        2580
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "23898515-2668-4648-ad3e-2cbb7b5b9f97",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        240,
        2340
      ],
      "webhookId": "f657df71-f1f2-4608-87e3-c74ffbd3a64a",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "24ce5a54-51c5-486e-98ef-24cebfb13f2a",
      "name": "等待5",
      "type": "n8n-nodes-base.wait",
      "position": [
        240,
        2600
      ],
      "webhookId": "8bcf624f-73b5-40d6-8dc6-10591696326d",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "9e70443b-3dd2-4db0-81ea-0bd4dffa7c88",
      "name": "定时触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1700,
        2300
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "12d3b046-e5c9-4c0b-8773-a6d181fea7b3",
      "name": "便签11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1460,
        2140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "72464d35-7f90-44c0-aea4-e0efa7831af1",
      "name": "OpenAI 嵌入",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        1800,
        3560
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "f1463b2e-610f-4a6e-9d67-16bcae7a11df",
      "name": "Postgres 聊天记忆1",
      "type": "@n8n/n8n-nodes-langchain.memoryPostgresChat",
      "position": [
        960,
        3480
      ],
      "parameters": {},
      "notesInFlow": false,
      "typeVersion": 1
    },
    {
      "id": "7aa73fd9-3ee9-4e32-9bbc-97df07214e22",
      "name": "Supabase 向量存储1",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "position": [
        1700,
        3420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "bc623715-2301-49c8-9fb2-bcd071eb6ed0",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        3140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b206af87-67c2-46d3-958c-a432d032dbbc",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        760,
        3400
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e3c9c949-e582-403e-878e-ca25695ac34a",
      "name": "新闻 AI Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1340,
        3580
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "136f2833-0786-4505-a387-67d83235c182",
      "name": "学院 AI Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1540,
        3560
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "8ebbde32-2ad8-4c3a-a9fe-367f38ca1847",
      "name": "产品 AI Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1140,
        3540
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "a7a85188-ee5b-4f70-93ab-b170742b4987",
      "name": "监督 AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1180,
        3220
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "2106ad83-c3eb-4890-b26a-b6f4fdd2f363",
      "name": "OpenAI 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1140,
        3440
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "343c834c-0e21-4733-a4d4-66465ed70b09",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -320,
        3400
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "6fb56bc4-a7bd-409d-875d-5221a04d3b72",
      "name": "输出第一翻译器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -120,
        3220
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "3a9b2056-2c1a-41a0-b3f5-e228079283b6",
      "name": "Telegram 触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -1680,
        3220
      ],
      "webhookId": "184587b4-c718-4435-a6f6-e2091fb2cccd",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "b0670c7b-b2de-4933-a9f1-a299b307c511",
      "name": "编辑字段 Telegram 消息",
      "type": "n8n-nodes-base.set",
      "position": [
        -1340,
        3220
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "9a336987-deb0-43cd-a44b-78c01680601a",
      "name": "翻译器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1120,
        3220
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "d6c7d427-60ed-4025-8bd2-9ed476faf00c",
      "name": "编辑字段翻译器",
      "type": "n8n-nodes-base.set",
      "position": [
        -680,
        3220
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "64eef908-e5ef-4471-9e7a-570f768ad6c7",
      "name": "Telegram 等待",
      "type": "n8n-nodes-base.telegram",
      "position": [
        380,
        3220
      ],
      "webhookId": "8d8b9cfa-c430-42cc-ba8c-307eba5a9bc9",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "dcfb421a-09c6-4fb2-8661-d6e3293b3485",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -920,
        3460
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "0bc4937b-cffd-4d70-a17d-8c5db65a43c9",
      "name": "便签13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -420,
        3140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6cb29f65-8365-4896-ab22-254d5095a192",
      "name": "便签14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1460,
        3140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9eb50ab0-a2fc-4525-a563-fefaa64c267c",
      "name": "如果是英文",
      "type": "n8n-nodes-base.if",
      "position": [
        2540,
        3220
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "1ad88712-7dc8-4871-b5ff-b40f83cb061d",
      "name": "OpenAI 聊天模型2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2820,
        3560
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "334f3d4c-d0d6-4d32-b271-46b5d6a5e4ee",
      "name": "输出翻译器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2860,
        3380
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "5d6a4fed-f359-472a-96d6-dd7c4bbbd82e",
      "name": "合并输出",
      "type": "n8n-nodes-base.merge",
      "position": [
        3280,
        3220
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "05fb46fa-d4c6-4c1f-8073-0cb8f7e23d74",
      "name": "编辑字段输出",
      "type": "n8n-nodes-base.set",
      "position": [
        2940,
        3200
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "83ac7653-0c54-4620-9b5a-064bc2269000",
      "name": "发送文本消息",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3800,
        3220
      ],
      "webhookId": "7b6d0101-edae-481d-b92e-56c8a7409c80",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "2b6ca66e-b29c-44b4-b961-ff49bc79e735",
      "name": "便签15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2200,
        3140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "15a5fbc4-ddc1-40f3-9fd9-004404011673",
      "name": "如果是问题",
      "type": "n8n-nodes-base.if",
      "position": [
        760,
        3220
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "2cdf6fb3-5e51-459e-a4a2-9d04d19072b3",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        140,
        3420
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "399ff23d-6b06-4283-8c47-02f7668041b5",
      "name": "OpenAI 嵌入",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        -700,
        4380
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "0b7a98aa-d6a1-4711-a6cb-5d09424a593b",
      "name": "Supabase 向量存储",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "position": [
        -800,
        4240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d5e91ca8-7287-4338-9c54-8842e669ea04",
      "name": "当执行监督时",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -1900,
        4080
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "d37f6411-07c3-4da7-a951-8de75b1d018c",
      "name": "RAG AI Agent - 产品",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1120,
        4080
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "e3a195c2-3826-44fe-9d38-b71f66b9a65f",
      "name": "查询产品",
      "type": "n8n-nodes-base.postgresTool",
      "position": [
        -960,
        4360
      ],
      "parameters": {},
      "typeVersion": 2.6
    },
    {
      "id": "0ddd4981-fe06-4d35-b3b3-85205204538b",
      "name": "便签 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1480,
        4000
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9ce11143-5503-4f85-ba49-3c90b65232ea",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1200,
        4260
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d3f15aed-303e-4ed2-bf26-8b599b4a4b16",
      "name": "RAG AI Agent - 学院",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1260,
        4920
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "cd12a49e-4134-4c74-aa10-5821ec825656",
      "name": "查找课程",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        -1160,
        5200
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "c33d8b82-f8bb-44c2-bf64-925e37d657c1",
      "name": "嵌入 OpenAI4",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        -920,
        5220
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "8c59e997-270c-4ae6-80b5-c6ac41ed7dcb",
      "name": "便签 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1480,
        4780
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2f00277a-5415-49dc-ae65-15c40ab3092c",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1360,
        5080
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6cd3e612-0e17-4188-bf06-55fa3a0c6b97",
      "name": "Supabase Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "position": [
        -1020,
        5080
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "42b64a6c-43d4-468e-9f8a-67f589e83a1a",
      "name": "RAG AI Agent - 新闻",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1300,
        5580
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "d47e8ba2-78c3-4251-85b2-ece12e93dbc6",
      "name": "OpenAI 嵌入",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        -1100,
        5900
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "cb5f414d-beae-4b4a-a427-2361f3e121ed",
      "name": "便签 9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1480,
        5500
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8013da02-ebb2-4777-958d-105973115f98",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1380,
        5760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "72fffc29-4b47-4130-8900-8c65047c51a6",
      "name": "Supabase Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "position": [
        -1180,
        5760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "017cd85c-ba17-4fd7-a5b0-621df2f61141",
      "name": "便签12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3700,
        -240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "errorWorkflow": "KhpM42Ckgy6qgzCz",
    "executionOrder": "v1"
  },
  "versionId": "adc99afb-4eba-4b3a-9c71-c1d9096cdf86",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Convert Word to Google Docs",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Loop Over Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait2": {
      "main": [
        [
          {
            "node": "Loop Over Files1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait4": {
      "main": [
        [
          {
            "node": "Loop Over Files3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait5": {
      "main": [
        [
          {
            "node": "Loop Over Files4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Google Sheets Manual Documents",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If English": {
      "main": [
        [
          {
            "node": "Edit Fields Output",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Output Translator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Content Formatter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find course": {
      "ai_tool": [
        [
          {
            "node": "RAG AI Agent - Academy",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "If Question": {
      "main": [
        [
          {
            "node": "Supervisor AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Translator1": {
      "main": [
        [
          {
            "node": "Edit Fields Translator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Links": {
      "main": [
        [
          {
            "node": "Loop Over Links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Output": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download File": {
      "main": [
        [
          {
            "node": "Switch File Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "News AI Agent": {
      "ai_tool": [
        [
          {
            "node": "Supervisor AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Set File Data": {
      "main": [
        [
          {
            "node": "Google Sheets Get Document",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download File1": {
      "main": [
        [
          {
            "node": "Switch File Type1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Document ID": {
      "main": [
        [
          {
            "node": "Get Text From Doc",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Google Docs - Create",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Query Products": {
      "ai_tool": [
        [
          {
            "node": "RAG AI Agent - Product",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Set File Data1": {
      "main": [
        [
          {
            "node": "Delete Old Doc Rows1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set File Data3": {
      "main": [
        [
          {
            "node": "Delete Old Doc Rows3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set File Data4": {
      "main": [
        [
          {
            "node": "Delete Old Doc Rows4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Document ID ": {
      "main": [
        [
          {
            "node": "Google Drive - Delete File ",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Google Sheets Website Links - Delete Rows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Document ID1": {
      "main": [
        [
          {
            "node": "Google Drive - Delete File1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Google Sheets Manual Documents - Delete Rows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Files": {
      "main": [
        [],
        [
          {
            "node": "Set File Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Loop Over Files1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Links": {
      "main": [
        [],
        [
          {
            "node": "HTTP Request - Crawl4AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Academy AI Agent": {
      "ai_tool": [
        [
          {
            "node": "Supervisor AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Extract From PDF": {
      "main": [
        [
          {
            "node": "Insert Content into Supabase Vectorstore",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Files1": {
      "main": [
        [],
        [
          {
            "node": "Set File Data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Files3": {
      "main": [
        [],
        [
          {
            "node": "Set File Data3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Files4": {
      "main": [
        [],
        [
          {
            "node": "Set File Data4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Product AI Agent": {
      "ai_tool": [
        [
          {
            "node": "Supervisor AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Save Text To Doc": {
      "main": [
        [
          {
            "node": "Merge Document Output",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Switch File Type": {
      "main": [
        [
          {
            "node": "Extract From Document",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Extract From PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Edit Fields Telegram Message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Waiting": {
      "main": [
        [
          {
            "node": "If Question",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Content Formatter": {
      "main": [
        [
          {
            "node": "If Document ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Insert Content into Supabase Vectorstore",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Extract From PDF1": {
      "main": [
        [
          {
            "node": "Insert Content Into Supabase Vectorstore",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Text From Doc": {
      "main": [
        [
          {
            "node": "Update Text To Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Content Formatter",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Output Translator": {
      "main": [
        [
          {
            "node": "Merge Output",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Schedule Trigger1": {
      "main": [
        [
          {
            "node": "Google Sheets - Manual Documents - Get Rows",
            "type": "main",
            "index": 0
          },
          {
            "node": "Google Sheets - Website Links - Get Rows1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set File Get Data": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch File Type1": {
      "main": [
        [
          {
            "node": "Extract From Document1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Extract From PDF1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields Output": {
      "main": [
        [
          {
            "node": "Merge Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Insert Content Into Supabase Vectorstore",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI2": {
      "ai_embedding": [
        [
          {
            "node": "Supabase Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI3": {
      "ai_embedding": [
        [
          {
            "node": "Supabase Vector Store1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI4": {
      "ai_embedding": [
        [
          {
            "node": "Supabase Vector Store2",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI5": {
      "ai_embedding": [
        [
          {
            "node": "Supabase Vector Store3",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Translator1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Output Translator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Output First Translator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "RAG AI Agent - Product",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "Supervisor AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "RAG AI Agent - Academy",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model7": {
      "ai_languageModel": [
        [
          {
            "node": "RAG AI Agent - News",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set File Get Data1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Text To Doc": {
      "main": [
        [
          {
            "node": "Merge Document Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Insert Content Into Supabase Vectorstore",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Delete Old Doc Rows": {
      "main": [
        [
          {
            "node": "Download File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader2": {
      "ai_document": [
        [
          {
            "node": "Insert Content into Supabase Vectorstore",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Delete Old Doc Rows1": {
      "main": [
        [
          {
            "node": "Download File1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delete Old Doc Rows3": {
      "main": [
        [
          {
            "node": "If Document ID1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delete Old Doc Rows4": {
      "main": [
        [
          {
            "node": "If Document ID ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields Settings": {
      "main": [
        [
          {
            "node": "Google Sheets Website Links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Docs - Create": {
      "main": [
        [
          {
            "node": "Save Text To Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Supervisor AI Agent1": {
      "main": [
        [
          {
            "node": "If English",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract From Document": {
      "main": [
        [
          {
            "node": "Insert Content into Supabase Vectorstore",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Document Output": {
      "main": [
        [
          {
            "node": "Google Sheets Website Links - Update",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Postgres Chat Memory1": {
      "ai_memory": [
        [
          {
            "node": "Supervisor AI Agent1",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Supabase Vector Store": {
      "ai_tool": [
        [
          {
            "node": "RAG AI Agent - Product",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields Translator": {
      "main": [
        [
          {
            "node": "Output First Translator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract From Document1": {
      "main": [
        [
          {
            "node": "Insert Content Into Supabase Vectorstore",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Supabase Vector Store1": {
      "ai_tool": [
        [
          {
            "node": "Supervisor AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Supabase Vector Store2": {
      "ai_tool": [
        [
          {
            "node": "RAG AI Agent - Academy",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Supabase Vector Store3": {
      "ai_tool": [
        [
          {
            "node": "RAG AI Agent - News",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request - Crawl4AI": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Output First Translator": {
      "main": [
        [
          {
            "node": "Telegram Waiting",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Character Text Splitter1": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader2",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Content Formatter",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When Executed Supervisor": {
      "main": [
        [
          {
            "node": "RAG AI Agent - Product",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive File Created": {
      "main": [
        [
          {
            "node": "Loop Over Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive File Updated": {
      "main": [
        [
          {
            "node": "Loop Over Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Translator1",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser2": {
      "ai_outputParser": [
        [
          {
            "node": "Output First Translator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive - Delete File": {
      "main": [
        [
          {
            "node": "Set File Get Data1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive File Created1": {
      "main": [
        [
          {
            "node": "Set File Get Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive File Updated1": {
      "main": [
        [
          {
            "node": "Set File Get Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Get Document": {
      "main": [
        [
          {
            "node": "Delete Old Doc Rows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Word to Google Docs": {
      "main": [
        [
          {
            "node": "Google Drive - Delete File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive - Delete File ": {
      "main": [
        [
          {
            "node": "Google Sheets Website Links - Delete Rows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive - Delete File1": {
      "main": [
        [
          {
            "node": "Google Sheets Manual Documents - Delete Rows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Website Links": {
      "main": [
        [
          {
            "node": "Filter Links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields Telegram Message1": {
      "main": [
        [
          {
            "node": "Translator1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Manual Documents": {
      "main": [
        [
          {
            "node": "Wait2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Edit Fields Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Website Links - Update": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert Content Into Supabase Vectorstore": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert Content into Supabase Vectorstore": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets - Website Links - Get Rows1": {
      "main": [
        [
          {
            "node": "Loop Over Files4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Website Links - Delete Rows": {
      "main": [
        [
          {
            "node": "Wait5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets - Manual Documents - Get Rows": {
      "main": [
        [
          {
            "node": "Loop Over Files3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Manual Documents - Delete Rows": {
      "main": [
        [
          {
            "node": "Wait4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 客服机器人, AI RAG 检索增强

需要付费吗?

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

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

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

作者
Daniel Ng

Daniel Ng

@danielng

A Growth Hacker, Digital Marketer & AI Automation Builder with 10+ years of experience in Digital Marketing & Workflow Automation. Based in Helsinki, Finland. For questions about my templates and customization, contact me at: daniel@aiautomationpro.org

外部链接
在 n8n.io 查看

分享此工作流