8
n8n 中文网amn8n.com

通过MCP服务器和ChatGPT在n8n中与QuickBooks Online客户数据对话

中级

这是一个自动化工作流,包含 7 个节点。主要使用 QuickbooksTool, Agent, McpTrigger, ChatTrigger, LmChatOpenAi 等节点。 通过MCP服务器和ChatGPT在n8n中与QuickBooks Online客户数据对话

前置要求
  • OpenAI API Key

分类

-
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "c8c9ba5d3eb26ae47a06d24ff164a01c0d73ed4753a74903c2bb609d434a0f6b",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "21ecf5fe-2008-43aa-85ac-9f1e6e2262e2",
      "name": "公共聊天触发器",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        0,
        0
      ],
      "webhookId": "eb3cc51c-29da-4593-9468-66d1977955ce",
      "parameters": {
        "public": true,
        "options": {}
      },
      "typeVersion": 1.1
    },
    {
      "id": "05f54bf8-51e4-4f32-b624-daf75304f199",
      "name": "AI 智能体编排器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        224,
        0
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 2
    },
    {
      "id": "1c95c159-33da-4eb2-b72f-78144c903813",
      "name": "LLM - OpenAI 聊天 (gpt-4.1-mini)",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        192,
        224
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "IscXryYQZrfSUSkH",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "a5a78a3d-3b63-4dce-91d9-1b76ed7a5744",
      "name": "MCP 服务器 - Claude Desktop 桥接",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        -96,
        384
      ],
      "webhookId": "7a131c2c-5b3b-4a99-9319-f3aebadcf451",
      "parameters": {
        "path": "7a131c2c-5b3b-4a99-9319-f3aebadcf451"
      },
      "typeVersion": 2
    },
    {
      "id": "516680cc-8376-4e9c-8249-e4a4e4e20072",
      "name": "AI 工具 - QBO 客户",
      "type": "n8n-nodes-base.quickbooksTool",
      "position": [
        112,
        592
      ],
      "parameters": {
        "filters": {},
        "operation": "getAll",
        "returnAll": true
      },
      "credentials": {
        "quickBooksOAuth2Api": {
          "id": "b6aH0PejuunHdpJu",
          "name": "QuickBooks Online account 3"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "efc80f6a-80f5-4598-aec6-db600f053567",
      "name": "MCP 客户端工具",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        384,
        224
      ],
      "parameters": {
        "sseEndpoint": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c3c3e7b0-1f0b-4f1a-8a4e-2e7b6a0a5c1a",
      "name": "工作流描述",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        -300
      ],
      "parameters": {
        "color": 5,
        "width": 272,
        "height": 912,
        "content": "# 工作流描述"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "MCP Client Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Agent Orchestrator",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Public Chat Trigger": {
      "main": [
        [
          {
            "node": "AI Agent Orchestrator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Tool - QBO Customers": {
      "ai_tool": [
        [
          {
            "node": "MCP Server - Claude Desktop Bridge",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "LLM - OpenAI Chat (gpt-4.1-mini)": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent Orchestrator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级

需要付费吗?

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

工作流信息
难度等级
中级
节点数量7
分类-
节点类型7
难度说明

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

作者
Milan Vasarhelyi - SmoothWork

Milan Vasarhelyi - SmoothWork

@vasarmilan

We help you eliminate the busywork by building compact business tools tailored to your processes. 📞: https://smoothwork.ai/book-a-call ▶️: https://www.youtube.com/@vasarmilan

外部链接
在 n8n.io 查看

分享此工作流