AgentRecipes
Recipes › Team operations

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

Team operationsn8n✓ Confirmed by source

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

Step-by-step recipe

  1. Collect incoming medical orders in one place (mailbox, upload form or document queue) and trigger an n8n workflow for each new order.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. Log every decision with its inputs and rule path so reviewers and auditors can trace why an order was approved or escalated.

Copyable prompt

Prompt template
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

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

Replace daily standups with async updates and AI summaries (Zapier Agents)Daily standups take a lot of team time for information that could be written down in a minute.Zapier Agents✓ Confirmed by sourceWrite end-of-sprint changelogs from completed Linear tickets with Claude CoworkWriting release notes every sprint means rereading every finished ticket and translating it into user-facing language.Claude Cowork✓ Confirmed by sourceSort hundreds of PDFs into folders with Claude CoworkA folder of hundreds of unsorted PDFs is useless until someone opens each file and files it.Claude Cowork✓ Confirmed by source

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.