N8N Insiders
Back to Templates
AI & Automation

Nutrition tracker & meal logger with Telegram, Gemini AI and Google Sheets

Nutrition tracker & meal logger with Telegram, Gemini AI and Google Sheets
Template Info
CategoryAI & Automation
Documentation

πŸ€–πŸ₯— Telegram Nutrition AI Assistant (Alternative to Cal AI App)

> AI-powered nutrition assistant for Telegram β€” log meals, set goals, and get personalized daily reports with Google Sheets integration.

πŸ“‹ Description

This n8n template creates a Telegram-based Nutrition AI Assistant πŸ₯‘πŸ”₯ designed as an open-source alternative to the Cal AI mobile app. It allows users to interact with an AI agent via text, voice, or images to track meals, calculate macros, and monitor nutrition goals directly from Telegram.

The system integrates Google Sheets as the database, handling both user profiles and meal logs, while leveraging Gemini AI for natural conversation, food recognition, and daily progress reports.

✨ Key Features

πŸ’¬ Multi-input support: Text, voice messages (transcribed), and food images (AI analysis). πŸ“Š Macro calculation: Automatic estimation of calories, proteins, carbs, and fats. πŸ“ User-friendly registration: Simple onboarding without storing personal health data (no weight/height required). 🎯 Goal tracking: Users can set and update calorie and protein targets. πŸ“ˆ Daily reports: Personalized progress messages with visual progress bars. πŸ—‚ Google Sheets integration:

Profile table for user targets. Meals table for food logs. πŸ”„ Advanced n8n nodes: Includes use of Merge, Subworkflow, and Code nodes for data processing and report generation.

πŸ’‘ Acknowledgment

Inspired by the Cal AI concept πŸ’‘ β€” this template demonstrates how to reproduce its main functionality with n8n, Telegram, and AI agents as a flexible, open-source automation workflow.

🏷 Tags

telegram ai-assistant nutrition meal-tracking google-sheets food-logging voice-transcription image-analysis daily-reports n8n-template merge-node subworkflow-node code-node telegram-trigger google-gemini

πŸ’Ό Use Case

Use this template if you want to:

πŸ₯— Log meals using text, images, or voice messages. πŸ“Š Track nutrition goals (calories, proteins) with daily progress updates. πŸ€– Provide a chat-based nutrition assistant without building a full app. πŸ—‚ Store structured nutrition data in Google Sheets for easy access and analysis.

πŸ’¬ Example User Interactions

πŸ“Έ User sends a photo of a meal β†’ AI analyzes the food and logs calories/macros. 🎀 User sends a voice message β†’ AI transcribes and logs the meal. ⌨️ User types β€œreport” β†’ AI returns a daily nutrition summary with progress bars. πŸ₯… User says β€œupdate my protein goal” β†’ AI updates profile in Google Sheets.

πŸ”‘ Required Credentials

Telegram Bot API (Bot Token) Google Sheets API credentials AI Provider API (Google Gemini or compatible LLM)

βš™οΈ Setup Instructions

  1. πŸ—‚ Create two Google Sheets tables:

Profile: User_ID, Name, Calories_target, Protein_target Meals: User_ID, Date, Meal_description, Calories, Proteins, Carbs, Fats 2. πŸ”Œ Configure the Telegram Trigger with your bot token. 3. πŸ€– Connect your AI provider credentials (Gemini recommended). 4. πŸ“‘ Connect Google Sheets with your credentials. 5. ▢️ Deploy the workflow in n8n. 6. 🎯 Start interacting with your nutrition assistant via Telegram.

πŸ“Œ Extra Notes

🟩 Green section: Handles Telegram trigger and user check. πŸŸ₯ Red section: Registers new users and sets goals. 🟦 Blue section: Processes text, voice, and images. 🟨 Yellow section: Generates nutrition reports. πŸŸͺ Purple section: Main AI agent controlling tools and logic.

πŸ’‘ Need Assistance?

If you’d like help customizing or extending this workflow, feel free to reach out:

πŸ“§ Email: johnsilva11031@gmail.com πŸ”— LinkedIn: [John Alejandro Silva RodrΓ­guez]

Nutrition tracker & meal logger with Telegram, Gemini AI and Google Sheets | N8N Insiders