Latenode

Automate Telegram nutrition tracking and meal logs in Google Sheets

This Latenode automation template creates a Telegram-based nutrition assistant that allows users to log their meals and track their nutrition. The system integrates with Google Sheets to store user profiles and meal logs, while utilizing the Gemini AI service for natural language processing and report generation.

Users can interact with the bot by sending text, voice, or image messages to log their meals, and the system will automatically calculate and store the nutritional information. The automation also provides personalized daily reports with progress tracking against the user's calorie and protein targets.

Updated Apr 2, 2026Est. run: 18sEst. cost: $0.0011
How Latenode estimates time and cost

Latenode bills workflow runs in credits: 1 credit = 30 seconds of processing. Minimum charge per run depends on your plan. 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 credits work →
AI agents & chatbots

Workflow preview

What this template does

  • Enables users to log meals and track nutrition via Telegram
  • Leverages Gemini AI for natural language processing of meal entries
  • Stores user profiles and meal logs in a Google Sheets database
  • Automatically calculates and records nutritional information for each meal
  • Generates personalized daily reports with progress tracking against calorie and protein targets

How it works

1
Trigger

Telegram Trigger

The automation starts by listening for incoming messages from Telegram users. When a user sends a text, voice, or image message to the Telegram bot, it triggers the workflow.

2
Logic

Input Message Router

The system determines the type of the incoming message (text, voice, or image) and routes it to the appropriate processing step.

3
Action

Download Voice Message

If the user sends a voice message, the system downloads the audio content from the Telegram message.

4
AI

Analyze Voice Message

The downloaded voice message is then processed using the Gemini AI service to extract the meal details from the user's input.

5
Action

Typing...

While the system is processing the user's message, it sends a 'typing' status to Telegram to provide a visual indication that the bot is working on the request.

6
Action

Registered?

The system checks if the user is already registered in the Google Sheets database. If the user is not registered, the system will create a new user profile.

7
Action

Register User

If the user is not registered, the system creates a new user profile in the Google Sheets database to store the user's information and meal logs.

8
Action

Get User Info

The system retrieves the user's profile data from the Google Sheets database, including their calorie and protein targets, to provide personalized daily reports and progress tracking.

Setup guide

1

Add Telegram Bot API Credential

Add your Telegram Bot API token as a credential in the Latenode Credentials panel. This allows the Telegram trigger node to receive messages from your bot.

2

Configure Telegram Bot Trigger

In the Latenode visual builder, add a Telegram Trigger node and select the Telegram credential you created in the previous step. This will listen for incoming messages to your Telegram bot.

3

Add Google Sheets API Credential

Add your Google Sheets API credentials (client ID and client secret) as a credential in the Latenode Credentials panel. This allows the workflow to interact with your Google Sheets data.

4

Configure Google Sheets Nodes

In the Latenode visual builder, add Google Sheets nodes to your workflow and select the Google Sheets credential you created. Use these nodes to read and write data to your Google Sheets 'Profile' and 'Meals' tables.

5

Add Gemini AI Credential

Add your Gemini AI service credentials as a credential in the Latenode Credentials panel. This allows the workflow to use the Gemini AI service for natural language processing and image analysis.

6

Configure Gemini AI Nodes

In the Latenode visual builder, add Gemini AI nodes to your workflow and select the Gemini AI credential you created. Use these nodes to analyze user messages and extract meal details.

Requirements

Create a Telegram bot and obtain the bot token
Set up a Google Sheets account and create a new spreadsheet to store user profiles and meal logs
Obtain API credentials for the Gemini AI service to enable natural language processing and report generation
Configure the Latenode workspace with the necessary integration nodes (Telegram, Google Sheets, Gemini AI)

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.

More templates

You might also like

Browse all templates →
AI agents & chatbots

Transcribe Google Drive audio to text and send via email

This automation template helps users transcribe audio files stored in their Google Drive using the OpenAI Whisper AI model, and then automatically deliver the transcribed text via email. It provides a convenient way to convert audio recordings into text-based content that can be easily shared and referenced. The workflow is manually triggered, requiring the user to specify the Google Drive folder containing the audio files. The template then retrieves the files, transcribes them using the OpenAI Whisper API, and constructs an email message with the transcribed text, which is then sent to the designated recipient.

8s$0.0005
AI agents & chatbots

Automate Google Ads creation within Google Sheets using OpenAI ChatGPT

This automation allows marketing teams to generate high-performing Google Ads copy directly within Google Sheets. By integrating with the OpenAI API, the workflow can fetch product data from a Google Sheet and use the ChatGPT language model to automatically generate relevant ad headlines and descriptions. The generated ad copy is then pushed directly to a linked Google Ads account, streamlining the process of creating and updating Google Ads campaigns across multiple products or offerings. This solution aims to help marketing teams scale their ad copywriting efforts while maintaining quality and relevance.

19s$0.0012
AI agents & chatbots

Automate personalized Spotify playlists from text prompts

This AI DJ automation uses GPT-4 to interpret a user's text prompt, then leverages the Linkup web search API to curate a personalized Spotify playlist based on the request. The workflow automatically creates the playlist in the user's Spotify account and redirects them directly to the completed playlist, providing a seamless end-to-end experience. The AI agent analyzes the user's prompt, selects relevant tracks, and populates the playlist, handling everything from understanding vague prompts to generating high-quality song suggestions. This automation enables users to easily create customized Spotify playlists without the manual effort of searching for and compiling songs.

19s$0.0012