AutomationMart
Home/Browse/Automate travel expense extraction with OCR, Mistral AI and Supabase
n8n

Automate travel expense extraction with OCR, Mistral AI and Supabase

n8nn8n13 modulesv1.0
LinkedIn

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 compute totals. Designed for zero retention operation and fast integration. --- Workflow Structure - Frontend: Chat UI trigger that accepts text and file uploads. - Preprocessing: Binary normalization + per-file OCR request. - Storage: Stor

At a glance

Automate travel expense extraction with OCR, Mistral AI and Supabase is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects LinkedIn. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
LinkedIn
Modules
13
Price
Free
Version
v1.0
Automate travel expense extraction with OCR, Mistral AI and Supabase workflow diagram

About this workflow

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 compute totals. Designed for zero retention operation and fast integration. --- Workflow Structure - Frontend: Chat UI trigger that accepts text and file uploads. - Preprocessing: Binary normalization + per-file OCR request. - Storage: Store OCR-parsed blocks in Supabase temptable. - Core AI: Travel reimbursement agent that extracts fields, infers missing values, and calculates totals using the Calculator tool. - Output: Agent responds to the chat with a concise expense summary and breakdowns. --- Chat Trigger (Frontend) - Trigger node: When chat message received - public: true, allowFileUploads: true, sessionId used to tie uploads to the chat session. - Custom CSS + initial messages configured for user experience. Binary Presence Check - Node: CHECK IF BINARY FILE IS PRESENT OR NOT (IF) - Checks whether incoming payload contains files. - If files present -> route to Split Out -> NORMALIZE binary file -> OCR (ANY OCR API) -> STORE OCR OUTPUT -> Merge. - If no files -> route directly to Merge -> Travel reimbursement agent. Binary Normalization - Node: Split Out and NORMALIZE binary file (Code) - Split Out extracts binary entries into a data field. - NORMALIZE binary file picks the first binary key and rewrites payload to binary.data for consistent downstream shape. OCR - Node: OCR (ANY OCR API ) (HTTP Request) - Sends multipart/form-data to OCR endpoint, expects JSONL or JSON with blocks. - Body includes mode=single, outputtype=jsonl, includeimages=false. Store OCR Output - Node: STORE OCR OUTPUT (Supabase) - Upserts into temptable with sessionid, parsed blocks, and filename. - Used by agent to fetch previously uploaded receipts for same session. Memory & Tooling - Nodes: Simple Memory and Simple Memory1 (memoryBufferWindow) - Keep last 10 messages for session context. - Node: Calculator1 (toolCalculator) - Used by agent to sum multiple charges, handle currency arithmetic and totals. Travel Reimbursement Agent (Core) - Node: Travel reimbursement agent (LangChain agent) - Model: Mistral Cloud Chat Model (mistral-medium-latest) - Behavior: - Parse OCR blocks and non-file chat input. - Extract required fields: vendorname, category, invoicedate, checkindate, checkoutdate, time, currency, totalamount, notes, estimated. - When fields are missing, infer logically and mark estimated: true. - Use Calculator tool to sum totals across multiple receipts. - Fetch stored OCR entries from Supabase when user asks for session summaries. - Always attempt extraction; never reply with "unclear" or ask for a reupload unless user requests audit-grade precision. - Final output: Clean expense table and Grand Total formatted for chat. Data Flow Summary 1. User sends chat message plus or minus file. 2. IF file present -> Split Out -> Normalize -> OCR -> Store OCR output -> Merge with chat payload. 3. Travel reimbursement agent consumes merged item, extracts fields, uses Calculator tool for sums, and replies with a formatted expense summary. --- Integrations Used | Service | Purpose | Credential | |---------|---------|-----------| | Mistral Cloud | LLM for agent | Mistral account | | Supabase | Store parsed OCR blocks and session data | Supabase account | | OCR API | Text extraction from images/PDFs | Configurable HTTP endpoint | | n8n Core | Flow control, parsing, editing | Native | --- Agent System Prompt Summary > You are a Travel Expense Extraction and Calculation AI. Extract vendor, dates, currency, category, and total amounts from uploaded receipts, invoices, hotel bills, PDFs, and images. Infer values when necessary and mark them as estimated. When asked, fetch session entries from Supabase and compute totals using the Calculator tool. Respond in a concise business professional format with a category wise breakdown and a Grand Total. Never reply "unclear" or ask for a reupload unless explicitly asked. Required final response format example: --- Key Features - Zero retention friendly design: OCR output stored only to temptable per session. - Robust extraction with inference when OCR quality is imperfect. - Session aware: agent retrieves stored receipts for consolidated totals. - Calculator integration for accurate numeric sums and currency handling. - Configurable OCR endpoint so you can swap providers without changing logic. --- Setup Checklist 1. Add Mistral Cloud and Supabase credentials. 2. Configure OCR endpoint to accept multipart uploads and return blocks. 3. Create temptable schema with sessionid, file, filename. 4. Test with single receipts, multipage PDFs, and mixed uploads. 5. Validate agent responses and Calculator totals. --- Summary A practical n8n workflow for travel expense automation: accept receipts, run OCR, store parsed data per session, extract structured fields via an AI agent, compute totals, and return clean expense summaries in chat. Built for reliability and easy integration. --- Need Help or More Workflows? We can integrate this into your environment, tune the agent prompt, or adapt it for different OCR providers. We can help you set it up for free — from connecting credentials to deploying it live. Contact: rajeet.nair@digitalbiz.tech Website: LinkedIn: You can also DM us on LinkedIn for any help.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

