Track food calories via Telegram with GPT-4 Vision and Google Sheets
Workflow preview
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER
Early Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
Important notice
This workflow is provided as-is. Please review and test before using in production.
Overview
This workflow enables users to submit food images to a Telegram bot, which uses OpenAI’s GPT-4 Vision to identify the item and estimate its caloric value. The results are stored in Google Sheets and sent back to the user.
What it does:
- Triggers on a photo sent via Telegram.
- Acknowledges the user with a sticky note message.
- Downloads the image file securely using Telegram's API.
- Sends the image to GPT-4 Vision with a prompt: “Describe this food and estimate its calories.”
- Logs the GPT response to a Google Sheet (with timestamp).
- Replies to the user with the result (e.g., food name and estimated calories).
Use cases:
- Personal food tracking
- Nutrition logging via chat
- Meal journaling for fitness or health
Requirements:
- Telegram Bot Token (via credentials)
- OpenAI GPT-4 Vision access
- Google Sheets credential with access to the target sheet
Notes:
- You can extend this template to calculate daily totals, categorize meals (breakfast/lunch/dinner), or even integrate with calorie goals.
- The sticky note node confirms receipt to enhance UX.
- Ideal for wellness apps, chat-based food journals, or AI-powered health bots.