Create personalized diet plans from health reports with Ollama AI and email automation
This n8n workflow transforms uploaded health details or lab reports received via email into a customized diet plan using AI analysis, then sends the plan back to the user via email, optimizing nutrition based on indiv...
Template notes
This n8n workflow transforms uploaded health details or lab reports received via email into a customized diet plan using AI analysis, then sends the plan back to the user via email, optimizing nutrition based on individual health data.
Why Use It
This workflow automates the creation of personalized diet plans from health data, saving time for nutritionists, improving patient outcomes with AI-driven insights, and providing a convenient email delivery system for users.
How to Import It
1. Download the Workflow JSON: Obtain the workflow file from the n8n template or create it based on this document. 2. Import into n8n: In your n8n instance, go to "Workflows," click the three dots, select "Import from File," and upload the JSON. 3. Configure Credentials: Set up email (e.g., IMAP for receiving, SMTP for sending), AI model, and optional Google Sheets credentials in n8n. 4. Run the Workflow: Test with a sample email containing health data and verify the diet plan delivery.
System Architecture
- Data Input Pipeline: - Email Trigger: Initiates the workflow when a health report email is received. - Extract Health Data: Parses uploaded health details or lab reports from the email. - AI Analysis Flow: - Send to AI Model: Analyzes health data using an AI model. - Generate Diet Plan: Creates a customized diet plan based on AI output. - Delivery Flow: - Prepare Email Content: Formats the diet plan for email delivery. - Send Diet Plan Email: Sends the plan to the user via SMTP. - Update Log (Optional): Logs the process in a Google Sheet.
Google Sheet Structure - Columns: - timestamp: Date and time of the diet plan generation. - useremail: User’s email address for receiving the plan. - healthdata: Extracted health metrics or lab report summary. - condition: AI-identified health condition. - dietplan: Generated diet plan summary. - sentstatus: Status of email delivery (e.g., Sent, Failed).