8
n8n 中文网amn8n.com

Slack消息更新到Pinecone

高级

这是一个Internal Wiki, AI RAG领域的自动化工作流,包含 24 个节点。主要使用 Set, Slack, SlackTrigger, Agent, GoogleSheetsTool 等节点。 使用Google Sheets、Pinecone和GPT-4o创建上下文感知的Slack助手

前置要求
  • Slack Bot Token 或 Webhook URL
  • Google Sheets API 凭证
  • OpenAI API Key
  • Pinecone API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "PS6MqPybTzbUpzIK",
  "meta": {
    "instanceId": "8443f10082278c46aa5cf3acf8ff0f70061a2c58bce76efac814b16290845177",
    "templateCredsSetupCompleted": true
  },
  "name": "Slack 消息更新到 Pinecone",
  "tags": [],
  "nodes": [
    {
      "id": "a1c92a1d-e74f-4f48-8285-f858ca61b4c9",
      "name": "Slack触发器",
      "type": "n8n-nodes-base.slackTrigger",
      "position": [
        -304,
        448
      ],
      "webhookId": "419966a1-e8f1-481b-a27f-9389f1204001",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "00ab2770-9c81-49d8-8bee-fcab5066a78f",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        384,
        448
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "b1cac577-56b9-4bfb-be4d-846a0b439b18",
      "name": "Azure OpenAI聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        144,
        672
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1651d6da-06f0-4422-b9fc-45ec3c0de7f3",
      "name": "获取用户个人资料",
      "type": "n8n-nodes-base.slack",
      "position": [
        -80,
        448
      ],
      "webhookId": "02127bdf-1829-49a7-906b-95fbb6f35201",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "08cd364d-006c-410b-a69b-9ff02cc40bbc",
      "name": "Pinecone Vector Store2",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        272,
        672
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "1063099d-0a92-4d1f-b2f5-8eff53581a18",
      "name": "Embeddings Azure OpenAI2",
      "type": "@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi",
      "position": [
        304,
        880
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "37c8a73e-cb36-462b-ab03-d6b90f64dc60",
      "name": "在 Google Sheets 中获取行",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        592,
        672
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "bfc17a2c-1f9c-4119-a521-3c582c51c6da",
      "name": "Pinecone Vector Store3",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        2048,
        448
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "a55f71c9-1e2d-4aad-8b0b-1db68b4e001d",
      "name": "Embeddings Azure OpenAI3",
      "type": "@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi",
      "position": [
        2144,
        672
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1f8020e7-f290-4172-b8b0-b44f9f49778b",
      "name": "Reranker Cohere1",
      "type": "@n8n/n8n-nodes-langchain.rerankerCohere",
      "position": [
        432,
        880
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3ad72eab-4620-40c7-a3cb-e34dac4e34d2",
      "name": "结构化输出解析器1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        720,
        672
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "01b23deb-f228-43ca-8817-0423d35ba5dc",
      "name": "Pinecone Vector Store5",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        928,
        448
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "d3975a99-384f-4b27-9c9d-2c6a3a408858",
      "name": "Embeddings Azure OpenAI5",
      "type": "@n8n/n8n-nodes-langchain.embeddingsAzureOpenAi",
      "position": [
        960,
        672
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a92ceeb5-1635-4f1c-a48f-22ee7456a65b",
      "name": "Reranker Cohere3",
      "type": "@n8n/n8n-nodes-langchain.rerankerCohere",
      "position": [
        1088,
        672
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a22246ca-4203-4bde-8a30-a978bd132825",
      "name": "AI Agent3",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1328,
        448
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "4740068f-b378-45bc-861e-02eda49c58a5",
      "name": "Azure OpenAI聊天模型3",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        1360,
        880
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d7b96829-1adf-44bd-b9ff-432bf2f49d65",
      "name": "自动修复输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
      "position": [
        1424,
        672
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ab60fa7a-f941-43f9-bc7d-a99792401cf2",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1536,
        880
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "c49423df-50e9-40f6-af52-bb46d84ba502",
      "name": "编辑字段1",
      "type": "n8n-nodes-base.set",
      "position": [
        1824,
        448
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "dac8a8bf-f935-459c-9342-8a081b5d5485",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -336,
        48
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "baba3093-11eb-42e3-96ec-b0c328ee90a9",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        368,
        64
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1a004cf6-1e62-47f0-9d10-19f155579d8e",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        64
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1bc5b309-db94-4575-b810-fec2479fb5f9",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        64
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "83749fb2-f6b3-4b96-a6d1-44428d6105f3",
      "name": "便利贴5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1968,
        64
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "604317ed-0e44-492f-9e6f-56d69bdcc79a",
  "connections": {
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent3": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack Trigger": {
      "main": [
        [
          {
            "node": "Get a user's profile",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reranker Cohere1": {
      "ai_reranker": [
        [
          {
            "node": "Pinecone Vector Store2",
            "type": "ai_reranker",
            "index": 0
          }
        ]
      ]
    },
    "Reranker Cohere3": {
      "ai_reranker": [
        [
          {
            "node": "Pinecone Vector Store5",
            "type": "ai_reranker",
            "index": 0
          }
        ]
      ]
    },
    "Get a user's profile": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store2": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store5": {
      "main": [
        [
          {
            "node": "AI Agent3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Azure OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Azure OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent3",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Auto-fixing Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Azure OpenAI2": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store2",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Azure OpenAI3": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store3",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Azure OpenAI5": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store5",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Auto-fixing Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent3",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser2": {
      "ai_outputParser": [
        [
          {
            "node": "Auto-fixing Output Parser",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet in Google Sheets": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 内部知识库, AI RAG 检索增强

需要付费吗?

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

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

适合高级用户,包含 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 查看

分享此工作流