Automation library · Data collection

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.

LargeCalls a model: Gemini

23 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 3Model 4Logic 8Service 8

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

  1. 1Set Config FieldsSetLogic
  2. 2When LINE Event ReceivedWebhookStarts it
  3. 3Gemini Food Analysis ConfigLm Chat Google GeminiModel
  4. 4Weekly 9AM ScheduleSchedule triggerStarts it
  5. 5Gemini Weekly Report ConfigLm Chat Google GeminiModel
  6. 6Send Webhook Response OKRespond To WebhookStarts it
  7. 7If Image MessageIfLogic
  8. 8Create Weekly Comment with LLMChain LlmModel
  9. 9Fetch LINE Image DataHttp RequestService
  10. 10If Report CommandIfLogic
  11. 11Deliver Weekly Report via LINEHttp RequestService
  12. 12Encode Image to Base64CodeLogic
  13. 13Read Weekly Data from SheetsGoogle SheetsService
  14. 14Send Help Reply via LINEHttp RequestService
  15. 15Process Food AnalysisChain LlmModel
  16. 16Summarize Weekly StatsCodeLogic
  17. 17Extract Nutrition DataCodeLogic
  18. 18Append Meal to SheetsGoogle SheetsService
  19. 19Read Today's Total from SheetsGoogle SheetsService
  20. 20Compute Daily Calorie TotalCodeLogic
  21. 21If Over Calorie LimitIfLogic
  22. 22Send Calorie Warning via LINEHttp RequestService
  23. 23Send Nutrition Info via LINEHttp RequestService

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.