Track food calories via Telegram with OpenAI vision and Google Sheets
This workflow enables users to submit food images to a Telegram bot, which uses OpenAI’s GPT-4.1 mini to identify the i…
Description
This workflow enables users to submit food images to a Telegram bot, which uses OpenAI’s GPT-4.1 mini 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 Telegram message. Downloads the image file securely using Telegram's API. Sends the image to GPT-4.1 mini 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.1 mini access Google Sheets credential with access to the target sheet. Set its spreadsheet ID and use Timestamp and Estimate as the first two column headers in Sheet1 Notes: You can extend this template to calculate daily totals, categorize meals (breakfast/lunch/dinner), or even integrate with calorie goals. The first Telegram message confirms receipt to enhance UX. Ideal for wellness apps, chat-based food journals, or AI-powered health bots. An n8n automation workflow template by Shiva.
Community Metrics
Author
Shiva
Platform
web
Pricing model
free
Categories
- Automation
- AI
Tags
- n8n
- workflow
- google-sheets
- telegram
- code
- openai
Capabilities
- 4 nodes
- 2,528 views