• Mail us
  • Book a Meeting
  • Call us
  • Chat with us

AI/ML

How to Reduce Lab Result Delivery Time with Automated Workflows


Overview

n8n monitors email for lab results, updates Google Sheets, and notifies patients via SMS.

Prerequisites

  • n8n installed.

  • Gmail account with IMAP and API access.

  • Google Sheets with API credentials.

  • Twilio account with SMS capability.

Workflow Setup

1. Prepare n8n Environment

  • Navigate to http://localhost:5678 and log in.
  • Click “Workflows,” then “+ New,” and name it (e.g., “Lab Results”). Click “+” to start.

 

2. Trigger Node: Gmail

Node: Gmail

Settings:

  • Credentials: Gmail API key
  • Resource: Email
  • Operation: Trigger on New Email
  • Filter: From lab@example.com

Output: Result data (e.g., {{ $json.text }}).

 

3. Update Node: Google Sheets

Node: Google Sheets

Settings:

  • Credentials: Google API key
  • Operation: Append
  • Sheet ID: Patient records sheet ID
  • Data: {{ $node["Gmail"].json.text }}

Output: Record updated.

 

4. Notify Node: Twilio

Node: Twilio

Settings:

  • Credentials: Twilio API key
  • To: Patient phone from {{ $node["Gmail"].json.text }}
  • Message: Your lab results are ready. Check your portal.

Output: SMS sent.

Workflow Summary

  • Flow: Gmail (trigger) → Google Sheets (update) → Twilio (notify).

  • Execution: ~12 seconds.

Benefits

  • Speeds up result delivery by ~90%.

  • Ensures accurate record-keeping.

  • Enhances patient trust.

Troubleshooting

  • Gmail Fail: Check filter settings.

  • Sheets Issues: Verify sheet ID.

     

Ready to transform your business with our technology solutions? Contact Us  today to Leverage Our AI/ML Expertise. 

Share

facebook
LinkedIn
Twitter
Mail
AI/ML

Related Center Of Excellence