Log meal nutrition from LINE food photos to Google Sheets with Gemini AI
Ready for 3.0What this workflow does
This AI workflow has 23 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Google Gemini Chat Model and Google Sheets. It also calls api.line.me over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- If: checks a condition and branches into true / false
- Fetch LINE Image Data (HTTP Request): calls an HTTP API
- If: checks a condition and branches into true / false
- Encode Image to Base (Code): runs custom JavaScript code
- Read Weekly Data from Sheets (Google Sheets): uses Google Sheets
- Send Help Reply via LINE (HTTP Request): calls api.line.me (POST)
- Process Food Analysis (Basic LLM Chain): sends a prompt to an LLM
- Summarize Weekly Stats (Code): runs custom JavaScript code
- Extract Nutrition Data (Code): runs custom JavaScript code
- Create Weekly Comment with LLM (Basic LLM Chain): sends a prompt to an LLM, with model: Gemini Weekly Report Config
…plus 10 more steps. See the full node list below.
Services it uses
Other Google Gemini + Google Sheets templates (819) · Other LINE + Google Sheets templates (33) · Other LINE + Google Gemini templates (25)
HTTP calls to: api.line.me
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 (10)
- Edit Fields (Set)
n8n-nodes-base.set - Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Sheets
n8n-nodes-base.googleSheets - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Log meal nutrition from LINE food photos to Google Sheets using Gemini AI --- Who is this for Health-conscious individuals, people on a diet, and anyone who wants to track daily nutrition without manual data entry. Designed especially for LINE users (Japan,…