← Back to directory
Personal Life Medium to set up AI workflow Custodial/Maintain State

Telegram Nutrition Tracker & Meal Logger

Source reviewed Updated 2026-07-07

Log meals via text or image in Telegram to auto-calculate macros and track goals against a daily progress report.

What it does

Log your meals instantly via text, voice messages, or photos directly from Telegram without needing a dedicated app. Automatically calculate calories and macros while tracking your personalized nutrition goals in real time. Receive daily progress summaries with visual updates sent straight to your chat.

Step by step

  1. Set up a Telegram bot to listen for incoming photos and text messages containing meal descriptions.
  2. Configure a webhook handler to forward raw message payloads from Telegram to your backend code immediately upon receipt.
  3. Implement a script that parses the received JSON data, extracts the user ID and meal content, then formats it for the API call.

Where the LLM does the work

  • Prompt Google Gemini to analyze uploaded food images or text descriptions to estimate calorie counts and macronutrient breakdowns.
  • Instruct the model to compare the calculated nutrition values against the user's specific daily goals stored in their profile.
  • Ask the LLM to generate a concise, encouraging summary of the day's progress tailored to the user's tone preferences.

Watch out for

Image recognition often fails on blurry or dark photos, so add a validation step that asks users to retake the picture if confidence is low.
Nutrition estimates vary significantly between different food brands and cooking methods, so include a disclaimer in every summary about potential inaccuracies.
Google Sheets quotas can be exceeded by frequent writes from high-volume bots, so batch updates into hourly summaries instead of real-time entries.
Voice-to-text transcripts frequently mishear specific food names like 'oatmeal' or 'broccoli', so run a secondary spell-check pass before calculating macros.

Tools that fit

Telegram Service receiving user inputs like text, voice, or images
Google Gemini Chat Model LLM analyzing food images and transcribing voice messages
Google Sheets Service storing user profiles and meal logs
Code API processing data for daily reports

The agent brief

Everything your agent needs, including the gotchas. Copy it and go.
agent-brief.md
You are helping me build the following AI agent workflow.

## Goal
Telegram Nutrition Tracker & Meal Logger: Log meals via text or image in Telegram to auto-calculate macros and track goals against a daily progress report.

## Specification
- What it does: Log your meals instantly via text, voice messages, or photos directly from Telegram without needing a dedicated app. Automatically calculate calories and macros while tracking your personalized nutrition goals in real time. Receive daily progress summaries with visual updates sent straight to your chat.
- Trigger: Triggered by an event (Event · on new Telegram message)
- Autonomy: Fully hands-off
- Expected setup effort: about an afternoon
- Tools/services involved:
  - Telegram: receiving user inputs like text, voice, or images
  - Google Gemini Chat Model: analyzing food images and transcribing voice messages
  - Google Sheets: storing user profiles and meal logs
  - Code: processing data for daily reports

## Known pitfalls, handle each one explicitly in your implementation
1. Image recognition often fails on blurry or dark photos, so add a validation step that asks users to retake the picture if confidence is low.
2. Nutrition estimates vary significantly between different food brands and cooking methods, so include a disclaimer in every summary about potential inaccuracies.
3. Google Sheets quotas can be exceeded by frequent writes from high-volume bots, so batch updates into hourly summaries instead of real-time entries.
4. Voice-to-text transcripts frequently mishear specific food names like 'oatmeal' or 'broccoli', so run a secondary spell-check pass before calculating macros.

## Reference implementation
https://n8n.io/workflows/7756 (workflow template)
Fetch and inspect this before building. If it matches my stack, adapt it;
if not, rebuild the pattern with my tools.

## Process requirements
1. Before building: ask me which of the listed tools I actually use and
   what my platform is (n8n / Make / code / other). Do not assume.
2. Adapt the pattern to my answers; do not force the reference stack.
3. Address every pitfall above; tell me how you handled each.
4. Provide a test plan I can run before letting this touch real data.
5. Ask before any step that sends messages, modifies data, or spends money.

Source: https://usecasesforagents.com/use-case/telegram-nutrition-tracker-meal-logger/ via usecasesforagents.com

Frequently asked questions

Can I use a different Messaging than Telegram?

Yes. Telegram is only the example messaging in this recipe. The same flow works with ClickSend API, Discord, Google Chat and LINE Messaging API. Swap the messaging connection and keep the rest of the setup as written.

Want this running in your business?

This is what I do. I design and build AI agents like this one, and keep them running. If you want it set up for your team instead of doing it yourself, get in touch.
Get in touch →

Who it's for

Built for anyone who wants this off their own plate, no team or company required.

Seen in the wild

← Back to directory