This project automates the processing and analysis of medical records using n8n workflows integrated with OCR and AI services. It extracts key medical information from uploaded documents, summarizes potential health issues, recommends diagnostic tests, and generates a concise patient email report.
- File Upload via Webhook: Accepts medical record files (PDF/image) through an HTTP webhook.
- OCR Processing: Uses OCR.space API to extract text from uploaded medical records.
- Information Extraction: Extracts important patient data such as name, age, symptoms, diagnosis, and treatment details.
- AI-powered Medical Summary: Utilizes Google Gemini (PaLM) AI models to analyze the extracted information and create a clear, concise medical summary email.
- Automated Email Sending: Sends the summary directly to the patient via Gmail integration.
- Error Handling: Validates file uploads and ensures smooth workflow execution.
- n8n - Workflow automation platform
- OCR.space API - Optical character recognition
- Google Gemini (PaLM) API - AI language model for medical text analysis
- Gmail API - Email sending integration
- Webhook Node: Receives medical record files via HTTP POST request.
- HTTP Request Node: Sends the file to OCR.space for text extraction.
- Information Extractor Node: Parses the OCR output for relevant medical data.
- AI Agent Node: Generates a patient-friendly medical summary email using AI.
- Gmail Node: Sends the generated email to the patient.
- Clone this repository.
- Import the included n8n workflow JSON file into your n8n instance.
- Configure credentials for:
- OCR.space API (get your API key at https://ocr.space/ocrapi)
- Google Gemini (PaLM) API
- Gmail OAuth2 credentials
- Adjust the email recipient address in the "Send a message" node if needed.
- Start your n8n instance and test the workflow by uploading a medical record file via the webhook URL.
- Send a POST request to the webhook URL with a medical record file (PDF or image).
- The workflow will process the file and send a summarized medical report email automatically.
- This tool is for informational and demonstration purposes only. It is not a substitute for professional medical advice or diagnosis.
- Ensure compliance with all relevant patient data privacy laws (e.g., HIPAA, GDPR) when handling medical records.
This project is licensed under the MIT License.
For questions or support, please contact: [Your Email]
This email was sent automatically with n8n
https://n8n.io