Skip to main content
Community template Uses AIAI ChatbotMultimodal AI

Nutrition tracker & meal logger with Telegram, Gemini AI and Google Sheets - n8n workflow template

AI-powered nutrition assistant for Telegram — log meals, set goals, and get personalized daily reports with Google Sheets integration. This n8n template creates a Telegram-based Nutrition AI Assistant designed as an open-source alternative to the Cal AI mobile app. It allows…

Template by John Alejandro SIlva · Original listing (opens in a new tab)

Starts on
App event
Nodes
39 nodes
Level
Advanced
Setup
About 27 min

Workflow preview

How this workflow runs

  1. 1

    Get report

    Entry point used when this workflow is executed by another workflow.

  2. 2

    Telegram Trigger

    Starts the workflow when a message is received by the Telegram bot.

  3. 3

    Google Gemini Chat Model

    Provides Google Gemini as the chat model for the AI steps.

  4. 4

    Simple Memory

    Gives the AI short-term conversational memory of recent messages.

  5. 5

    Google Gemini Chat Model1

    Provides Google Gemini as the chat model for the AI steps.

  6. 6

    Simple Memory1

    Gives the AI short-term conversational memory of recent messages.

  7. 7

    Register User

    Lets the AI agent read from or write to Google Sheets as a callable tool.

  8. 8

    Update Profile Data

    Lets the AI agent read from or write to Google Sheets as a callable tool.

  9. 9

    Get Profile Data

    Lets the AI agent read from or write to Google Sheets as a callable tool.

  10. 10

    Get Report

    Exposes another n8n workflow to the AI agent as a callable tool.

Creator's notes and setup

Written by John Alejandro SIlva for the original listing.

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
  1. Configure the Telegram Trigger with your bot token.
  2. Connect your AI provider credentials (Gemini recommended).
  3. Connect Google Sheets with your credentials.
  4. ▶ Deploy the workflow in n8n.
  5. 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:
LinkedIn: [John Alejandro Silva Rodríguez](

n8n nodes used (14 types)

What every node does (39)
  • Download Voice Message (Telegram)Sends or receives messages through a Telegram bot.
  • Input Message Router1 (Switch)Routes the workflow down one of several paths based on a value.
  • get_message (text) (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • Download IMAGE (Telegram)Sends or receives messages through a Telegram bot.
  • Analyze image (Google Gemini)Calls Google Gemini for text, vision, or audio generation.
  • Analyze voice message (Google Gemini)Calls Google Gemini for text, vision, or audio generation.
  • get_message (Audio/Video message) (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • get_message (Media message) (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • Typing… (Telegram)Sends or receives messages through a Telegram bot.
  • Fix mime (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • Fix mime5 (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • get_error_message1 (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • Send a text message (Telegram)Sends or receives messages through a Telegram bot.
  • Google Gemini Chat Model (LLM Chat Google Gemini)Provides Google Gemini as the chat model for the AI steps.
  • Simple Memory (Memory Buffer Window)Gives the AI short-term conversational memory of recent messages.
  • MarkdownV2 (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • If (If)Branches the workflow based on a true/false condition.
  • Registered? (Google Sheets)Reads from or writes rows to a Google Sheets spreadsheet.
  • Send a text message1 (Telegram)Sends or receives messages through a Telegram bot.
  • Google Gemini Chat Model1 (LLM Chat Google Gemini)Provides Google Gemini as the chat model for the AI steps.
  • Simple Memory1 (Memory Buffer Window)Gives the AI short-term conversational memory of recent messages.
  • MarkdownV (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • Get Meals Info (Google Sheets)Reads from or writes rows to a Google Sheets spreadsheet.
  • Get User Info (Google Sheets)Reads from or writes rows to a Google Sheets spreadsheet.
  • get_message (register) (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • Register User (Google Sheets Tool)Lets the AI agent read from or write to Google Sheets as a callable tool.
  • Register Agent (Agent)The AI agent that orchestrates the workflow — it reasons over the input and decides which tools to call.
  • Cal IA Agent (Agent)The AI agent that orchestrates the workflow — it reasons over the input and decides which tools to call.
  • Update Profile Data (Google Sheets Tool)Lets the AI agent read from or write to Google Sheets as a callable tool.
  • Get Profile Data (Google Sheets Tool)Lets the AI agent read from or write to Google Sheets as a callable tool.
  • Get Report (Tool Workflow)Exposes another n8n workflow to the AI agent as a callable tool.
  • Append Meal Data (Google Sheets Tool)Lets the AI agent read from or write to Google Sheets as a callable tool.
  • Get Data (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • Get chart message (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • Unify data (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • Get report (Execute Workflow Trigger)Entry point used when this workflow is executed by another workflow.
  • Send back message (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • Telegram Trigger (Telegram Trigger)Starts the workflow when a message is received by the Telegram bot.
  • Merge (Merge)Combines data from multiple branches back into a single stream.

FAQ

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

How do I import the "Nutrition tracker & meal logger with Telegram, Gemini AI and Google Sheets" workflow into n8n?

Copy the workflow JSON from this page, open the n8n editor, click on an empty canvas and paste with Ctrl+V (Cmd+V on macOS). You can also download the .json file and choose Import from File in the workflow menu. Save the workflow, then attach credentials before activating it.

Which nodes and credentials does "Nutrition tracker & meal logger with Telegram, Gemini AI and Google Sheets" use?

It uses Google Sheets, If, Merge, Set, Telegram and Telegram Trigger, plus 8 more. Any node that connects to an external service needs your own credential — open each node after import and select or create one. Trigger, logic and transformation nodes usually need no credentials.

Can it run on n8n Cloud and on self-hosted n8n?

The workflow format is the same on both. If a node appears as unknown or outdated after import, update n8n to a recent version or, on self-hosted instances, install the required community node package. Features such as $env access are available on self-hosted instances only.

How can I customise "Nutrition tracker & meal logger with Telegram, Gemini AI and Google Sheets"?

Start by changing the trigger (schedule, webhook or app event) and the destination nodes to match your stack — it is listed under AI Chatbot, Multimodal AI. Edit prompts, field mappings and filters in the relevant nodes, use expressions like {{ $json.field }} to map data, and test with a manual execution before activating.

n8n is a trademark of n8n GmbH. AltFTool is not affiliated with, endorsed by or sponsored by n8n. Community templates are credited to their creators and link to the original listing; AltFTool originals are written and tested by the AltFTool team.

About this page

Free n8n workflow templates to copy and import

The AltFTool n8n library collects free n8n workflow templates for AI agents, Gmail, Google Sheets, Telegram and other apps. Each workflow page shows a preview, the list of nodes and the credentials it needs, and lets you copy or download the JSON to import into your own n8n.

Search the templates by app or task, or browse them by category and by node. The Workflow Inspector checks any workflow JSON for triggers, credentials and hardcoded keys before you share it, and the expressions cheat sheet gives copy-paste n8n expression examples. AltFTool is not affiliated with n8n.

People also search for

  • n8n workflow templates
  • n8n templates
  • n8n automation examples
  • n8n json workflows
  • n8n nodes
  • free n8n workflow templates
  • n8n ai agent template
  • n8n expressions cheat sheet