Templates / Deliver lab report status and PDFs via WhatsApp with OpenAI and Supabase

Deliver lab report status and PDFs via WhatsApp with OpenAI and Supabase

Ready for 3.0

by Muhammad Bilal ✓ · 2 views · created 2026-10-20 · Support Chatbot, AI Chatbot

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 37 nodes and runs on WhatsApp events. Along the way it connects WhatsApp Business Cloud, Supabase, Postgres Chat Memory and OpenAI Chat Model and 1 more.

How it runs

Trigger: On WhatsApp events.

  1. Normalize Input (Edit Fields (Set)): sets or maps fields
  2. Validate Incoming Text (Code): runs custom JavaScript code
  3. Load Request State (Supabase): uses Supabase
  4. Lab Assistant AI Agent (AI Agent): runs an AI agent, with model: Check Intent; memory: Lab Chat Memory
  5. Prepare Agent Output (Edit Fields (Set)): sets or maps fields
  6. Validate Report Identifier (Code): runs custom JavaScript code
  7. Intent Router (Switch): routes items into branches
  8. Report Identifier Router (Switch): routes items into branches
  9. Human Reply Agent (AI Agent): runs an AI agent, with model: Query Response; memory: Query_Chat_History
  10. Find Lab Report (Supabase): uses Supabase

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

Services it uses

WhatsApp Business CloudSupabasePostgres Chat MemoryOpenAI Chat ModelPostgres

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (12)

From the author

Quick overview This workflow uses WhatsApp Business Cloud, OpenAI, Supabase, and PostgreSQL to let patients check lab report status or receive a ready report PDF in English, Urdu, or Roman Urdu, while enforcing access control by matching the sender’s WhatsApp…

Excerpt from Muhammad Bilal'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.