Extract invoice data from Gmail to Airtable with Mistral OCR and GPT-4.1-mini — n8n Workflow
Overview
This n8n template demonstrates how to automatically process invoice attachments from email using OCR and AI. When an invoice is received in Gmail, the workflow extracts structured invoice data and stores it in Airtable while preventing duplicates.
This automation is useful for freelancers, agencies, and finance teams who receive invoices by email and want to maintain a structured invoice database without manual data entry.
Who’s it for
This workflow is designed for:
Freelancers managing clie
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a trigger trigger.
- 2
Process
Data flows through 16 nodes, connecting agent, airtable, gmail.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (16)
Airtable
airtable
HTTP Request
httpRequest
Gmail
gmail
AI Agent
n8n-nodes-langchain.agent
OpenAI Chat Model
n8n-nodes-langchain.lmChatOpenAi
Structured Output Parser
n8n-nodes-langchain.outputParserStructured
Mistral AI
mistralAi
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
extract-invoice-data-from-gmail-to-airtable-with-mistral-ocr-and-gpt-41-minifile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
Safa Khan
@safa-khan
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →