{
  "name": "Convert documents to Markdown with MinerU API and GPT-4o-mini",
  "nodes": [
    {
      "id": "7c2da246-19a8-420f-8cd9-651e00937607",
      "name": "If 还没遍历结束",
      "type": "n8n-nodes-base.if",
      "position": [
        220,
        580
      ]
    },
    {
      "id": "dae9bcd0-2b1e-4091-bbd4-591af5e26a95",
      "name": "初始化files",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        580
      ]
    },
    {
      "id": "28758f62-e99d-4025-a487-0150ca60e2c7",
      "name": "MCP Client",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        600,
        400
      ]
    },
    {
      "id": "2e4a3ba3-a040-4a99-a71f-867c11255a58",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        460,
        400
      ]
    },
    {
      "id": "d2942fd4-d799-47e9-ac24-0eff094c27c2",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        440,
        180
      ]
    },
    {
      "id": "895ff140-8a3e-48af-b0bb-d23c8c8d119d",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -280,
        580
      ]
    },
    {
      "id": "1e410edb-5434-40ab-8cdd-2a25574fcccc",
      "name": "添加文件路径到",
      "type": "n8n-nodes-base.set",
      "position": [
        820,
        660
      ]
    },
    {
      "id": "ebdf5ef1-45f2-478e-abad-6235b260dee9",
      "name": "文件保存到本地",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        520,
        580
      ]
    }
  ],
  "connections": {
    "MCP Client": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "初始化files": {
      "main": [
        [
          {
            "node": "If 还没遍历结束",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "If 还没遍历结束": {
      "main": [
        [
          {
            "node": "文件保存到本地",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "文件保存到本地": {
      "main": [
        [
          {
            "node": "添加文件路径到",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "添加文件路径到": {
      "main": [
        [
          {
            "node": "If 还没遍历结束",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "初始化files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}