Log Food Calories from Images to Google Sheets using LINE and OpenAI Vision
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.
Related Templates
Send structured logs to BetterStack from any workflow using HTTP Request
Send structured logs to BetterStack from any workflow using HTTP Request Who is this for? This workflow is perfect for...
Provide latest euro exchange rates from European Central Bank via Webhook
What is this workflow doing? This simple workflow is pulling the latest Euro foreign exchange reference rates from the E...
Convert Tour PDFs to Vector Database using Google Drive, LangChain & OpenAI
🧩 Workflow: Process Tour PDF from Google Drive to Pinecone Vector DB with OpenAI Embeddings Overview This workflow au...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments