Templates / Check prescription safety and drug interactions with GPT-4o, Sheets, and Telegram

Check prescription safety and drug interactions with GPT-4o, Sheets, and Telegram

Ready for 3.0

by Rahul Joshi ✓ · 63 views · created 2026-06-17 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 16 nodes and runs on Google Drive events (file created) (plus 1 other trigger). Along the way it connects OpenAI, Telegram, Google Drive and Google Sheets and 1 more.

How it runs

Trigger: On Google Drive events (file created) (plus 1 other trigger).

  1. Download PDF from Drive (Google Drive): download
  2. Slack: uses Slack
  3. Extract Text from PDF (Extract from File): extracts data from a file (pdf)
  4. GPT-4o – Extract + Draft SOAP Note (OpenAI): uses OpenAI
  5. Parse & Validate GPT Response (Code): runs custom JavaScript code
  6. Read Approved Drug Formulary (Google Sheets): uses Google Sheets
  7. Read Drug Interactions Table (Google Sheets): uses Google Sheets
  8. Merge: merges the data from its input branches
  9. Check Formulary & Flag Interactions (Code): runs custom JavaScript code
  10. Route: Flagged or Cleared? (If): checks a condition and branches into true / false

…plus 4 more steps. See the full node list below.

Services it uses

OpenAITelegramGoogle DriveGoogle SheetsSlack

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (11)

From the author

Quick overview This workflow monitors a Google Drive folder for new prescription PDFs, extracts the text, uses OpenAI (GPT-4o-mini) to structure prescription details and draft a SOAP note, checks drugs against Google Sheets formulary and interaction tables,…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.