Templates / Parse incoming invoices from Outlook using AI Document Understanding

Parse incoming invoices from Outlook using AI Document Understanding

Ready for 3.0

by Jimleuk ✓ · 21,723 views · created 2025-04-01 · 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-10-19.

What this workflow does

This AI workflow has 18 nodes and runs on a schedule (every hour). Along the way it connects Microsoft Outlook, Google Gemini Chat Model and Microsoft Excel 365. It also calls generativelanguage.googleapis.com over HTTP.

How it runs

Trigger: On a schedule (every hour).

  1. Get Recent Messages (Microsoft Outlook): get many
  2. Markdown: converts between Markdown and HTML
  3. Message Classifier (Text Classifier): classifies text into categories with AI, with model: Model
  4. For Each Message (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Microsoft Excel (Microsoft Excel 365): append (worksheet)
  6. Download Attachments (Microsoft Outlook): get
  7. Split Attachments (Code): runs custom JavaScript code
  8. Extract from File: extracts data from a file (binary to propery)
  9. Invoice Classifier With Gemini 2. (HTTP Request): calls generativelanguage.googleapis.com (POST)
  10. Filter: keeps only the items that match a condition

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

Services it uses

Microsoft OutlookGoogle Gemini Chat ModelMicrosoft Excel 365

HTTP calls to: generativelanguage.googleapis.com

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.

Nodes used (15)

From the author

This n8n template monitors an Outlook mailbox for invoices, automatically parses/extracts data from them and then uploads the output to an Excel Workbook. One of my top workflow requests, this template can save many hours of manual labour for you or your…

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