Block 1 - Switch
- Type / Role
- n8n-nodes-base.switch - switch
- Config choices
- Version 3.2
This workflow is provided as-is. Please review and test before using in production.
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 downloa...
n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.code, n8n-nodes-base.googlesheets
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by kote2.
Original n8n.io sourceThis 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.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Log food calories from images to Google Sheets using LINE and OpenAI Vision |
|---|---|
| Complexity | advanced |
| Nodes | 17 |
| Categories | Personal Productivity, Multimodal AI |
| Author | kote2 |
| Published | 11 Aug 2025 |
Use the JSON export at /data/workflows/7228/7228.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 downloa...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity, Multimodal AI use case.