Documents and a healthcare guardrail template
The plan's documents as knowledge, and a member-facing healthcare template that blocks clinical requests.
The snippets on this page reuse the client from the first tutorial's setup.
Step 1: Give it the plan's documents
Create a domain to hold the assistant's instructions and knowledge, a collection for the documents, and the two documents.
The first is the plan's summary of benefits:
# Harbor Health Silver plan: summary of benefits
**Primary care visit.** $25 copay. No deductible applies.
**Specialist visit.** $60 copay. A referral from your primary care provider is required.
**Urgent care.** $75 copay. No referral needed.
**Emergency room.** $350 copay, waived if you are admitted. Go to the nearest emergency room; you do not need approval first.
**Generic prescriptions.** $10 per 30-day supply. **Preferred brand** prescriptions are $40. **Specialty** prescriptions are $150 and need prior authorization.
**Annual deductible.** $1,500 for one person. It applies to hospital stays, surgery, imaging and lab work, but not to office visits or prescriptions.
**Out-of-pocket maximum.** $6,000 for one person per year. After you reach it, covered care is paid in full.
**Preventive care.** One annual wellness visit and recommended screenings are covered at no cost.The second explains claims, approvals and appeals:
# Claims, prior authorization and appeals
**Claims.** Harbor Health pays most claims within 30 days of receiving them. You can follow a claim in the member portal under Claims.
**Prior authorization.** Some services need approval before you receive them: MRI and CT scans, planned surgery, specialty prescriptions and inpatient admissions that are not emergencies. Your provider submits the request. A standard decision takes up to 15 days. An urgent request is decided within 72 hours.
**Appeals.** If a claim or prior authorization is denied, you have 180 days from the date of the denial letter to appeal. Appeals are decided within 30 days, or 72 hours when your doctor says waiting would put your health at risk.
**Contacting us.** Member Services is open 8am to 8pm Monday to Friday on 1-800-555-0142.Harbor Health is an invented plan used only for this tutorial.
-
Open Build → Domains, choose New domain, and create Member Help (key
member-help). Under Operating instructions, paste:You help members of Harbor Health understand their plan. Answer only from the plan documents. You explain benefits, costs and processes; you never give medical advice. If the documents do not cover a question, say so and point to Member Services.
-
Open Knowledge → Collections, choose New collection, and create Member plan documents. Under Domains that draw from this collection, choose Member Help. Choose the semantic chunking strategy and set the chunk size to 600 words.
-
Open Knowledge → Documents, upload both files into the collection, and wait until each shows as indexed.
-
Open Knowledge → Retrieval and ask "how long do I have to appeal". The appeals passage should come back.
For the details of each call, see Creating a domain, Knowledge Collections and Building a RAG pipeline. The first tutorial explains the same calls step by step.
Step 2: Choose a healthcare guardrail template
A member-facing healthcare assistant has stricter needs than most. It talks to the public, so personal data must be removed before the model sees it. It must not give clinical advice. And it should say nothing the plan's documents do not support.
A template gives you all of that as one starting point. There are six, for general, financial and healthcare services, each for customers or for staff. You want Healthcare · member facing. Preview it first: the preview shows exactly what it changes from your current settings, and nothing is saved.
- Open Guardrails → Policies and choose New policy.
- Choose Templates, then Healthcare · member facing. The panel lists what it will change, and the clinical topics it adds to the blocked list.
- Choose Apply to draft, name the policy Member help - healthcare, and save.
- Under Attach to, choose the Member Help domain. You will attach the agent in the next step.
One more setting, in Settings
Healthcare identifiers such as member IDs, claim numbers and dates are removed by a separate workspace setting, Redact healthcare identifiers, in your workspace's data retention settings. The member-facing template recommends turning it on. It applies to the whole workspace, so decide it deliberately. See Data retention.
See Guardrail templates for all six, and Guardrail policy settings for what each setting does.
Build a health plan member assistant
Build a conversational agent that answers a health plan member's questions from the plan's own documents, with healthcare guardrails, a conversation that remembers, and a way to report a wrong answer. Every step shows the Dashboard, the REST API, and the JavaScript and Python SDKs.
Create the agent and talk to it
Create and deploy an agent, then hold a conversation that remembers.