8
n8n 中文网amn8n.com

AI研究代理:使用Mistral最佳OCR自动分析PDF

高级

这是一个AI领域的自动化工作流,包含 30 个节点。主要使用 Set, Code, Gmail, Merge, SplitOut 等节点,结合人工智能技术实现智能自动化。 AI研究代理:使用Mistral最佳OCR自动分析PDF

前置要求
  • Google 账号和 Gmail API 凭证
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "2723a3a635131edfcb16103f3d4dbaadf3658e386b4762989cbf49528dccbdbd",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "5534b84d-9aaa-497d-a750-d754136a49ed",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1240,
        580
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f5ff24f2-d33d-4f40-aeef-3b96ae01a332",
      "name": "合并章节标题和文本",
      "type": "n8n-nodes-base.merge",
      "position": [
        3300,
        220
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "e23171cf-df8e-4934-98da-1f3f852df00d",
      "name": "最终文章文本",
      "type": "n8n-nodes-base.code",
      "position": [
        3580,
        220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1f4da7b2-cd54-4832-8a00-305062476895",
      "name": "研究负责人 🔬",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "maxTries": 5,
      "position": [
        1800,
        220
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1.6
    },
    {
      "id": "6ee8d982-0bd5-4f78-8c7d-43c49719dfe3",
      "name": "委派给研究助理",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2640,
        220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "bdb1f428-6dba-456e-a95a-c1b9edc637fa",
      "name": "研究助理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2880,
        220
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1.6
    },
    {
      "id": "a5f4ebdc-afc0-4b1e-a5ca-458fbe4707da",
      "name": "项目规划师",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "maxTries": 4,
      "position": [
        2260,
        220
      ],
      "parameters": {},
      "executeOnce": false,
      "retryOnFail": true,
      "typeVersion": 1.6
    },
    {
      "id": "9fd8d93d-c8d8-49bc-9295-e520c8a0203e",
      "name": "### 需要帮助?",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1720,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6f965021-7fa1-4346-bd41-6b8d49b5da01",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2200,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "38c412e3-cad2-4506-a367-af01caf1044d",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2800,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8c8f25e3-783d-495d-848d-7451f5d6ea4e",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3500,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c9ba80d7-2da9-4d5d-9fe0-c8b01c3a2912",
      "name": "标题1",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        4040,
        220
      ],
      "parameters": {},
      "typeVersion": 1.4
    },
    {
      "id": "be0d7be3-2440-441f-a3f3-4279b4e98182",
      "name": "Gmail1",
      "type": "n8n-nodes-base.gmail",
      "position": [
        4380,
        220
      ],
      "webhookId": "4bf6c339-c539-4336-b0a8-19b5e75f9edc",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "3e23f7a4-6bcf-4d5a-ac6b-c80cb9e2e21b",
      "name": "编辑",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3740,
        220
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "705c4381-c0c8-483b-9929-b866fd37b781",
      "name": "## 试试看!",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "53fe764c-9ee5-4433-87e5-25af3a4c3467",
      "name": "当由另一个工作流执行时",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        1560,
        660
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "b165c30a-705e-404b-802c-c398ce7baeb1",
      "name": "文档理解",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1760,
        660
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "510c5f9d-a4c4-4ea8-b530-9f98658125da",
      "name": "Mistral 上传",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        220
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "5bf136e2-d6c9-4797-9d26-be13f3441ff8",
      "name": "Mistral 签名 URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1520,
        220
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "183ebf04-5377-42d2-aa06-ac2db58adf3e",
      "name": "Mistral_PDF",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        1920,
        420
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "df168b7a-256e-4305-af26-84b30ee0e2a2",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2440,
        420
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "63ad422e-dde7-4422-b7c9-e3ab9949ffc5",
      "name": "Mistral_PDF1",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        2600,
        420
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "b8c8cff2-5638-4c9d-96d5-a97d0e36acfc",
      "name": "Mistral_PDF2",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        3100,
        420
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "6fa7b7ae-f359-4134-bba7-7adcf54a4075",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        1000,
        220
      ],
      "webhookId": "1fc84a99-72f8-4960-8653-94562a7e91c6",
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "b03e2a8c-c39d-4c8f-b824-4d749e1c76fe",
      "name": "GET 模型",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1240,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b568bae9-9263-42f4-bfd4-6df284c1d900",
      "name": "o3-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1800,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3b851991-976c-4903-9a14-93dfed404a62",
      "name": "o3-mini-3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        3820,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "39f879ec-ab0b-43e4-89af-f055a78a4b2a",
      "name": "o3-mini1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2920,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3186cfb3-8eb6-4993-bb98-69a5dce21832",
      "name": "gpt4o",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2260,
        420
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d091d288-40f0-4292-a936-29d492c2e341",
      "name": "问答答案",
      "type": "n8n-nodes-base.set",
      "position": [
        1960,
        660
      ],
      "parameters": {},
      "typeVersion": 3.4
    }
  ],
  "pinData": {},
  "connections": {
    "3186cfb3-8eb6-4993-bb98-69a5dce21832": {
      "ai_languageModel": [
        [
          {
            "node": "a5f4ebdc-afc0-4b1e-a5ca-458fbe4707da",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "3e23f7a4-6bcf-4d5a-ac6b-c80cb9e2e21b": {
      "main": [
        [
          {
            "node": "c9ba80d7-2da9-4d5d-9fe0-c8b01c3a2912",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c9ba80d7-2da9-4d5d-9fe0-c8b01c3a2912": {
      "main": [
        [
          {
            "node": "be0d7be3-2440-441f-a3f3-4279b4e98182",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b568bae9-9263-42f4-bfd4-6df284c1d900": {
      "ai_languageModel": [
        [
          {
            "node": "1f4da7b2-cd54-4832-8a00-305062476895",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "39f879ec-ab0b-43e4-89af-f055a78a4b2a": {
      "ai_languageModel": [
        [
          {
            "node": "bdb1f428-6dba-456e-a95a-c1b9edc637fa",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "3b851991-976c-4903-9a14-93dfed404a62": {
      "ai_languageModel": [
        [
          {
            "node": "3e23f7a4-6bcf-4d5a-ac6b-c80cb9e2e21b",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "c9ba80d7-2da9-4d5d-9fe0-c8b01c3a2912",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "183ebf04-5377-42d2-aa06-ac2db58adf3e": {
      "ai_tool": [
        [
          {
            "node": "1f4da7b2-cd54-4832-8a00-305062476895",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "63ad422e-dde7-4422-b7c9-e3ab9949ffc5": {
      "ai_tool": [
        [
          {
            "node": "a5f4ebdc-afc0-4b1e-a5ca-458fbe4707da",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "b8c8cff2-5638-4c9d-96d5-a97d0e36acfc": {
      "ai_tool": [
        [
          {
            "node": "bdb1f428-6dba-456e-a95a-c1b9edc637fa",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "510c5f9d-a4c4-4ea8-b530-9f98658125da": {
      "main": [
        [
          {
            "node": "5bf136e2-d6c9-4797-9d26-be13f3441ff8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a5f4ebdc-afc0-4b1e-a5ca-458fbe4707da": {
      "main": [
        [
          {
            "node": "6ee8d982-0bd5-4f78-8c7d-43c49719dfe3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e23171cf-df8e-4934-98da-1f3f852df00d": {
      "main": [
        [
          {
            "node": "3e23f7a4-6bcf-4d5a-ac6b-c80cb9e2e21b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5bf136e2-d6c9-4797-9d26-be13f3441ff8": {
      "main": [
        [
          {
            "node": "1f4da7b2-cd54-4832-8a00-305062476895",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6fa7b7ae-f359-4134-bba7-7adcf54a4075": {
      "main": [
        [
          {
            "node": "510c5f9d-a4c4-4ea8-b530-9f98658125da",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "bdb1f428-6dba-456e-a95a-c1b9edc637fa": {
      "main": [
        [
          {
            "node": "f5ff24f2-d33d-4f40-aeef-3b96ae01a332",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1f4da7b2-cd54-4832-8a00-305062476895": {
      "main": [
        [
          {
            "node": "a5f4ebdc-afc0-4b1e-a5ca-458fbe4707da",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b165c30a-705e-404b-802c-c398ce7baeb1": {
      "main": [
        [
          {
            "node": "d091d288-40f0-4292-a936-29d492c2e341",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "df168b7a-256e-4305-af26-84b30ee0e2a2": {
      "ai_outputParser": [
        [
          {
            "node": "a5f4ebdc-afc0-4b1e-a5ca-458fbe4707da",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "f5ff24f2-d33d-4f40-aeef-3b96ae01a332": {
      "main": [
        [
          {
            "node": "e23171cf-df8e-4934-98da-1f3f852df00d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6ee8d982-0bd5-4f78-8c7d-43c49719dfe3": {
      "main": [
        [
          {
            "node": "f5ff24f2-d33d-4f40-aeef-3b96ae01a332",
            "type": "main",
            "index": 1
          },
          {
            "node": "bdb1f428-6dba-456e-a95a-c1b9edc637fa",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "53fe764c-9ee5-4433-87e5-25af3a4c3467": {
      "main": [
        [
          {
            "node": "b165c30a-705e-404b-802c-c398ce7baeb1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能

需要付费吗?

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

工作流信息
难度等级
高级
节点数量30
分类1
节点类型14
难度说明

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

作者
Derek Cheung

Derek Cheung

@derekcheungsa

Derek is an engineer, instructor, and investor based in Canada. He is publicly building AI applications to solve real-world problems, leveraging his technical expertise to develop practical solutions.

外部链接
在 n8n.io 查看

分享此工作流

分类

分类: 34