Track menu cost ratios from delivery-note photos with Gemini, Google Sheets and Gmail
Ready for 3.0What this workflow does
This AI workflow has 23 nodes and runs on a schedule (every day at 08:00) (plus 1 other trigger). Along the way it connects Google Sheets, Gmail, Google Gemini Chat Model and Google Drive and 1 more.
How it runs
Trigger: On a schedule (every day at 08:00) (plus 1 other trigger).
- Config (Edit Fields (Set)): sets 2 fields: googleSheetsId, notifyEmail
- Photo or daily check? (Switch): routes items into 1 branches
- Download the photo (Google Drive): download
- Read ingredients (Google Sheets): uses Google Sheets
- Read the invoice with Gemini (Google Gemini): analyze (image)
- Read recipes (Google Sheets): uses Google Sheets
- Parse and convert to base units (Code): runs custom JavaScript code
- Read menu (Google Sheets): uses Google Sheets
- Do the line items add up? (If): checks a condition and branches into true / false
- Compute cost ratios (Code): runs custom JavaScript code
…plus 9 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Gemini + Google Sheets templates (819) · Other Google Drive + Google Sheets templates (720)
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 (14)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - No Operation, do nothing
n8n-nodes-base.noOp - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Switch
n8n-nodes-base.switch - Google Drive
n8n-nodes-base.googleDrive - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Split Out
n8n-nodes-base.splitOut
From the author
Quick Overview This workflow reads supplier delivery-note photos from Google Drive with Google Gemini to keep ingredient prices up to date in Google Sheets, then recalculates menu item cost ratios every morning and emails you only the dishes that exceed their…