8
n8n 中文网amn8n.com

基于DeepSeek AI、Qdrant向量数据库和Google Drive的自动化书籍摘要

高级

这是一个Other, AI领域的自动化工作流,包含 23 个节点。主要使用 Code, SplitOut, GoogleDrive, HttpRequest, Agent 等节点,结合人工智能技术实现智能自动化。 基于DeepSeek AI、Qdrant向量数据库和Google Drive的自动化书籍摘要

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • Qdrant 服务器连接信息
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "2d54f61dfd963457efb86a8690aae457934e92fb9e4b8b6490ca74fc37094458",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "3f411206-145f-44d0-a76b-99b5dc1f7123",
      "name": "Qdrant 向量存储",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        -80,
        1060
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "be9b15f1-e1c7-4cc7-9a01-a9beb9d7d4b4",
      "name": "递归字符文本分割器",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        -60,
        1720
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d21c69ae-9507-446b-9970-c7a0016d76f7",
      "name": "默认数据加载器1",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        80,
        1560
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0cad85f2-f81c-4fab-8965-f7183ee3044b",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1740,
        1060
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "86d6218e-d08c-4617-877a-6a7502757553",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1820,
        1280
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "fa8e5386-6be9-4ea2-b457-afcc255dba55",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        400,
        1060
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "31a80013-f03b-412b-bf94-fcf9bc3d702c",
      "name": "Google Drive (create)",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2540,
        680
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "ddcf1fca-49bf-4a32-9e0e-44379b881146",
      "name": "删除集合",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueRegularOutput",
      "position": [
        2440,
        1160
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 4.2
    },
    {
      "id": "d894616b-4a49-40ef-9b40-ffe88f4d0217",
      "name": "问答链",
      "type": "@n8n/n8n-nodes-langchain.chainRetrievalQa",
      "position": [
        640,
        1060
      ],
      "parameters": {},
      "typeVersion": 1.5
    },
    {
      "id": "b754b1d2-bb78-477f-9c9d-d68c099c4b92",
      "name": "向量存储检索器",
      "type": "@n8n/n8n-nodes-langchain.retrieverVectorStore",
      "position": [
        740,
        1280
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dccb21d6-1274-480d-8db6-ff4004431ad4",
      "name": "Qdrant 向量存储1",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        740,
        1480
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "77a47942-fb4b-428d-a026-2a148ddfec3b",
      "name": "qdrant_search",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        1800,
        1500
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "e566ea6f-5041-4e19-87db-87649b7068d2",
      "name": "嵌入 Cohere",
      "type": "@n8n/n8n-nodes-langchain.embeddingsCohere",
      "position": [
        -120,
        1340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e3bbef67-77da-4734-ba84-813905b9ea4d",
      "name": "信息提取器",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        1120,
        1060
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "32baf487-c74b-417c-a6c3-dd71bb461ca2",
      "name": "拆分输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1480,
        1060
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d81aff3f-23ce-483f-b902-9de71709b1f6",
      "name": "响应",
      "type": "n8n-nodes-base.code",
      "position": [
        2220,
        1060
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "64c22221-a18d-4442-a62b-3d19ff950e40",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -500,
        1060
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "3029008c-7bdd-4ab7-871a-60e324e9024f",
      "name": "文件已创建",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -720,
        1060
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9bed63eb-3b6c-4506-8570-9ff7afdcd7f8",
      "name": "输入",
      "type": "n8n-nodes-base.code",
      "position": [
        -300,
        1060
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "d346f5df-d0e9-4e80-9eee-50b5b7c89ad9",
      "name": "DeepSeek 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "position": [
        1360,
        1360
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "93ae3fde-f4f5-43df-ae54-5e44272accd1",
      "name": "便签 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "57630a9b-c092-41e5-8200-ee087c27c300",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1580,
        240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7983e95b-30e1-4c45-b913-1fa3e12ca04e",
      "name": "文档",
      "type": "n8n-nodes-base.code",
      "position": [
        2360,
        780
      ],
      "parameters": {},
      "typeVersion": 2
    }
  ],
  "pinData": {},
  "connections": {
    "Doc": {
      "main": [
        [
          {
            "node": "Google Drive (create)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Question and Answer Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "input": {
      "main": [
        [
          {
            "node": "Qdrant Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Response": {
      "main": [
        [
          {
            "node": "Delete Collection",
            "type": "main",
            "index": 0
          },
          {
            "node": "Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "File Created": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "qdrant_search": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Cohere": {
      "ai_embedding": [
        [
          {
            "node": "Qdrant Vector Store",
            "type": "ai_embedding",
            "index": 0
          },
          {
            "node": "Qdrant Vector Store1",
            "type": "ai_embedding",
            "index": 0
          },
          {
            "node": "qdrant_search",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Information Extractor",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Question and Answer Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Qdrant Vector Store": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader1": {
      "ai_document": [
        [
          {
            "node": "Qdrant Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Qdrant Vector Store1": {
      "ai_vectorStore": [
        [
          {
            "node": "Vector Store Retriever",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "Information Extractor": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Vector Store Retriever": {
      "ai_retriever": [
        [
          {
            "node": "Question and Answer Chain",
            "type": "ai_retriever",
            "index": 0
          }
        ]
      ]
    },
    "Question and Answer Chain": {
      "main": [
        [
          {
            "node": "Information Extractor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader1",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 其他, 人工智能

需要付费吗?

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

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

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

作者
Adam Crafts

Adam Crafts

@adamcrafts

As an experienced AI Agent Builder, I specialize in creating intelligent solutions tailored to enhance automation, streamline operations, and drive innovation. 🛠️ My passion lies in transforming ideas into functional AI agents that deliver tangible results.

外部链接
在 n8n.io 查看

分享此工作流