Process Australian GP referrals to Cliniko with Gmail, forms and OpenRouter
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail, OpenRouter Chat Model and Slack.
How it runs
Trigger: On Gmail events (plus 1 other trigger).
- Set Workflow Parameters (Edit Fields (Set)): sets 5 fields: openrouter_frontier_model, openrouter_fixer_model, cliniko_api_base…
- Referral Details Extraction Agent (AI Agent): runs an AI agent, with model: OpenRouter Frontier AI Model; output parser: Parse Structured Referral Data
- Verify Medicare and Provider IDs (Code): runs custom JavaScript code
- Check All Verification Statuses (If): checks a condition and branches into true / false
- Post New Patient to Cliniko API (HTTP Request): calls an HTTP API (POST)
- Send Review Alert to Slack (Slack): uses Slack
Services it uses
Other Gmail + Slack templates (957) · Other Gmail + OpenRouter templates (135) · Other Slack + OpenRouter templates (73)
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 (10)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - n8n Form Trigger
n8n-nodes-base.formTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow ingests Australian GP referrals from Gmail (email/e-fax PDFs) or an n8n upload form, uses OpenRouter to extract patient details into structured JSON, validates Medicare and GP provider numbers with checksum rules, and then either…