Templates / Process and validate e-invoices from email into Data Tables with Ollama

Process and validate e-invoices from email into Data Tables with Ollama

Ready for 3.0

by Denis Shokhirev · 9 views · created 2026-11-03 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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).

  1. Create e_invoices table (Data table): create (table)
  2. Settings (Edit Fields (Set)): sets 11 fields: accountingEmail, senderEmail, accountingInbox…
  3. Read all invoices (Data table): get (row)
  4. Failure settings (Edit Fields (Set)): sets 4 fields: accountingEmail, senderEmail, timezone…
  5. Split attachments (Code): runs custom JavaScript code
  6. Last month only (Code): runs custom JavaScript code
  7. Describe failure (Code): runs custom JavaScript code
  8. Has invoice file? (If): checks a condition and branches into true / false
  9. Build CSV (Convert to File): converts data to a file (csv)
  10. Email: workflow failed (Send Email): sends an email over SMTP

…plus 38 more steps. See the full node list below.

Services it uses

Ollama Chat ModelWhatsApp Business CloudTelegram

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (16)

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…

Excerpt from Denis Shokhirev'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.