Extract structured invoice JSON from PDFs with Mistral OCR and an LLM API
N8N AI LLM Unstructured Invoice data PDF OCR recognition to JSON output API
What this workflow does Accepts a PDF or image upload via Webhook as binary property "data" Runs OCR with the Mistral OCR node Normalizes OCR text Sends OCR text to an LLM to extract structured JSON Cleans and normalizes the JSON Returns either: status: ok status: review_needed
Setup Import the workflow JSON into n8n Create/attach Mistral AI credentials on the "Mistral OCR" node Create/attach your choice LLM AI credentials on the OCR text to JSON converson node Activate the workflow POST a file to: /webhook/ocr-to-json
Notes This starter is tuned for invoices/documents but can be adapted for receipts, purchase orders, or forms. Depending on your installed n8n version, the Mistral node parameter names may need minor adjustment after import. The workflow returns review_needed when confidence is below 0.5.
Related Templates
Extract Named Entities from Web Pages with Google Natural Language API
Who is this for? Content strategists analyzing web page semantic content SEO professionals conducting entity-based anal...
Add product ideas to Notion via a Slack command
Use Case In most companies, employees have a lot of great ideas. That was the same for us at n8n. We wanted to make it a...
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments