8
n8n 中文网amn8n.com

基于病史的个性化饮食计划生成器

中级

这是一个Document Extraction, Multimodal AI领域的自动化工作流,包含 6 个节点。主要使用 Wait, EmailSend, EmailReadImap, ChainLlm, LmOllama 等节点。 使用Ollama AI和邮件自动化从健康报告创建个性化饮食计划

前置要求
  • 无特殊前置要求,导入即可使用
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "gKJQLzRtCyqGBHs9",
  "meta": {
    "instanceId": "dd69efaf8212c74ad206700d104739d3329588a6f3f8381a46a481f34c9cc281",
    "templateCredsSetupCompleted": true
  },
  "name": "基于病史的个性化饮食计划生成器",
  "tags": [],
  "nodes": [
    {
      "id": "813c1495-0676-4e00-8d4b-74e9cccf5d3e",
      "name": "接收健康报告邮件",
      "type": "n8n-nodes-base.emailReadImap",
      "position": [
        0,
        -260
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "imap": {
          "id": "zTEGYssr7MSVeCs3",
          "name": "IMAP-test"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "00ef51df-aa58-4a7d-ab4f-6d0f9012e626",
      "name": "使用 AI 营养引擎处理报告",
      "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 营养模型",
      "type": "@n8n/n8n-nodes-langchain.lmOllama",
      "position": [
        308,
        -40
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "ollamaApi": {
          "id": "7td3WzXCW2wNhraP",
          "name": "Ollama - test"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "a88117ab-a714-4b50-a32a-00ad830feee6",
      "name": "发送计划前等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        596,
        -260
      ],
      "webhookId": "e7d9de4a-ff91-4b46-98eb-781ec764e324",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "f53c5ed4-ab80-49d7-b955-37b232fc89e7",
      "name": "发送个性化饮食计划",
      "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": "your-email@domain.com",
        "attachments": "{{$node['Generate PDF'].json['filePath']}}"
      },
      "credentials": {
        "smtp": {
          "id": "G1kyF8cSWTZ4vouN",
          "name": "SMTP -test"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "15ab3a4e-3879-4e4b-8789-f97b71594d27",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        -620
      ],
      "parameters": {
        "color": 6,
        "width": 820,
        "height": 240,
        "content": "## 节点详情"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "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
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 文档提取, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量6
分类2
节点类型6
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Oneclick AI Squad

Oneclick AI Squad

@oneclick-ai

The AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.

外部链接
在 n8n.io 查看

分享此工作流