Templates / Track menu cost ratios from delivery-note photos with Gemini, Google Sheets and Gmail

Track menu cost ratios from delivery-note photos with Gemini, Google Sheets and Gmail

Ready for 3.0

by ayumi ✓ · 7 views · created 2026-09-05 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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).

  1. Config (Edit Fields (Set)): sets 6 fields: googleSheetsId, ingredientsSheet, recipesSheet…
  2. Photo or daily check? (Switch): routes items into 1 branches
  3. Download the photo (Google Drive): download
  4. Read ingredients (Google Sheets): uses Google Sheets
  5. Read the invoice with Gemini (Google Gemini): analyze (image)
  6. Read recipes (Google Sheets): uses Google Sheets
  7. Parse and convert to base units (Code): runs custom JavaScript code
  8. Read menu (Google Sheets): uses Google Sheets
  9. Do the line items add up? (If): checks a condition and branches into true / false
  10. Compute cost ratios (Code): runs custom JavaScript code

…plus 9 more steps. See the full node list below.

Services it uses

Google SheetsGmailGoogle Gemini Chat ModelGoogle DriveGoogle Gemini

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (14)

From the author

Quick overview Ingredient prices creep up, and a dish can run at a loss for weeks before anyone notices. Drop a photo of a delivery note into a Drive folder: Gemini reads it, the price list updates, and every morning you get only the dishes over target, with…

Excerpt from ayumi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.