Templates / Automate travel expense extraction with OCR, Mistral AI and Supabase

Automate travel expense extraction with OCR, Mistral AI and Supabase

Needs changes

by DIGITAL BIZ TECH ✓ · 369 views · created 2025-11-17 · Invoice Processing, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 13 nodes and runs when a chat message arrives. Along the way it connects Supabase and Mistral Cloud Chat Model.

How it runs

Trigger: When a chat message arrives.

  1. CHECK IF BINARY FILE IS PRESENT OR NOT (If): checks a condition and branches into true / false
  2. Split Out: splits a list into separate items
  3. Merge: merges the data from its input branches
  4. NORMALIZE binary file (Code): runs custom JavaScript code
  5. Travel reimbursement agent (AI Agent): runs an AI agent, with model: Mistral Cloud Chat Model; 2 tools (Calculator, Supabase Get); memory: Simple Memory
  6. OCR (ANY OCR API ) (HTTP Request): calls an HTTP API (POST)
  7. STORE OCR OUTPUT (Supabase): uses Supabase

Services it uses

SupabaseMistral Cloud Chat Model

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in Travel reimbursement agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Travel reimbursement agent (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (12)

From the author

Travel Reimbursement - OCR & Expense Extraction Workflow Overview This is a lightweight n8n workflow that accepts chat input and uploaded receipts, runs OCR, stores parsed results in Supabase, and uses an AI agent to extract structured travel expense data and…

Excerpt from DIGITAL BIZ TECH's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.