Templates / Send prescription PDFs to patients via WhatsApp with Google Gemini and Supabase

Send prescription PDFs to patients via WhatsApp with Google Gemini and Supabase

Ready for 3.0

by Kanishka Shrivastava ✓ · 25 views · created 2026-07-11 · 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 13 nodes and runs on WhatsApp events (messages). Along the way it connects Google Gemini Chat Model, WhatsApp Business Cloud and Supabase.

How it runs

Trigger: On WhatsApp events (messages).

  1. Set Configuration (Edit Fields (Set)): sets 10 fields: clinic_name, staff_notify_number, whatsapp_phone_number_id…
  2. Extract Prescription Details (Basic LLM Chain): sends a prompt to an LLM, with model: Gemini Chat Model; output parser: Prescription Data Parser
  3. Are Required Fields Complete? (If): checks a condition and branches into true / false
  4. Build PDF HTML (Edit Fields (Set)): sets 1 field: prescription_html
  5. Notify Staff - Needs Review (WhatsApp Business Cloud): send
  6. Generate Prescription PDF (HTTP Request): calls an HTTP API (POST)
  7. Log Needs Review (Supabase): insert
  8. Upload PDF to Public URL (HTTP Request): calls an HTTP API (POST)
  9. Send Prescription PDF to Patient (WhatsApp Business Cloud): send
  10. Log Prescription Sent (Supabase): insert

Services it uses

Google Gemini Chat ModelWhatsApp Business CloudSupabase

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 (9)

From the author

Quick overview This workflow listens for incoming WhatsApp messages from clinic staff, uses Google Gemini to extract prescription details, generates a prescription PDF via an HTML-to-PDF API, uploads it to a public URL, sends the document back over WhatsApp,…

Excerpt from Kanishka Shrivastava '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.