Templates / Track food calories via Telegram with GPT-4 Vision and Google Sheets

Track food calories via Telegram with GPT-4 Vision and Google Sheets

Needs changes

by Shiva ✓ · 2,527 views · created 2025-08-05 · Personal Productivity, Multimodal AI

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: Function (legacy), OpenAI (legacy). 2 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 7 nodes and runs on Telegram events (message). Along the way it connects Telegram, Openai and Google Sheets.

How it runs

Trigger: On Telegram events (message).

  1. Sticky Note: Acknowledge (Telegram): uses Telegram
  2. Download Telegram Image (Telegram): download (file)
  3. Prepare Binary Image (Function): runs custom JavaScript (legacy Function node)
  4. GPT-4 Vision Analyze (Openai): uses Openai
  5. Log to Google Sheet (Google Sheets): uses Google Sheets
  6. Send GPT Result (Telegram): uses Telegram

Services it uses

TelegramOpenaiGoogle Sheets

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • Function (legacy) in Prepare Binary Image: replace with Code node, mode 'Run Once for All Items'.
  • OpenAI (legacy) in GPT-4 Vision Analyze: replace with OpenAI node (AI section).

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →

Removed in 3.0Replace with
Function (legacy)
Prepare Binary Image
Code node, mode 'Run Once for All Items'
OpenAI (legacy)
GPT-4 Vision Analyze
OpenAI node (AI section)

Rarely used nodes in this template: n8n-nodes-base.openai

Nodes used (5)

From the author

This workflow enables users to submit food images to a Telegram bot, which uses OpenAI’s GPT-4 Vision to identify the item and estimate its caloric value. The results are stored in Google Sheets and sent back to the user. What it does: 1. Triggers on a photo…

Excerpt from Shiva'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.