Templates / Log Telegram meal photos and text to Google Sheets with Gemini nutrition analysis

Log Telegram meal photos and text to Google Sheets with Gemini nutrition analysis

Ready for 3.0

by Olly McBride ✓ · 0 views · created 2026-10-20 · Personal Productivity, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 40 nodes and runs on Telegram events (message) (plus 2 other triggers). Along the way it connects Telegram, Google Gemini Chat Model and Google Sheets.

How it runs

Trigger: On Telegram events (message) (plus 2 other triggers).

  1. Config (Edit Fields (Set)): sets 1 field: sheet_id
  2. Config (Every evening at 9pm) (Edit Fields (Set)): sets 1 field: sheet_id
  3. Send error alert to Telegram (Telegram): uses Telegram
  4. Parse message (Code): runs custom JavaScript code
  5. Read everyone's targets (Google Sheets): uses Google Sheets
  6. Route by message type (Switch): routes items into 7 branches
  7. Read all meals (Google Sheets): uses Google Sheets
  8. Download photo from Telegram (Telegram): work with file
  9. Estimate meal from text (Basic LLM Chain): sends a prompt to an LLM, with model: Gemini 3.5 Flash-Lite; output parser: Text nutrition JSON
  10. Read my meals for lookup (Google Sheets): uses Google Sheets

…plus 22 more steps. See the full node list below.

Services it uses

TelegramGoogle Gemini Chat ModelGoogle Sheets

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (12)

From the author

Quick Overview This workflow listens for meal photos sent to a Telegram bot, uses Google Gemini Vision to estimate the dish and nutrition, logs each entry to a Google Sheets food diary, and replies in Telegram with the estimate plus the sender’s running…

Excerpt from Olly McBride's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.