# Log meal nutrition from LINE food photos to Google Sheets: n8n workflow

> Started by another system calling it, and works across Google Sheets. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/log-meal-nutrition-from-line-food-photos-to-google-sheets (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)

# Log meal nutrition from LINE food photos to Google Sheets

Started by another system calling it, and works across 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%2Flog-meal-nutrition-from-line-food-photos-to-google-sheets)

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

**3** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 3 Model 4 Logic 8 Service 8

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

- 1 **Set Config Fields** Set *Logic*
- 2 **When LINE Event Received** Webhook *Starts it*
- 3 **Gemini Food Analysis Config** Lm Chat Google Gemini *Model*
- 4 **Weekly 9AM Schedule** Schedule trigger *Starts it*
- 5 **Gemini Weekly Report Config** Lm Chat Google Gemini *Model*
- 6 **Send Webhook Response OK** Respond To Webhook *Starts it*
- 7 **If Image Message** If *Logic*
- 8 **Create Weekly Comment with LLM** Chain Llm *Model*
- 9 **Fetch LINE Image Data** Http Request *Service*
- 10 **If Report Command** If *Logic*
- 11 **Deliver Weekly Report via LINE** Http Request *Service*
- 12 **Encode Image to Base64** Code *Logic*
- 13 **Read Weekly Data from Sheets** Google Sheets *Service*
- 14 **Send Help Reply via LINE** Http Request *Service*
- 15 **Process Food Analysis** Chain Llm *Model*
- 16 **Summarize Weekly Stats** Code *Logic*
- 17 **Extract Nutrition Data** Code *Logic*
- 18 **Append Meal to Sheets** Google Sheets *Service*
- 19 **Read Today's Total from Sheets** Google Sheets *Service*
- 20 **Compute Daily Calorie Total** Code *Logic*
- 21 **If Over Calorie Limit** If *Logic*
- 22 **Send Calorie Warning via LINE** Http Request *Service*
- 23 **Send Nutrition Info via LINE** Http Request *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 23, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets account, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

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%2Flog-meal-nutrition-from-line-food-photos-to-google-sheets)
- **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.

[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)
- [**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)
- [**Track menu cost ratios from delivery-note photos with Gemini** 23 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/track-menu-cost-ratios-from-delivery-note-photos-with-gemini)
- [**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)