YouTube to multilingual blogs: convert videos to SEO-friendly Google Doc articles

YouTube Video to Blog – Multilingual Blog Generator Convert YouTube videos into SEO-friendly blog posts in just seconds using this fully automated n8n workflow. Perfect for content creators, marketers, educators, and bloggers looking to repurpose video content without manual transcription or formatting. --- 🔧 What It Does - 📥 Accepts a YouTube video URL and preferred language via a simple form - 🧠 Uses a third-party API to convert the video into a blog-style article - 📄 Automatica

Free

Smart job search: resume scoring & tailoring with OpenAI, Apify, and Airtable

Who is this for? This workflow is designed for job seekers who want to automate their job application research and resume optimization. It's ideal for professionals who want to match their CVs to new job postings daily, improving the chance of landing interviews without manual work. Use case - Problem: Manually searching for jobs, matching resumes, and updating application records is time-consuming and inefficient. - Use Case: Automatically fetches new job listings based on user preferences, sco

Free

Auto-import contacts from Google Sheets to MailChimp subscriber lists

Google Sheets to MailChimp Auto-Importer Overview This n8n workflow automatically imports contacts from Google Sheets into your MailChimp mailing list. Perfect for businesses collecting leads through Google Forms, event registrations, or maintaining contact lists in spreadsheets. Key Features - 📊 Bulk Import: Process entire Google Sheets at once - 🔄 Smart Name Parsing: Automatically splits full names into first and last names - 📱 Phone Number Support: Includes phone numbers

Free

Categorize support tickets with Gemini AI, Typeform, and Google Sheets reporting

Transform chaotic support requests into organized, actionable insights automatically. This intelligent workflow captures support tickets from forms, uses AI to categorize and analyze sentiment, stores everything in organized databases, and delivers comprehensive analytics reports to your team - eliminating manual sorting while providing valuable business intelligence. 🚀 What It Does Intelligent Ticket Processing: Automatically categorizes incoming support requests into Billing, Bug Reports, Feat

Free

Extract trends, auto-generate social content with AI, Reddit, Google & post

Extract Trends and Auto-Generate Social Media Content with OpenAI, Reddit, and Google Trends: Approve and Post to Instagram, TikTok, and More --- Description What Problem Does This Solve? 🛠️ This workflow automates trend extraction and social media content creation for businesses and marketers. It eliminates manual trend research and content generation by fetching trends, scoring them with AI, and posting tailored content to multiple platforms. Target audience: Social media

Free

LinkedIn Search Results or Employees Export & Data Enrichment

LinkedIn lead generation workflow using HARPA and Make.com that collects leads from searches or company employees and enriches your database with profile information. Complete guide: https://harpa.ai/grid/linkedin-lead-generation-and-data-enrichment All collected data is stored in a Google Sheet. You can connect it to your CRM, database, Airtable or other systems.

Free

Build an AI confidence coach for women with GPT-4o, Google Sheets and Gmail

Description Most career advice is generic. This workflow builds a fully personalized AI coaching system that remembers every user, adapts to their career stage and goals, detects what kind of help they need, and gets more contextual with every conversation. It is not a simple chatbot — it is a structured coaching engine with user profiling, conversation memory, intent routing, and proactive weekly outreach. Built for women's communities, coaching platforms, HR teams, and edtech creators who

Free

Auto-publish social videos to 9 platforms via Google Sheets and Blotato

Auto-Publish Social Videos to 9 Platforms via Google Sheets and Blotato Who is this workflow for? This workflow is ideal for marketers, content creators, virtual assistants, and automation specialists managing multi-platform video content. It’s especially useful for teams who want to centralize publishing via a spreadsheet and automate social distribution in one shot. What problem does this workflow solve? Manually posting videos to multiple social platforms is tedious and time-consuming. This w

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free