N
n8n Store
Workflow Market
🧾 Automated Invoice Processing with Mistral OCR + GPT-4o-mini

🧾 Automated Invoice Processing with Mistral OCR + GPT-4o-mini

by b4dr0 views

描述

分类

💰 Finance🤖 AI & Machine Learning

使用的节点

n8n-nodes-base.setn8n-nodes-base.splitOutn8n-nodes-base.summarizen8n-nodes-base.stickyNoten8n-nodes-base.googleDriven8n-nodes-base.httpRequest@n8n/n8n-nodes-langchain.agentn8n-nodes-base.extractFromFilen8n-nodes-base.googleDriveTrigger@n8n/n8n-nodes-langchain.lmChatOpenAi
价格免费
浏览量0
最后更新11/28/2025
workflow.json
{
  "meta": {
    "instanceId": "4786bf0f18c0e8e92c361de5a158cabf4eb0bb3b9c113091b054ff26e359a029",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "d7086584-965b-467b-b453-4e43936a4bbe",
      "name": "Google Drive Trigger: New Invoice Detection",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        180,
        -240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0af0b6a6-7ee8-4fdb-a88b-38abad155962",
      "name": "Google Drive: Download Invoice",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        400,
        -240
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "e0f5e5d0-95a5-4ac2-9de2-995e45def8c3",
      "name": "Workflow Documentation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -820,
        -500
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9b1fe096-3c01-4c63-85fa-c54432680b8e",
      "name": "Mistral OCR API: Extract Text",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        840,
        -240
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "d0443dba-2b91-4750-8d44-9e4312806941",
      "name": "Data Splitter: OCR Pages",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1080,
        -240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0ae469f6-378b-4d0e-8ba5-6dd2c87ab2da",
      "name": "Field Extractor: Page Markdown",
      "type": "n8n-nodes-base.set",
      "position": [
        1320,
        -240
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "ff714c7c-9b60-4074-8003-a0fbca9d9f39",
      "name": "Data Aggregator: Combine Pages",
      "type": "n8n-nodes-base.summarize",
      "position": [
        1540,
        -240
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "42b4088b-2433-4024-8e69-6f9de1969979",
      "name": "AI Agent: Structure Invoice Data",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1760,
        -240
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "ae95c2f9-f8b3-4b16-b0bb-c0fcc34365cb",
      "name": "AI Engine: GPT-4o-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1640,
        -20
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "ad61f397-d923-481b-b48c-376e4e287ca7",
      "name": "JSON Parser: Invoice Structure",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1940,
        -20
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "bc22f1eb-4efa-463c-b86f-6fc8fa76746d",
      "name": "Convert invoice File to Base64",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        640,
        -240
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "AI Engine: GPT-4o-mini": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent: Structure Invoice Data",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Data Splitter: OCR Pages": {
      "main": [
        [
          {
            "node": "Field Extractor: Page Markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mistral OCR API: Extract Text": {
      "main": [
        [
          {
            "node": "Data Splitter: OCR Pages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert invoice File to Base64": {
      "main": [
        [
          {
            "node": "Mistral OCR API: Extract Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Data Aggregator: Combine Pages": {
      "main": [
        [
          {
            "node": "AI Agent: Structure Invoice Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Field Extractor: Page Markdown": {
      "main": [
        [
          {
            "node": "Data Aggregator: Combine Pages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive: Download Invoice": {
      "main": [
        [
          {
            "node": "Convert invoice File to Base64",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "JSON Parser: Invoice Structure": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent: Structure Invoice Data",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent: Structure Invoice Data": {
      "main": [
        []
      ]
    },
    "Google Drive Trigger: New Invoice Detection": {
      "main": [
        [
          {
            "node": "Google Drive: Download Invoice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

相关工作流