Process and validate e-invoices from email into Data Tables with Ollama
Ready for 3.0What this workflow does
This AI workflow has 54 nodes and runs manually, when you click “Execute workflow” (plus 4 other triggers). Along the way it connects Ollama Chat Model, WhatsApp Business Cloud and Telegram.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 4 other triggers).
- Create e_invoices table (Data table): create (table)
- Settings (Edit Fields (Set)): sets 11 fields: accountingEmail, senderEmail, accountingInbox…
- Read all invoices (Data table): get (row)
- Failure settings (Edit Fields (Set)): sets 4 fields: accountingEmail, senderEmail, timezone…
- Split attachments (Code): runs custom JavaScript code
- Last month only (Code): runs custom JavaScript code
- Describe failure (Code): runs custom JavaScript code
- Has invoice file? (If): checks a condition and branches into true / false
- Build CSV (Convert to File): converts data to a file (csv)
- Email: workflow failed (Send Email): sends an email over SMTP
…plus 38 more steps. See the full node list below.
Services it uses
Other WhatsApp + Telegram templates (34) · Other Ollama + Telegram templates (17) · Other WhatsApp + Ollama templates (7)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (16)
- Manual Trigger
n8n-nodes-base.manualTrigger - Data table
n8n-nodes-base.dataTable - Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Send Email
n8n-nodes-base.emailSend - Extract from File
n8n-nodes-base.extractFromFile - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - Ollama Chat Model
@n8n/n8n-nodes-langchain.lmChatOllama - Convert to File
n8n-nodes-base.convertToFile - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - Telegram
n8n-nodes-base.telegram - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow ingests e-invoices via IMAP email or an n8n upload form, extracts and parses XRechnung/ZUGFeRD/Factur-X/Peppol XML, runs plausibility checks, deduplicates and stores results in an n8n Data Table, and emails accounting for review…