AI-Powered Nutrition Analysis from Voice or Text
detail.loadingPreview
Effortlessly track your nutrition with our AI-powered workflow. Simply send a voice message or text about your meal, and get a detailed breakdown of calories, macronutrients, and micronutrients. All your data is automatically logged for easy review.
About This Workflow
This n8n workflow revolutionizes personal nutrition tracking by leveraging the power of AI. Users can interact with the system via Telegram, sending either a voice recording of their meal description or a text message. The workflow intelligently processes this input, transcribing voice messages and then utilizing an advanced OpenAI language model (GPT-4o-mini) to analyze the nutritional content. It identifies and quantifies key components like protein, carbohydrates, fats, and essential electrolytes, providing a structured JSON output. The system is designed to handle variations in input and provides a detailed breakdown, even including reasoning behind its estimations. Finally, this valuable nutritional data is conveniently stored in a Google Sheet for ongoing analysis and monitoring.
Key Features
- Voice and Text Input: Accepts meal information via both spoken word and typed messages through Telegram.
- Advanced AI Analysis: Employs OpenAI's GPT-4o-mini model for accurate nutritional estimations.
- Detailed Nutritional Breakdown: Provides quantities for calories, protein, carbohydrates, lipids, and key electrolytes (sodium, potassium, magnesium, zinc, iron).
- Structured Data Output: Delivers results in a clear JSON format, ideal for further processing.
- Automated Data Logging: Seamlessly stores all analyzed nutritional data in a Google Sheet.
How To Use
- Set up Telegram Integration: Configure the
Receive Telegram messagenode with your bot token to receive messages. - Handle Voice Input: Use the
If it's a voice messagenode to differentiate between text and voice. If it's voice, theGet Audio Filenode retrieves the audio, andTranscribe Recordingconverts it to text. - Prepare Chat Input: Use the
Set chatInput from messageorSet chatInput from voicenodes to store the transcribed or text message into a variable namedchatInput. - AI Nutritional Analysis: The
List of Ingredients and nutrientsnode takes thechatInputand prompts the OpenAI model to estimate nutritional values, outputting a JSON. - Parse Structured Output: The
Structured Output Parsernode ensures the AI's output conforms to the desired JSON schema. - Process Output: The
Explode the listnode unpacks the JSON array into individual items. - Add Timestamp: The
Add datecode node appends a date to each nutritional entry. - Store Data: The
Store in sheetnode connects to your Google Sheet and appends the analyzed nutritional data, ready for your review.
Apps Used
Workflow JSON
{
"id": "5bbb3d67-2d04-4399-9bd1-3115b4e36e47",
"name": "AI-Powered Nutrition Analysis from Voice or Text",
"nodes": 29,
"category": "Marketing",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 5bbb3d67-2d04...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Automate LinkedIn Content Promotion for Your Ghost Blog with AI
Effortlessly promote your latest Ghost blog posts on LinkedIn. This workflow leverages AI to generate engaging, professional LinkedIn messages based on your article content and saves them, along with article metadata, directly to a Google Sheet.
AI-Powered On-Page SEO Audit & Report Automation
Instantly generate comprehensive on-page SEO technical and content audits for any website URL. This AI-powered workflow automates the entire process, from scraping the page to delivering a detailed report directly to your inbox, empowering you to optimize for better search rankings and user engagement.
AI-Powered Instagram Comment Automation
This n8n workflow intelligently automates responses to Instagram comments, leveraging advanced AI to engage with your audience. It filters out irrelevant content and personalizes replies, saving you time while boosting your social media presence.