🎫 Track medicine adherence and monitor patients with Google Sheets, OpenAI and Slack

⚑ 103 views · 🎫 Ticket Management & Triage

Description

🩺 AI-Powered Medicine Reminder & Patient Monitoring Workflow

(n8n + Google Sheets + OpenAI + Slack)


This workflow automates medicine reminders, tracks patient responses and alerts doctors in critical situations using n8n, Google Sheets, OpenAI and Slack.

Quick Implementation Steps

πŸ’‘ You can replace Slack with Email (Gmail) or SMS APIs like Twilio.

What It Does

This workflow automates the entire lifecycle of patient medicine adherence tracking. It periodically checks patient records and sends reminders when it’s time to take medicine.

When a patient responds, the system captures the reply via webhook and uses AI to classify the response into categories such as taken, not taken, delayed or unclear. It then updates patient records and tracks missed doses.

If a patient repeatedly misses medication or shows signs of distress, the system flags it as critical and alerts the doctor immediately through a separate channel.

Who’s It For

Requirements

⚠️ Reminder Time must be in 24-hour format (HH:mm) Example: 08:30, 14:45, 21:00

Webhook Input Format

Your system must send patient replies in this format:

{
  "phone": "string",
  "message": "string"
}

How It Works

1. Scheduler Trigger

2. Fetch Patient Records

3. Match Reminder Time

4. Send Reminder

5. Receive Patient Response

6. AI Classification

Classifies response into:

Also detects critical conditions

7. Parse Output

8. Match Patient

9. Update Missed Count

10. Check Critical Condition

Triggered when:

11. Critical Flow

12. Normal Flow

Customization

Replace Slack

You can replace Slack nodes with:

Modify AI Logic

Change Reminder Logic

Adjust Critical Threshold

Add-ons

Use Cases

Troubleshooting

IssuePossible CauseSolution
Reminder not sentTime mismatchUse HH:mm format
Patient not matchedPhone mismatchEnsure same format
AI parsing errorInvalid JSONCheck parsing node
Missed count issueWrong classificationVerify AI output
Webhook not workingWrong endpointCheck URL
Slack not sendingCredentials issueReconnect Slack
Critical not triggeredCondition issueAdjust threshold

Need Help?

If you need help with:

πŸ‘‰ Feel free to Contact WeblineIndia for custom workflow development and automation solutions.

πŸ”— Nodes Used

Google Sheets, Slack, Webhook, Schedule Trigger, OpenAI

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup