Latenode

Telegram-powered AI assistant syncs meals to Google Sheets

This n8n automation template creates a Telegram-based AI assistant that allows users to easily log their meals, track nutrition, and get personalized daily reports. By integrating with Google Sheets, the solution stores the user's meal data and provides detailed analytics.

Users can interact with the AI agent through text, voice, or image inputs to record their meals, which are then processed using the Google Gemini language model. The template is designed as an open-source alternative to similar commercial nutrition tracking apps, providing an AI-powered solution for health-conscious users who prefer to manage their data within the Telegram messaging platform.

Updated Apr 6, 2026Est. run: 25sEst. cost: $0.05
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

  • Extracts users' meal data from Telegram messages using Gemini AI language processing
  • Normalizes the meal data and stores it in a Google Sheets spreadsheet
  • Provides users with personalized daily nutrition reports based on their logged meals
  • Allows users to interact with the AI assistant via text, voice, or image inputs
  • Stores the user's meal data in a spreadsheet for detailed analytics and tracking

How it works

1
Trigger

Receive Telegram Message

The automation is triggered whenever a user sends a message to the Telegram-based AI assistant. The system listens for incoming Telegram messages and extracts the relevant information, such as the message type (text, image, or voice), the message content, and the user's Telegram ID.

2
Logic

Route Message Based on Type

The system then routes the incoming message based on its type. If the message is text, the system extracts the text content. If the message is an image, the system downloads the image. If the message is a voice recording, the system extracts the audio content.

3
AI

Analyze Text, Image, and Voice

The extracted text, image, and voice data are then sent to the Google Gemini language model for analysis. Gemini processes the user's input and extracts relevant information, such as the meal details, nutritional information, and user preferences.

4
Logic

Check User Registration Status

The system then checks whether the user is already registered in the system. If the user is not registered, the system extracts the user's registration request from the Telegram message and adds the new user to the Google Sheets user profile.

5
Action

Retrieve User Data

Once the user is registered or identified, the system retrieves the user's meal logs and profile data from the Google Sheets spreadsheet. This includes the user's previous meal entries and any personalized settings or preferences.

6
AI

Generate Personalized Response

Using the user's input and their stored data, the system generates a personalized response using the Google Gemini language model. This response may include a summary of the user's meal log, suggestions for nutrition improvements, or a daily report on the user's caloric intake and macronutrient balance.

7
Action

Send Response to User

The generated response is then sent back to the user through the Telegram messaging platform. The user can view the response, which may include text, images, or even voice messages, and continue the conversation with the AI assistant.

8
Action

Store Meal Data

If the user logs a new meal, the system stores the meal data in the Google Sheets spreadsheet, updating the user's meal history and nutrition tracking.

9
Action

Send Daily Report

At the end of each day, the system generates a personalized daily report for the user based on their meal logs and nutrition data. This report is then sent back to the user through the Telegram messaging platform, providing them with a summary of their daily nutritional intake and any recommendations for improvement.

Setup guide

1

Add Telegram Bot Credential

1. In the Latenode Credentials panel, add a new credential for the Telegram integration. 2. Enter your Telegram bot token and other required details to authenticate the bot.

2

Configure Google Sheets Integration

1. In the Latenode Credentials panel, add a new credential for the Google Sheets integration. 2. Authorize Latenode to access your Google account and select the Google Sheets document and worksheet you want to use for storing the meal data.

3

Set up Google Gemini AI Model

1. In the Latenode Credentials panel, add a new credential for the Google Gemini integration. 2. Provide the necessary details, such as the model ID, to connect Latenode to the Google Gemini language model for meal analysis.

4

Map Telegram Message Fields

1. In the Telegram trigger node settings, map the incoming message fields (text, voice, image) to the corresponding data fields in the workflow.

5

Configure Google Sheets Data Operations

1. In the Google Sheets nodes, specify the sheet name, column mappings, and other settings to correctly store the user's meal data and profile information.

Requirements

A Telegram bot API token to enable users to interact with the AI assistant through the Telegram messaging platform
Access to the Google Sheets API to store the user's meal data and provide detailed nutrition analytics
The ability to use the Google Gemini language model to process user inputs (text, voice, or images) and extract relevant meal information
An Apify account and access token to enable the headless browser integration for scraping website content (if the workflow uses Apify for this purpose)

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

Automate Slack messaging with OpenAI GPT-3 completions

This automation allows users to automatically generate and send Slack messages based on specific prompts or triggers, leveraging the power of OpenAI's GPT-3 API. The automation is designed for AI, agents, and chatbot enthusiasts who want to create dynamic and personalized Slack communications without manual intervention. The automation connects to the Slack API and OpenAI's GPT-3 API to generate and send messages in response to defined triggers, such as specific keywords or phrases. This can be useful for automating routine updates, responding to customer inquiries, or generating creative content for Slack channels.

26s$0.0703
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 copywriting across multiple campaigns

This automation solution allows users to generate Google Ads headlines and descriptions directly within Google Sheets, using the OpenAI API to automate the ad copywriting process across multiple campaigns. The tool streamlines ad creation by leveraging AI-powered text generation, enabling marketers to efficiently produce high-performing ad copy at scale. By integrating with Google Sheets and the OpenAI API, this solution simplifies the ad creation workflow, saving time and improving campaign performance.

26s$0.0703