Latenode

Telegram-powered AI assistant syncs meals to Google Sheets

This template starts when your Telegram bot receives a meal message. JavaScript treats it as text, a photo, or a voice note. Voice is transcribed with Latenode speech-to-text.

ChatGPT extracts the meal, portions, and macros, then Google Sheets appends a row. Telegram sends a short confirmation back. Connect Telegram and Google Sheets. Put the bot token on the Telegram connection. ChatGPT and speech-to-text are Latenode AI steps.

Updated Sep 16, 2026Est. run: 1m 21sEst. cost: $0.0051
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Logs meals from Telegram text, photos, and voice notes
  • Transcribes voice with Latenode speech-to-text
  • Writes meal fields with ChatGPT
  • Keeps a Google Sheets food log

How it works

1
Trigger

Catch the Telegram message

The scenario starts when someone sends a meal note to the Telegram bot you connect.

2
Logic

Read text, photo, or voice

JavaScript keeps the text, downloads a photo, or sends a voice note through speech-to-text.

3
AI

Extract the meal

ChatGPT returns meal name, portions, calories, and macros from that input.

4
Action

Log and reply

Google Sheets appends the row. Telegram sends a short confirmation in the same chat.

Setup guide

1

Connect Telegram

Add a Telegram connection and paste your bot token there. Add a trigger for new updates on that bot.

2

Connect Google Sheets

Add a Google Sheets connection. Use a tab with columns for time, meal, calories, protein, carbs, and fat.

3

Wire speech-to-text and ChatGPT

Download photos from Telegram. Transcribe voice with Latenode speech-to-text. Send text, transcript, or photo to ChatGPT for the meal fields. ChatGPT and speech-to-text are Latenode AI steps.

4

Append the row and reply

Map ChatGPT fields onto a Google Sheets row. Send a confirmation in Telegram.

Requirements

A Telegram bot token stored on the Telegram connection
A Google Sheet Latenode can append meal rows to
ChatGPT and speech-to-text available as Latenode AI steps

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work. Plug-and-Play AI nodes are billed separately.