使用Gemini AI管理Notion文档:通过聊天获取、总结和更新

中级

这是一个AI Chatbot、Multimodal AI领域的自动化工作流,包含 15 个节点。主要使用 NotionTool、Agent、ChatTrigger、ToolWorkflow、ExecuteWorkflowTrigger 等节点。 使用Gemini AI管理Notion文档:通过聊天获取、总结和更新

前置要求
  • Notion API Key
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "8715b1a1f0244857f9c87b26f030388c15471bf1ed1b62cf4e01a1aa09aa405f"
  },
  "nodes": [
    {
      "id": "e3b58169-cb74-493b-ae2e-6f54a0115453",
      "name": "当被另一个工作流执行时",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        400,
        656
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "de38bfbc-d910-46c7-856d-9f05dca25b6e",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        816,
        800
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 1.9
    },
    {
      "id": "6f68256e-5e7f-4058-89fa-807e6227ea2b",
      "name": "当收到聊天消息时",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        416,
        848
      ],
      "webhookId": "[REDACTED_WEBHOOK_ID]",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "f54e9007-64a7-40f5-9168-53e3139433c9",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1056,
        1056
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "2473c42c-f9d8-441a-80a9-1109f1e0b316",
      "name": "获取资源",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        1360,
        1056
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "3e99ec4e-0e54-46d4-b691-a1682f0ca973",
      "name": "更新资源文档",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        1536,
        1056
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e61e0f87-e575-4b06-84e4-67e5f9808287",
      "name": "Google Gemini 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        784,
        960
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d0a9ee25-6a04-462a-a807-8d11b8b2d225",
      "name": "在 Notion 中获取多个子块",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        1200,
        1056
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e599dfad-87d3-4f3d-93af-503ecd743153",
      "name": "更新 Notion 页面",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1744,
        1056
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "da98008d-61aa-412c-9619-c1900757e6dd",
      "name": "工作流摘要",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "b92a0269-4ad3-4a3c-aea7-bf980bae3b6b",
      "name": "设置说明 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -144,
        208
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "07f9c8bc-2a55-4531-9b76-d70e58b76cda",
      "name": "设置说明 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        272,
        208
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "041392ab-129f-46cf-a9bc-73ad69e3694d",
      "name": "设置说明 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        208
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "42118e23-93ef-4d83-8197-313d12536001",
      "name": "设置说明 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        208
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "736b5fe5-c3e6-4839-8424-9617ec74dab6",
      "name": "设置说明 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1536,
        208
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Get_Resources": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Update Notion Page": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Update_Resource_Document": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many child blocks in Notion": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

这是一个中级难度的工作流,适用于AI Chatbot、Multimodal AI等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

需要付费吗?

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

工作流信息
难度等级
中级
节点数量15
分类2
节点类型8
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

外部链接
在 n8n.io 上查看 →

分享此工作流