Log Food Calories from Images to Google Sheets using LINE and OpenAI Vision

Nodes

24e3b914-15fa-444f-80e3-ca29bdacaf40eb4d7d31-2fbb-4c15-b894-0022be7a4ecf2e3e39e3-0e17-4fae-9ac5-9ee31f9711edbd79094e-5967-4692-8dc9-207cbfbe889a+4

Created by

kokote2

Last edited 58 days ago

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 model, estimates calories (only if the image contains food), and formats the result into JSON.

Detected dishes and calories are appended to a Google Sheet, and a confirmation message is sent back to the user via LINE.

Key Features:

Integrates LINE Messaging API webhook with n8n

Uses OpenAI Vision to detect food and estimate calories

Automatically logs results into Google Sheets

Sends real-time feedback to the LINE user

How to use:

Set up a LINE Messaging API channel and get your channel access token.

Add your OpenAI API credentials in n8n.

Replace placeholders for {channel access token}, {your id}, and Google Sheet IDs with your own.

Activate the workflow and send a food image or text message to your LINE bot.

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!