Générateur de plans de repas personnalisés basé sur l'historique médical

Intermédiaire

Ceci est unDocument Extraction, Multimodal AIworkflow d'automatisation du domainecontenant 6 nœuds.Utilise principalement des nœuds comme Wait, EmailSend, EmailReadImap, ChainLlm, LmOllama. Créer un plan de repas personnalisé à partir de rapports de santé en utilisant Ollama AI et l'automatisation par e-mail

Prérequis
  • Aucun prérequis spécial, prêt à l'emploi après importation
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "gKJQLzRtCyqGBHs9",
  "meta": {
    "instanceId": "dd69efaf8212c74ad206700d104739d3329588a6f3f8381a46a481f34c9cc281",
    "templateCredsSetupCompleted": true
  },
  "name": "Personalized Diet Plan Creator from Medical History",
  "tags": [],
  "nodes": [
    {
      "id": "813c1495-0676-4e00-8d4b-74e9cccf5d3e",
      "name": "Recevoir l'e-mail du rapport de santé",
      "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": "Traiter le rapport avec le moteur IA nutrition",
      "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": "Modèle de nutrition IA",
      "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": "Attendre avant d'envoyer le plan",
      "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": "Envoyer le plan alimentaire personnalisé",
      "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": "Note autocollante",
      "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’s email via SMTP.\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "62f85c75-21e4-466d-8afc-d5e80cc36645",
  "connections": {
    "88f3646d-3e16-427d-b278-4b123aff9122": {
      "ai_languageModel": [
        [
          {
            "node": "00ef51df-aa58-4a7d-ab4f-6d0f9012e626",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "a88117ab-a714-4b50-a32a-00ad830feee6": {
      "main": [
        [
          {
            "node": "f53c5ed4-ab80-49d7-b955-37b232fc89e7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "813c1495-0676-4e00-8d4b-74e9cccf5d3e": {
      "main": [
        [
          {
            "node": "00ef51df-aa58-4a7d-ab4f-6d0f9012e626",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "00ef51df-aa58-4a7d-ab4f-6d0f9012e626": {
      "main": [
        [
          {
            "node": "a88117ab-a714-4b50-a32a-00ad830feee6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Extraction de documents, IA Multimodale

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds6
Catégorie2
Types de nœuds6
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

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

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34