Skip to main content

Simplify medical lab reports with Ollama AI and email delivery system

Workflow preview

Simplify medical lab reports with Ollama AI and email delivery system preview
Open on n8n.io

Important notice

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

Overview

This automated n8n workflow streamlines the process of receiving, processing, and delivering patient-friendly lab reports with precautionary advice.

πŸ† Minimal But Complete Design:

Node Flow:

  1. πŸ“§ Email Trigger β†’ Monitors inbox for lab reports
  2. πŸ“„ PDF Extract β†’ Processes attachments & extracts content
  3. πŸ€– AI Simplify β†’ Converts medical jargon to simple language
  4. ✨ Format Response β†’ Creates beautiful patient-friendly layout
  5. πŸ“€ Send Report β†’ Delivers simplified report via email

πŸš€ Key Features:

βœ… Automatic Processing:

  • Monitors email for lab report PDFs
  • Extracts content from attachments
  • No manual intervention needed

βœ… AI-Powered Simplification:

  • Converts complex medical terms to plain English
  • Explains what each test result means
  • Adds βœ…/⚠️ indicators for normal/abnormal results

βœ… Patient-Friendly Output:

  • Professional HTML email formatting
  • Clear sections: Summary, Results, Precautions
  • Includes next steps and follow-up advice

βœ… Built-in Safety:

  • Always includes medical disclaimers
  • Encourages consulting healthcare providers
  • Handles edge cases with fallbacks

πŸ› οΈ Setup Requirements:

APIs Needed:

  • IMAP Email (Gmail, Outlook, etc.)
  • Ollama AI Model (Local medical AI)
  • SMTP Email (Sending service)

Quick Configuration:

  1. Import the JSON into n8n
  2. Set up email credentials (IMAP + SMTP)
  3. Configure Ollama medical model
  4. Test with a sample lab report

πŸ“‹ Sample Output:

🩺 Your Lab Report - Simplified

βœ… CHOLESTEROL: 180 mg/dL - Normal! 
   Good job maintaining healthy levels.

⚠️ BLOOD SUGAR: 126 mg/dL - Slightly high
   Normal is under 100. Consider reducing sugar intake.

πŸ”¬ VITAMIN D: 25 ng/mL - Low
   You may need supplements. Ask your doctor.

πŸ“‹ PRECAUTIONS:
β€’ Eat more fruits and vegetables
β€’ Exercise 30 minutes daily  
β€’ Schedule follow-up in 3 months
β€’ Watch for: excessive thirst, fatigue