The flow
Starts it 2Model 3Logic 9Service 9
The steps in the order they run, from what starts it.
- 1Every morning at 8:00Schedule triggerStarts it
- 2GeminiLm Chat Google GeminiModel
- 3New invoice photo in DriveGoogle Drive triggerStarts it
- 4ConfigSetLogic
- 5Suggest actions with AIChain LlmModel
- 6Photo or daily check?SwitchLogic
- 7Email the alertGmailService
- 8Download the photoGoogle DriveService
- 9Read ingredientsGoogle SheetsService
- 10Read the invoice with GeminiGoogle GeminiModel
- 11Read recipesGoogle SheetsService
- 12Parse and convert to base unitsCodeLogic
- 13Read menuGoogle SheetsService
- 14Do the line items add up?IfLogic
- 15Compute cost ratiosCodeLogic
- 16Split out line itemsSplit OutLogic
- 17Ask for a human checkGmailService
- 18Write results to Menu sheetGoogle SheetsService
- 19Collect alertsCodeLogic
- 20Update ingredient pricesGoogle SheetsService
- 21Anything over target?IfLogic
- 22Confirm what was updatedGmailService
- 23All within target - stay quietNo OpLogic
How it's built
- Starts on
- A clock
- Steps
- 23, with 3 branches
- Size
- Large: read it before trusting it with anything live
- Connects to
- Gmail, Google Drive, Google Sheets
- Model
- Gemini
Questions
What does it need to run?
An n8n account, plus your own Gmail, Google Drive and Google Sheets 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?
Take your time. At 23 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 23 steps before you point it at anything that matters.