How to turn incoming medical orders into prior-authorization decisions with an n8n workflow that reads the order with AI and applies your policy rules
Confirmed by source: In production at Seguros Bolívar according to n8n's official case study (prior authorization cut from 3–4 weeks to near real time, 300+ active workflows); page checked live on 2026-11-07. Not run by BranoLabs. (checked 2026-11-07)
The problem
Health insurers have to approve or deny each doctor's order before a procedure. Orders arrive as photos, scans and PDFs in many layouts, every policy has its own coverage, exclusions and limits, and nurses and doctors end up doing clerical checks by hand. In the source company a single authorization could take three to four weeks, and changing the 20-year-old core system to automate it was too slow and risky.
Tools needed
- n8n (Enterprise in the source)
- A multimodal LLM that can read images and PDFs (Gemini in the source)
- Read access to your policy, patient and provider databases or APIs
- Your existing core or claims system, left unchanged
Step-by-step recipe
- Collect incoming medical orders in one place (mailbox, upload form or document queue) and trigger an n8n workflow for each new order.
- Have the multimodal model extract the structured fields from the image or PDF: patient identifier, ordering doctor, procedure or diagnosis codes, requested provider and dates. Validate the output against a fixed schema and route anything incomplete to a human.
- Look up the patient's active policy and its terms through your databases or APIs, so coverage, exclusions, limits and the eligible provider network come from your systems rather than from the model.
- Keep the business rules (which procedures are covered, which need clinical review, which provider handles what) as explicit rule steps in the workflow, so changing a rule is a workflow edit instead of a core-system release.
- When the rules clearly allow it, generate the authorization and write it back to the core system through its existing interface; send everything ambiguous or negative to the clinical review queue with the extracted data and the rule that triggered.
- Log every decision with its inputs and rule path so reviewers and auditors can trace why an order was approved or escalated.
Copyable prompt
You extract data from a medical order for [INSURER]'s prior-authorization workflow. Do not decide coverage.
Return JSON only with: patient_id, patient_name, ordering_doctor, order_date, procedures (list of {code, description}), diagnosis_codes, requested_provider, urgency (routine|urgent|unknown), missing_fields (list).
Use null for anything not clearly readable and add it to missing_fields. Never guess codes.
Document: [ATTACHED IMAGE OR PDF]Original template written by our AI agent for AgentRecipes, not copied from the source. Replace the [BRACKETS] and {{variables}} with your own values and test before relying on it.
What the builder reported
According to the case study, prior authorizations that used to take three to four weeks are now produced in near real time, with many generated on the spot, and the operational cost of the process dropped sharply while nurses and doctors spend more time on clinical judgement. The company says it runs more than 300 active n8n workflows and made n8n available to about 3,000 employees.
These are the source author's own claims. AgentRecipes has not run this recipe itself.
Watch out for
- The source is n8n's official case study for Seguros Bolívar; it names n8n plus Gemini AI nodes and describes the flow (interpret order, extract data, apply business rules, query patient and policy data, run the approval chain) but does not publish the workflow, prompts or rule set.
- Medical orders are sensitive health data; check where documents and model calls are processed, retention, and the legal rules for automated decisions in your country before going live.
- Our suggestion, not the source's: let the automation only approve clear-cut cases and route denials and edge cases to a clinician, so the model never refuses care on its own.
- Coverage must come from your policy data and explicit rules, never from the model's general knowledge.
Source
Original write-up: n8n case studies (official) ↗
Found via n8n case studies index: “n8n case studies: Seguros Bolívar prior authorization”. This recipe summarises the source in words written by our AI agent; read the original for the full details. Link last checked 2026-11-07.
More team operations recipes
New agent recipes in your inbox
A short email with the newest automation recipes, each linked to its real-world source. No spam. Every email has a one-click unsubscribe link.