n8nflow.net logo

Snap & Track Nutrition: Telegram Food Photos β†’ Gemini Vision AI β†’ Google Sheets

by Anir Agramβ€’Updated: Last update 3 days agoβ€’Source: n8n.io
Loading workflow viewer...

Getting Started

πŸ“ΈπŸ½οΈ Telegram Food Photo β†’ πŸ€– Gemini Vision AI β†’ πŸ“Š Nutrition Data β†’ πŸ“„ Google Sheets + πŸ—‚οΈ Drive

What this workflow does

  • πŸ“Έ Snap and send a photo of your meal via Telegram
  • 🧠 Gemini Vision AI analyzes the image and estimates calories, protein, carbs, and fats
  • πŸ€– AI Agent structures the data with meal name, description, and timestamp
  • πŸ“„ Auto-logs nutrition data to Google Sheets for tracking
  • πŸ—‚οΈ Saves original meal photos to Google Drive with timestamped filenames
  • πŸ’¬ Sends instant Telegram reply with full nutrition breakdown

Why it's useful

  • ⚑ Track nutrition in secondsβ€”no manual entry or food databases
  • πŸ“Š Build a complete meal history with photos and macros in one place
  • 🎯 AI estimates portion sizes and hidden ingredients (oils, sauces)
  • πŸ‹οΈ Perfect for fitness tracking, meal prep, or health monitoring
  • πŸ“± Works entirely through Telegramβ€”no extra apps needed

How it works

  • πŸ“² Telegram Trigger β†’ receives meal photo
  • πŸ—‚οΈ Google Drive β†’ saves image with timestamp
  • πŸ”Ž Gemini Vision β†’ analyzes food, estimates portions and macros
  • πŸ€– AI Agent β†’ structures output (meal name, calories, protein, carbs, fats)
  • πŸ“„ Google Sheets β†’ appends row with all nutrition data
  • πŸ’¬ Telegram Reply β†’ confirms with full breakdown

What you'll need

  • πŸ€– Telegram Bot token
  • 🧠 Google Gemini API key (includes Vision capabilities)
  • πŸ” Google OAuth for Sheets + Drive
  • πŸ“Š Google Sheet with columns: Meal_Name, Date, Meal_description, Calories, Proteins, Carbs, Fats

Setup steps

  • πŸ”— Connect credentials: Telegram, Google Gemini, Google Sheets, Google Drive
  • πŸ“„ Create Google Sheet with nutrition columns (see format above)
  • πŸ—‚οΈ Create Google Drive folder for meal photos
  • 🧭 Update sheet ID and Drive folder ID in workflow
  • πŸ§ͺ Test: send a meal photo via Telegram and check Sheet + Drive

Customization ideas

  • πŸ“ˆ Daily summary: add scheduled workflow to calculate daily totals
  • 🎯 Goal tracking: set IF conditions to alert when over/under calorie targets
  • πŸ“Š Charts: connect to Data Studio/Looker for visual progress tracking
  • πŸƒ Fitness integration: sync with MyFitnessPal or fitness apps

Who it's for

  • πŸ‹οΈ Fitness enthusiasts tracking macros without manual logging
  • πŸ₯— Meal preppers analyzing portion sizes and nutrition
  • πŸ’ͺ Athletes monitoring calorie and protein intake
  • 🩺 Health-conscious individuals building meal history
  • πŸ‘¨β€πŸ³ Nutritionists collecting client food data

Quick Setup Guide - Before You Start - What You Need:

  • πŸ”— Telegram Bot (create via @BotFather)
  • 🧠 Google Gemini API key with Vision enabled (get it here)
  • πŸ” Google account for Sheets and Drive access
  • πŸ“Š Basic spreadsheet to track your meals

Want help customizing?

πŸ“§ [email protected]
πŸ”— LinkedIn