The flow
Starts it 1Model 1Logic 16Service 4
The steps in the order they run, from what starts it.
- 1When Daily at 9 AMSchedule triggerStarts it
- 2Initialize ConfigurationsCodeLogic
- 3Read from Invoice SheetsGoogle SheetsService
- 4Identify Eligibility StageCodeLogic
- 5Loop Through InvoicesSplit In BatchesLogic
- 6Process CompleteNo OpLogic
- 7Retrieve Gmail HistoryGmailService
- 8Construct Email ContextCodeLogic
- 9Check Stage Sent AlreadyIfLogic
- 10Reconcile Sent InvoicesCodeLogic
- 11Check Recent ConversationIfLogic
- 12Update Invoice in SheetsGoogle SheetsService
- 13Defer Due to Recent MsgCodeLogic
- 14OpenAI Classifier for EmailsOpen AiModel
- 15Interpret AI ClassificationCodeLogic
- 16Determine If AI Suggests SendIfLogic
- 17Craft Deterministic EmailCodeLogic
- 18Decide Human Review NeededIfLogic
- 19Gmail Reminder DispatchGmailService
- 20Queue for Human ReviewCodeLogic
- 21Configure AI DefermentCodeLogic
- 22Set Sent StatusCodeLogic
How it's built
- Starts on
- A clock
- Steps
- 22, with 4 branches, 1 loop or waits
- Size
- Large: read it before trusting it with anything live
- Connects to
- Gmail, Google Sheets
- Model
- OpenAI
Questions
What does it need to run?
An n8n account, plus your own Gmail and Google Sheets accounts, and a key for OpenAI. 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 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.