The flow
Starts it 1Model 2Logic 9Service 6
The steps in the order they run, from what starts it.
- 1Schedule TriggerSchedule triggerStarts it
- 2ModelLm Chat Google GeminiModel
- 3Get Recent MessagesMicrosoft OutlookService
- 4Message ClassifierText ClassifierModel
- 5MarkdownMarkdownLogic
- 6For Each MessageSplit In BatchesLogic
- 7Microsoft Excel 365Microsoft ExcelService
- 8Message RefNo OpLogic
- 9Download AttachmentsMicrosoft OutlookService
- 10Split AttachmentsCodeLogic
- 11Extract from FileExtract From FileService
- 12Invoice Classifier With Gemini 2.0Http RequestService
- 13Filter InvoicesFilterLogic
- 14Has Invoice?IfLogic
- 15File-Based OCR with Gemini 2.0Http RequestService
- 16Empty ResponseSetLogic
- 17Parse OutputSetLogic
- 18WaitWaitLogic
How it's built
- Starts on
- A clock
- Steps
- 18, with 1 branch, 2 loops or waits
- Size
- Medium: a working afternoon
- Connects to
- Excel, Outlook
- Model
- Gemini
Questions
What does it need to run?
An n8n account, plus your own Excel and Outlook accounts, and a key for Gemini. You connect your own accounts after importing it; none are included.
What starts it?
It starts on a clock.
Does it use AI?
Yes. It calls Gemini. Model calls are billed by the provider, not by n8n.
How long does it take to set up?
Plan an afternoon. 18 steps is enough that you should read each one before running it.
How do I import it?
Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.
Before you run itNothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 18 steps before you point it at anything that matters.