$50 free credit for new accounts - ends in

Claim $50

Setup

How to set up knowledge base for lab test prep instructio…

How to set up knowledge base for lab test prep instructions bot — answered from your own docs. How Laboratory Services teams use Chatref (knowledge base, knowle

Chatref Team5 min read / Updated June 15, 2026

Set up a knowledge base for a lab test prep instructions bot by uploading your lab’s prep documents—PDFs, websites, or text—into Chatref. The AI agent then answers patient questions about fasting, sample collection, or timing directly from those sources, reducing phone calls and miscommunication.

Before you start

You’ll need the actual prep instructions your patients rely on: fasting requirements, collection procedures, what to bring, timing restrictions, and any test-specific nuances. Have them ready as PDF files, live URLs from your website, or plain text. This content is what Chatref trains on—the bot won’t guess or pull from the internet.

You’ll also need a Chatref account. Every new account gets $50 in free credit with no credit card required, so you can build and test your bot right away. Finally, decide which tests the bot should cover initially; you can always add more later.

For a broader view of how Chatref supports laboratory front desks, see our Laboratory Services page.

Step-by-step setup

  1. Create the agent In your Chatref workspace, create a new AI agent. Name it something your patients will recognize, like “Lab Test Prep” or “Pre-Visit Instructions.” You’ll build an agent specifically for lab prep, not a general practice bot.

  2. Add your knowledge sources This is where the knowledge base comes together. Inside the agent’s “Knowledge” section, upload your prep materials.

    • PDFs: Add any handouts or printed instructions you already give patients (e.g., “Fasting Lipid Panel Prep” or “24-Hour Urine Collection Instructions”).
    • URLs: Point Chatref at the exact pages on your website where prep information lives. It will crawl and index them.
    • Plain text: Paste smaller notes or a FAQ list directly.

    Chatref reads everything you provide and grounds its answers exclusively in that content. It does not search the web or make assumptions, so accuracy depends on what you include.

  3. Configure the agent (optional) Adjust the agent’s voice and style to match your lab’s tone—professional, warm, or straightforward. You can set a custom greeting (“Ask about test prep, fasting, or what to bring.”) and choose a primary color that matches your brand. All features, including unlimited agents, custom branding, and the embeddable widget, are included on every account.

  4. Add custom actions if needed If you want the bot to collect patient details (name, DOB, test ordered) and send them to your system, use Chatref’s custom actions. This isn’t required for just answering prep questions, but it can route information back to your team. Keep it simple at first.

  5. Embed or test You can test right inside Chatref’s live playground without embedding anything. When you’re ready, copy the widget snippet from the agent’s deploy tab and paste it onto your lab’s site—usually on the “Patient Resources” or “Contact” page. The widget appears wherever you place the snippet, and patients can start asking immediately.

During setup, remember that the knowledge base is the sole source of truth. If a patient asks something your content doesn’t cover, the bot will say it can’t answer, which is a signal to add more detail.

Check it works

Testing is critical because even small gaps in your documentation can produce incomplete answers. Use the playground to simulate real patient questions:

  • “Do I need to fast before a basic metabolic panel?”
  • “Can I drink water before a glucose tolerance test?”
  • “What should I bring for a stool sample collection?”
  • “Is there an age restriction for this test?”

For each question, verify the answer matches what you’d tell a patient in person. If the bot replies with general guidance not found in your sources, review the knowledge base—Chatref can’t use information outside it. Check that test names, fasting durations, and collection steps are explicit in your documents.

Test edge cases too: what happens when a patient asks about a test not yet in the knowledge base? The bot should indicate it doesn’t have that information rather than guessing. That’s expected behavior—just add the missing prep details afterward.

Finally, test on a smartphone or tablet through the widget preview. Many patients will ask from their phones, so the experience should be clean and responsive.

Common issues

Incomplete or vague answers If the bot gives a partial answer (e.g., mentions fasting time but not whether water is allowed), the source document likely lacks that detail. Fix it by editing the original document and re-uploading, or by adding a dedicated FAQ document that covers each test’s specifics. Written text works better than scanned images; if you use a PDF from a scanner, make sure the text is machine-readable.

Bot answers about tests it shouldn’t If the agent conflates two different tests, your documentation may group prep instructions too broadly. Split them into separate documents or clearly labeled sections (e.g., “Fasting Lipid Panel” vs. “Random Lipid Panel”).

Patients ask about tests not yet covered This is a content gap, not a technical failure. Keep a log of questions the bot can’t answer and use it to prioritize which test instructions to add next. The Insights feature in Chatref can surface the questions patients ask most, helping you spot gaps.

Incorrect “after hours” or holiday information If your lab has seasonal hours or special collection windows, make sure those are stated in the knowledge base and updated. A best practice is to add a small “Current Hours & Notices” document you can refresh as needed.

Bot is too formal or uses jargon Review the documents you uploaded. The agent mirrors the language in its training content. If your prep instructions read like a lab manual, simplify them using everyday terms (“collect your sample” vs. “specimen acquisition”) so the bot’s answers are patient-friendly.

FAQ

What causes lab test prep instructions bot problems for Laboratory Services?

The most common cause is an incomplete or ambiguous knowledge base. If instructions are missing details about fasting, water intake, medication adjustments, or collection procedures, the bot will give vague or incorrect answers. Other issues include outdated documents, scanned PDFs that aren’t machine-readable, and content split across multiple pages without clear boundaries, causing the bot to blend instructions from different tests.

How do I improve lab test prep instructions bot for Laboratory Services?

Start by reviewing the questions your patients actually ask—Chatref’s Insights can show you the top queries. Fill gaps in your knowledge base with clear, test-by-test instructions. Use plain language, include FAQs as separate documents, and re-upload updated versions when prep guidelines change. Test regularly with real patient phrasing rather than clinical scripts to ensure the answers feel natural and correct. If you collect details through custom actions, make sure the handoff to your team is smooth and doesn’t break the patient’s flow.

Put this into practice

Chatref answers your customers from your own content, day and night. Add it to your site and go live in minutes – free to start.

Get started