Reward kids’ clean plates with LINE, Google Gemini and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Gemini and Google Sheets. It also calls api.line.me over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Config (Edit Fields (Set)): sets 5 fields: LINE_CHANNEL_ACCESS_TOKEN, GOOGLE_SHEETS_ID, CHILD_NAME…
- Check message type (If): checks a condition and branches into true / false
- Download image from LINE (HTTP Request): calls an HTTP API
- Reply to non-photo message (HTTP Request): calls api.line.me (POST)
- Judge clean plate with Gemini (Google Gemini): analyze (image)
- Parse judgement (Edit Fields (Set)): sets or maps fields
- Read past records (Google Sheets): uses Google Sheets
- Calculate stamps and streak (Code): runs custom JavaScript code
- Save today's record (Google Sheets): append
- Reply with praise (HTTP Request): calls api.line.me (POST)
Services it uses
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.
Nodes used (7)
- Edit Fields (Set)
n8n-nodes-base.set - Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code
From the author
Quick overview Turn the daily "please finish your food" struggle into a game. A parent sends a photo of the plate after a meal, Google Gemini scores how much was eaten, and the child gets an encouraging message with a stamp card and a streak toward the next…