# Track menu cost ratios from delivery-note photos with Gemini: n8n workflow

> Started by a clock, and works across Gmail, Google Drive and Google Sheets. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/track-menu-cost-ratios-from-delivery-note-photos-with-gemini (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

# Track menu cost ratios from delivery-note photos with Gemini

Started by a clock, and works across Gmail, Google Drive and Google Sheets. It hands the judgement calls to Gemini. 23 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftrack-menu-cost-ratios-from-delivery-note-photos-with-gemini)

**23 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 2 Model 3 Logic 9 Service 9

The steps in the order they run, from what starts it.

- 1 **Every morning at 8:00** Schedule trigger *Starts it*
- 2 **Gemini** Lm Chat Google Gemini *Model*
- 3 **New invoice photo in Drive** Google Drive trigger *Starts it*
- 4 **Config** Set *Logic*
- 5 **Suggest actions with AI** Chain Llm *Model*
- 6 **Photo or daily check?** Switch *Logic*
- 7 **Email the alert** Gmail *Service*
- 8 **Download the photo** Google Drive *Service*
- 9 **Read ingredients** Google Sheets *Service*
- 10 **Read the invoice with Gemini** Google Gemini *Model*
- 11 **Read recipes** Google Sheets *Service*
- 12 **Parse and convert to base units** Code *Logic*
- 13 **Read menu** Google Sheets *Service*
- 14 **Do the line items add up?** If *Logic*
- 15 **Compute cost ratios** Code *Logic*
- 16 **Split out line items** Split Out *Logic*
- 17 **Ask for a human check** Gmail *Service*
- 18 **Write results to Menu sheet** Google Sheets *Service*
- 19 **Collect alerts** Code *Logic*
- 20 **Update ingredient prices** Google Sheets *Service*
- 21 **Anything over target?** If *Logic*
- 22 **Confirm what was updated** Gmail *Service*
- 23 **All within target - stay quiet** No Op *Logic*

## 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 it**

Nothing 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftrack-menu-cost-ratios-from-delivery-note-photos-with-gemini)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**Analyze Amazon review friction and revenue impact** 23 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/analyze-amazon-review-friction-and-revenue-impact)
- [**Extracts and organizes academic publications with OpenAI** 23 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/extracts-and-organizes-academic-publications-with-openai)
- [**Log meal nutrition from LINE food photos to Google Sheets** 23 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/log-meal-nutrition-from-line-food-photos-to-google-sheets)
- [**Optimize Instagram hashtags with OpenAI and Graph API** 23 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/optimize-instagram-hashtags-with-openai-and-graph-api)
- [**Manage client onboarding and project handoff** 23 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/manage-client-onboarding-and-project-handoff)
- [**Track customer email commitments with Gmail and OpenRouter** 23 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/track-customer-email-commitments-with-gmail-and-openrouter)
