Log meal nutrients from Telegram to Google Sheets using an AI ag
Who is this for? This workflow is ideal for individuals focused on nutrition tracking, meal planning, or diet optimization—whether you’re a health-conscious ...
🔌 Nodes & Integrations Used (9)
📖 Implementation & Setup Guide
Who is this for?
This workflow is ideal for individuals focused on nutrition tracking, meal planning, or diet optimization—whether you’re a health-conscious individual, fitness coach, or developer working on a healthtech app. It also fits well for anyone who wants to capture their meal data via voice or text, without manually entering everything into a spreadsheet.
What problem is this workflow solving?
Manually logging meals and breaking down their nutritional content is time-consuming and often skipped. This workflow automates that process using Telegram for input, OpenAI for natural language understanding, and Google Sheets for structured tracking. It enables users to record meals by typing or sending voice messages, which are transcribed, analyzed for nutrients, and automatically stored for tracking and review.
What this workflow does This n8n automation lets users send either a text or voice message to a Telegram bot describing their meal. The workflow then: 1. Receives the Telegram message 2. Checks if it’s a voice message • If yes: Downloads the audio file and transcribes it using OpenAI • If no: Uses the text input directly 3. Sends the meal description to OpenAI to extract a structured list of ingredients and nutritional details 4. Parses and stores the results in Google Sheets 5. Responds via Telegram with a personalized confirmation message
A testing interface also allows you to simulate prompts and view structured outputs for development or debugging.
Setup 1. Create a Telegram bot via BotFather and note the API token. 2. Create an empty Google Sheet and store the sheet ID in the environment. 3. Set up your OpenAI credentials in the n8n credential manager. 4. Customize the “List of Ingredients and Nutrients” node with your prompt if needed. 5. (Optional) Use the “Testing” section to simulate messages and refine outputs before going live.
How to customize this workflow to your needs • Enhance prompts in the OpenAI node to improve the structure and accuracy of responses. • Add new fields in the Google Sheet and corresponding logic in the parser if you want more detail. • Adjust the Telegram response to provide motivational feedback, dietary tips, or summaries. • Upgrade to the “Pro” version mentioned in the contact section for USDA database integration and complete nutrient breakdowns.
This is a lightweight, AI-powered meal logging automation that transforms voice or text into actionable nutrition data—perfect for making healthy eating easier and more data-driven.
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Log_meal_nutrients_from_Telegram_to_Google_Sheets_using_an_AI_ag.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related AI Agents Workflows
View All in AI Agents →5 ways to process images PDFs with Gemini AI in n8n
How it works Many users have asked in the support forum about different methods to analyze images and PDF documents with Google Gemini AI in n8n. This workfl...
7 AI Sales Assistant
Production-ready n8n automation template for 7 AI Sales Assistant built by AhiXLight. Seamlessly connects Airtop Tool, Slack, Airtop with 24 configured nodes.
AAVE portfolio professional AI agent Telegram Email GPT 4o
A next-generation AI-powered DeFi health monitor that tracks wallet positions across Aave V3 using GPT-4o and LangChain. It delivers human-readable reports v...
Access control for AI agents RBAC using Airtable and Telegram
Purpose This workflow allows granular control over the access to tools connected to AI Agents (including Multi-Agent setups) using Role Based Access Control....