The flow
Starts it 1Model 2Logic 12Service 7
The steps in the order they run, from what starts it.
- 1Gmail TriggerGmail triggerStarts it
- 2OpenAI Chat ModelLm Chat Open AiModel
- 3ConfigSetLogic
- 4AI Extract Invoice DataInformation ExtractorModel
- 5Extract Text from PDFExtract From FileService
- 6Is Invoice?IfLogic
- 7Validate Extracted DataCodeLogic
- 8Is Valid?IfLogic
- 9Search vendorQuickbooksService
- 10Error: Extraction FailedGmailService
- 11Vendor Found?IfLogic
- 12Prepare Bill DataCodeLogic
- 13Error: Vendor Not FoundGmailService
- 14Create BillQuickbooksService
- 15Build Attachment MetadataCodeLogic
- 16Fetch PDF BinaryCodeLogic
- 17Metadata to BinaryCodeLogic
- 18Merge PDF + MetadataMergeLogic
- 19Force Inline BinaryCodeLogic
- 20Upload PDF to BillHttp RequestService
- 21Send Confirmation?IfLogic
- 22Send Confirmation EmailGmailService
How it's built
- Starts on
- An arriving email
- Steps
- 22, with 4 branches
- Size
- Large: read it before trusting it with anything live
- Connects to
- Gmail
- Model
- OpenAI
Questions
What does it need to run?
An n8n account, plus your own Gmail account, and a key for OpenAI. You connect your own accounts after importing it; none are included.
What starts it?
It starts on an arriving email.
Does it use AI?
Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.
How long does it take to set up?
Take your time. At 22 steps it is large: read it before trusting it with anything live.
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 22 steps before you point it at anything that matters.