AutomationFlowsAI & RAG › Create Personalized Diet Plans From Health Reports with Ollama AI and Email…

Create Personalized Diet Plans From Health Reports with Ollama AI and Email…

Original n8n title: Create Personalized Diet Plans From Health Reports with Ollama AI and Email Automation

ByOneclick AI Squad @oneclick-ai on n8n.io

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.

Manual trigger★★☆☆☆ complexityAI-powered6 nodesEmail Read ImapChain LlmLm OllamaEmail Send
AI & RAG Trigger: Manual Nodes: 6 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #7181 — we link there as the canonical source.

This workflow follows the Chainllm → Emailsend recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "gKJQLzRtCyqGBHs9",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Personalized Diet Plan Creator from Medical History",
  "tags": [],
  "nodes": [
    {
      "id": "813c1495-0676-4e00-8d4b-74e9cccf5d3e",
      "name": "Receive Health Report Email",
      "type": "n8n-nodes-base.emailReadImap",
      "position": [
        0,
        -260
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "imap": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "00ef51df-aa58-4a7d-ab4f-6d0f9012e626",
      "name": "Process Report with AI Nutrition Engine",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        220,
        -260
      ],
      "parameters": {
        "batching": {},
        "messages": {
          "messageValues": [
            {
              "message": "=Analyze the following health details or lab report data and generate a personalized diet plan tailored to the user's medical history, dietary restrictions, and nutritional needs:\\n\\n{{json.content}}\\n\\nProvide a detailed diet plan including daily meal suggestions, portion sizes, and nutritional goals."
            }
          ]
        }
      },
      "typeVersion": 1.7
    },
    {
      "id": "88f3646d-3e16-427d-b278-4b123aff9122",
      "name": "AI Nutrition Model",
      "type": "@n8n/n8n-nodes-langchain.lmOllama",
      "position": [
        308,
        -40
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "ollamaApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "a88117ab-a714-4b50-a32a-00ad830feee6",
      "name": "Wait Before Sending Plan ",
      "type": "n8n-nodes-base.wait",
      "position": [
        596,
        -260
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "f53c5ed4-ab80-49d7-b955-37b232fc89e7",
      "name": "Send Personalized Diet Plan ",
      "type": "n8n-nodes-base.emailSend",
      "notes": "Sends the PDF diet plan to the user via email",
      "position": [
        816,
        -260
      ],
      "parameters": {
        "text": "Dear User,\n\nAttached is your personalized diet plan based on your health details.\n\nBest regards,\nYour Nutrition Team",
        "options": {},
        "subject": "Your Personalized Diet Plan",
        "toEmail": "{{$node['Webhook'].json['userEmail']}}",
        "fromEmail": "user@example.com",
        "attachments": "{{$node['Generate PDF'].json['filePath']}}"
      },
      "credentials": {
        "smtp": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "15ab3a4e-3879-4e4b-8789-f97b71594d27",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        -620
      ],
      "parameters": {
        "color": 6,
        "width": 820,
        "height": 240,
        "content": "## Node Details\n- **Email Trigger**: Triggers the workflow when a new email with health data or lab reports is received via IMAP.\n- **Extract Health Data**: Extracts key health metrics (e.g., cholesterol, glucose) from the email attachment or body.\n- **Send to AI Model**: Sends health data to an AI model (e.g., Ollama) for diet plan generation.\n- **Generate Diet Plan**: Processes AI output to create a personalized diet plan.\n- **Prepare Email Content**: Formats the diet plan into an email-friendly structure.\n- **Send Diet Plan Email**: Sends the diet plan to the user\u2019s email via SMTP.\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "62f85c75-21e4-466d-8afc-d5e80cc36645",
  "connections": {
    "AI Nutrition Model": {
      "ai_languageModel": [
        [
          {
            "node": "Process Report with AI Nutrition Engine",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Wait Before Sending Plan ": {
      "main": [
        [
          {
            "node": "Send Personalized Diet Plan ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Health Report Email": {
      "main": [
        [
          {
            "node": "Process Report with AI Nutrition Engine",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Report with AI Nutrition Engine": {
      "main": [
        [
          {
            "node": "Wait Before Sending Plan ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

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.

Source: https://n8n.io/workflows/7181/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

In this guide, we’ll break down how to set up an AI-powered auto-reply system that works while you sleep. Ready to 10X your efficiency? Let’s dive in! AI-driven auto-responses for Email. Instant repli

Lm Ollama, Email Read Imap, Chain Llm +1
AI & RAG

This advanced n8n workflow provides intelligent email automation with AI-generated responses. It combines four core functions: Monitors incoming emails via IMAP (e.g., SOGo) Sends instant Telegram not

Telegram, Email Read Imap, Lm Ollama +2
AI & RAG

The workflow is triggered manually with user input, searches LinkedIn profiles, processes the results using AI, generates connection recommendations, and delivers them via email. It leverages AI to en

HTTP Request, Chain Llm, Lm Ollama +2
AI & RAG

Takes your raw, unpolished voice transcripts and transforms them into well-structured LinkedIn posts using AI. Perfect for when you have good ideas but they come out as rambling thoughts.

Chain Llm, Anthropic Chat, HTTP Request +2
AI & RAG

This n8n workflow automatically creates friendly, personalized travel itineraries based on messages received via email or WhatsApp. When a user says "I want to go to Dubai with friends for 5 days" or

Chain Llm, Lm Ollama, Email Read Imap +3