Back to Templates

Simplify medical lab reports with Ollama AI and email delivery system

Last update

Last update 4 months ago

Categories

Share


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