Categorize Aruba Italian e-invoices with OpenAI and send monthly Excel reports via Dropbox and Gmail
Ready for 3.0What this workflow does
This AI workflow has 34 nodes and runs when a new email arrives over IMAP (plus 4 other triggers). Along the way it connects Gmail, Dropbox and OpenAI Chat Model.
How it runs
Trigger: When a new email arrives over IMAP (plus 4 other triggers).
- Settings (Edit Fields (Set)): sets 6 fields: MY_EMAIL, ACCOUNTANT_EMAIL, BASE_FOLDER…
- Create the table Fatture ricevute (Data table): create (table)
- What started the run? (Switch): routes items into 3 branches
- Create the table Fornitori (Data table): create (table)
- Parse the notice (Code): runs custom JavaScript code
- Month to consolidate (Code): runs custom JavaScript code
- Email me: workflow stopped (Gmail): send (message)
- Notice parsed? (If): checks a condition and branches into true / false
- Create the Consolidati folder if missing (Dropbox): create (folder)
- Load past invoices (Data table): get (row)
…plus 17 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Dropbox templates (6) · Other Dropbox + Gmail templates (5)
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)
- Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Data table
n8n-nodes-base.dataTable - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Gmail
n8n-nodes-base.gmail - Dropbox
n8n-nodes-base.dropbox - Convert to File
n8n-nodes-base.convertToFile - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Webhook
n8n-nodes-base.webhook - Error Trigger
n8n-nodes-base.errorTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
Quick overview This workflow reads Aruba “Hai ricevuto una nuova fattura elettronica” email notices via IMAP, extracts key invoice details into an n8n data table, and on a monthly schedule (or via webhook) generates an Excel report and uploads it to Dropbox,…