Templates / Log food calories from images to Google Sheets using LINE and OpenAI Vision

Log food calories from images to Google Sheets using LINE and OpenAI Vision

Ready for 3.0

by kote2 ✓ · 1,515 views · created 2025-08-11 · Personal Productivity, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 14 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, OpenAI and Google Sheets. It also calls api.line.me over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. user verification (If): checks a condition and branches into true / false
  2. Switch: routes items into 2 branches
  3. only message (Edit Fields (Set)): sets 1 field: text
  4. images download (HTTP Request): calls an HTTP API
  5. AI Agent: runs an AI agent, with model: OpenAI Chat Model; memory: Simple Memory
  6. Analyze image (OpenAI): analyze (image)
  7. send LINE (HTTP Request): calls api.line.me (POST)
  8. Code: runs custom JavaScript code
  9. Code: runs custom JavaScript code
  10. Append row in sheet (Google Sheets): append

…plus 1 more step. See the full node list below.

Services it uses

OpenAI Chat ModelOpenAIGoogle Sheets

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 (11)

From the author

This workflow allows a LINE user to send either text or an image of food to a connected LINE bot. If text is sent, the AI agent responds directly via LINE. If an image is sent, the workflow downloads it from LINE’s API, analyzes it using OpenAI’s Vision…

Excerpt from kote2's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.