Skip to main content

Create personalized diet plans from health reports with Ollama AI and email automation

Workflow preview

Workflow preview
100%
Create personalized diet plans from health reports with Ollama AI and email automation preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 nutr...

Best for

  • Document Extraction automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.emailreadimap, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmollama, n8n-nodes-base.wait, n8n-nodes-base.emailsend, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oneclick AI Squad.

Original n8n.io source

1.1 Workflow description

Title
Create personalized diet plans from health reports with Ollama AI and email automation
Workflow name
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 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.
    • user_email: User’s email address for receiving the plan.
    • health_data: Extracted health metrics or lab report summary.
    • condition: AI-identified health condition.
    • diet_plan: Generated diet plan summary.
    • sent_status: Status of email delivery (e.g., Sent, Failed).

Customization

  • Add SMS Alerts: Integrate Twilio or WhatsApp for additional notifications.
  • Enhance AI: Train the AI model with more nutritional data for better plans.
  • Include Recipes: Add a node to suggest recipes based on the diet plan.
  • Multilingual Support: Adapt email content for different languages.
  • Integration with Apps: Connect to fitness apps (e.g., MyFitnessPal) for tracking.

Requirements

  • Email Service: IMAP (e.g., Gmail) for receiving health data emails and SMTP for sending diet plans.
  • AI Model: Ollama or similar for health analysis and diet plan generation (requires API access).
  • n8n Instance: With email (IMAP/SMTP) and AI connectors configured.
  • Internet Connection: To access email and AI APIs.
  • Optional Google Sheets Account: For logging health data and diet plans.
  • User Consent: Ensure compliance with data privacy laws (e.g., HIPAA) for health data.

Want a tailored workflow for your business? Our experts can craft it quickly Contact our team

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Receive Health Report Email

Type / Role
n8n-nodes-base.emailReadImap - emailReadImap
Config choices
Version 2

Block 2 - Process Report with AI Nutrition Engine

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 3 - AI Nutrition Model

Type / Role
@n8n/n8n-nodes-langchain.lmOllama - lmOllama
Config choices
Version 1

Block 4 - Wait Before Sending Plan

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 5 - Send Personalized Diet Plan

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 1

Block 6 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Create personalized diet plans from health reports with Ollama AI and email automation
Complexity intermediate
Nodes 6
Categories Document Extraction, Multimodal AI
Author Oneclick AI Squad
Published 08 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7181/7181.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create personalized diet plans from health reports with Ollama AI and email automation do?

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 nutr...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, Multimodal AI use case.