8
n8n 中文网amn8n.com

新CTO与一对一更新

高级

这是一个Document Extraction, AI RAG领域的自动化工作流,包含 49 个节点。主要使用 If, Set, Slack, GoogleDrive, GoogleSheets 等节点。 将Slack状态更新与Pinecone、Google Sheets和GPT-4o同步

前置要求
  • Slack Bot Token 或 Webhook URL
  • Google Drive API 凭证
  • Google Sheets API 凭证
  • OpenAI API Key
  • Pinecone API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "3ArOXy46ZaOfvhtc",
  "meta": {
    "instanceId": "8443f10082278c46aa5cf3acf8ff0f70061a2c58bce76efac814b16290845177"
  },
  "name": "New_CTO_and_Updating_1v1",
  "tags": [],
  "nodes": [
    {
      "id": "a3b5696e-e1df-4d86-b509-bf3d56b8cd4f",
      "name": "Google Drive 触发器",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -1632,
        512
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "777ee3ce-7944-4bd0-8d57-99b69def76a0",
      "name": "下载文件",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -1408,
        512
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "84e7b928-ecca-4925-a1c7-15dda7043a06",
      "name": "Pinecone 向量存储",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "eaf19a5d-7598-4528-b4cf-1fcd16c7be2d",
      "name": "嵌入 Azure OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi",
      "position": [
        -16,
        224
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "fdb6a789-152f-48fa-8eae-bb5b4f96e5be",
      "name": "默认数据加载器",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        112,
        224
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "b3b4007a-04e3-40e0-876d-867808b32a6e",
      "name": "递归字符文本分割器",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        192,
        432
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "71125a64-497c-4dd1-a254-279c5d6499ed",
      "name": "发送消息1",
      "type": "n8n-nodes-base.slack",
      "position": [
        1680,
        208
      ],
      "webhookId": "5beba43e-5c34-4fa4-8dd2-51cc6c863e1a",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "e10df56c-6f82-4c05-a4e9-135d420ff346",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        720,
        0
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "c60b0b5a-b08a-4ce7-b9b8-299f30a7bbdc",
      "name": "Azure OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        608,
        224
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cd5d3c5e-97c7-42c6-97a0-62941a2acb90",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1024,
        224
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "4ac58b0b-f26b-4261-8121-caf917df334b",
      "name": "Pinecone 向量存储1",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        720,
        224
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "3488bd66-7c1a-4645-a0ae-0125cf2cd1c9",
      "name": "嵌入 Azure OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi",
      "position": [
        752,
        432
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f1a63d86-1155-475c-ad50-dfc0f343a9b7",
      "name": "在表格中追加或更新行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1344,
        208
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "a5124073-7438-4645-89d6-46c0288e9903",
      "name": "Cohere 重新排序器",
      "type": "@n8n/n8n-nodes-langchain.rerankerCohere",
      "position": [
        880,
        432
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cbb51fcc-f18d-46db-91e2-a0eb0ffc45d5",
      "name": "从文件提取",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -1200,
        512
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b3b18942-527d-4eec-8cd6-dc17af7d8bd1",
      "name": "AI Agent4",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -848,
        512
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ddc9814e-fc6f-404e-86f3-c0902c8ce34f",
      "name": "Azure OpenAI聊天模型4",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        -976,
        720
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "451c3971-a7bc-4aac-83bd-f61135de2d0d",
      "name": "Pinecone向量存储6",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        -848,
        736
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "25997347-3368-44fd-86ed-a3d2e547ace2",
      "name": "嵌入 Azure OpenAI6",
      "type": "@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi",
      "position": [
        -832,
        928
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9231bcac-e048-4069-999d-8fe750c81252",
      "name": "重新排序器 Cohere4",
      "type": "@n8n/n8n-nodes-langchain.rerankerCohere",
      "position": [
        -704,
        928
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "18d522a3-b3bf-47d4-9ef4-14e44de3eb2b",
      "name": "结构化输出解析器 3",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -560,
        720
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "1e1dd5b2-7a63-4b36-92c1-395f3982cfa2",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        -352,
        512
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "73e2b87e-0a08-42cf-a988-5e3c8bf24f24",
      "name": "AI Agent5",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        96,
        800
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "76e2e1b6-c50f-45fe-8609-31db4680510f",
      "name": "Azure OpenAI聊天模型5",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        -144,
        1024
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "07060298-a363-4711-b50c-d2e1d9798395",
      "name": "Pinecone向量存储7",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        -16,
        1024
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "5b6df735-aad0-44e6-850e-42a975ec804c",
      "name": "嵌入 Azure OpenAI7",
      "type": "@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi",
      "position": [
        16,
        1232
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "62ea6c15-47b1-4af0-a3ba-9c9db0299afb",
      "name": "在Google Sheets1中获取行",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        288,
        1024
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "6432add3-ea61-412e-9df6-095fbebf6158",
      "name": "Pinecone向量存储8",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        1904,
        800
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "861bb506-52fa-4018-903d-c47b78982ec9",
      "name": "嵌入 Azure OpenAI8",
      "type": "@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi",
      "position": [
        1984,
        1024
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8de6cedf-30cb-4ddf-8fe9-9889d5c0f669",
      "name": "重新排序器 Cohere5",
      "type": "@n8n/n8n-nodes-langchain.rerankerCohere",
      "position": [
        144,
        1232
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "43ff9194-51f5-45e0-aebf-28c183d62683",
      "name": "结构化输出解析器4",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        400,
        1024
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "1f384659-5d70-4281-aeb2-22d016bede61",
      "name": "Pinecone向量存储9",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        720,
        800
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "08aa9b17-bad9-4c4a-81b2-839a67c3e359",
      "name": "嵌入 Azure OpenAI9",
      "type": "@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi",
      "position": [
        752,
        1024
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9d0fd8c0-e736-4e6f-aefc-a99da429dc8a",
      "name": "重新排序器 Cohere6",
      "type": "@n8n/n8n-nodes-langchain.rerankerCohere",
      "position": [
        880,
        1024
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1b45830a-20c9-4b47-81fb-a9a63f67b28a",
      "name": "AI Agent6",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1216,
        800
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "e284424c-a221-4fa1-a2e7-4c614fa8e959",
      "name": "Azure OpenAI聊天模型6",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        1248,
        1216
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e7d1e2a4-cdbe-4474-a1ee-157df733f15d",
      "name": "自动修复输出解析器1",
      "type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
      "position": [
        1312,
        1024
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b66a4092-11c3-434d-95fd-d63fac1520e4",
      "name": "结构化输出解析器 5",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1408,
        1216
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "f2691129-78b8-430a-977c-8a2b7a03031d",
      "name": "获取简报",
      "type": "n8n-nodes-base.set",
      "position": [
        1680,
        800
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "3f84d260-4e35-46a2-8008-43933064eeb2",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1616,
        208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0e841263-bbe8-4512-bce0-4ac1dace417d",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -944,
        208
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "24c1a5bd-cab6-4b5d-a93d-5ec41275bc67",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -112,
        -288
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "38a8d1c1-4801-4a74-aead-5c8246d12864",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        576,
        -288
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e6a879f4-dc1e-4f17-ac4f-0f758d8bda83",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1264,
        -32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "67d28c67-45d0-4093-905d-e7f3fc23e6e4",
      "name": "便签 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1616,
        -32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a1d3829d-28b4-4acd-a892-deecd7493bfd",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        592
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4702ad1e-4ef5-430f-8231-8df824d7084d",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        592
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d51279f0-2ef3-4273-ac71-ad5e772b5394",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        592
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f55edb5e-6568-4e81-bffe-53f60aee4c15",
      "name": "### 替换 Airtable 连接",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1744,
        592
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "be6eb0c8-1d54-43e5-adc8-a425d3fb83f0",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Append or update row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent4": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent5": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent6": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download file": {
      "main": [
        [
          {
            "node": "Extract from File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reranker Cohere": {
      "ai_reranker": [
        [
          {
            "node": "Pinecone Vector Store1",
            "type": "ai_reranker",
            "index": 0
          }
        ]
      ]
    },
    "Reranker Cohere4": {
      "ai_reranker": [
        [
          {
            "node": "Pinecone Vector Store6",
            "type": "ai_reranker",
            "index": 0
          }
        ]
      ]
    },
    "Reranker Cohere5": {
      "ai_reranker": [
        [
          {
            "node": "Pinecone Vector Store7",
            "type": "ai_reranker",
            "index": 0
          }
        ]
      ]
    },
    "Reranker Cohere6": {
      "ai_reranker": [
        [
          {
            "node": "Pinecone Vector Store9",
            "type": "ai_reranker",
            "index": 0
          }
        ]
      ]
    },
    "Extract from File": {
      "main": [
        [
          {
            "node": "AI Agent4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Trigger": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store6": {
      "ai_tool": [
        [
          {
            "node": "AI Agent4",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store7": {
      "ai_tool": [
        [
          {
            "node": "AI Agent5",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store9": {
      "main": [
        [
          {
            "node": "AI Agent6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Azure OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Azure OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Azure OpenAI Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent4",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Azure OpenAI Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent5",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Azure OpenAI Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent6",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Auto-fixing Output Parser1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Azure OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Azure OpenAI6": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store6",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Azure OpenAI7": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store7",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Azure OpenAI8": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store8",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Azure OpenAI9": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store9",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser3": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent4",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser4": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent5",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser5": {
      "ai_outputParser": [
        [
          {
            "node": "Auto-fixing Output Parser1",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Auto-fixing Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent6",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Append or update row in sheet": {
      "main": [
        [
          {
            "node": "Send a message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet in Google Sheets1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent5",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 文档提取, AI RAG 检索增强

需要付费吗?

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

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

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

作者
Rahul Joshi

Rahul Joshi

@rahul08

Rahul Joshi is a seasoned technology leader specializing in the n8n automation tool and AI-driven workflow automation. With deep expertise in building open-source workflow automation and self-hosted automation platforms, he helps organizations eliminate manual processes through intelligent n8n ai agent automation solutions.

外部链接
在 n8n.io 查看

分享此工作流