Integration
How to connect rehab program comparison assistant help to…
How to connect rehab program comparison assistant help to a chat widget — answered from your own docs. How Rehabilitation Centers teams use Chatref (website wid
To connect a rehab program comparison assistant to a chat widget, first create a Chatref agent and train it on your program details. Then enable the website widget, copy the one-line snippet, and embed it on your site. Patients can compare programs right from your pages, with answers grounded in your own information. Here’s how to set it up.
What connects to what
Your rehab program comparison assistant runs on two Chatref pieces that work together: the knowledge base and the website widget. The knowledge base holds everything the assistant knows — program descriptions, criteria, expected outcomes, and any side-by-side comparison you upload. The widget is the chat interface that sits on your rehabilitation center's website and hands patient questions to that knowledge base.
When a patient types something like "compare your outpatient program and your day program," the widget sends the question to the agent you trained. The agent searches your uploaded content, finds the relevant details, and responds from your own material — never from generic web guesses. Without the knowledge base, the widget has nothing to answer with. Without the widget, patients cannot reach the assistant on your site. Connecting them is a single setup step in your Chatref account.
How to set it up
Create and train the agent
- Log in to your Chatref account, or start a free trial (every new account includes $50 in free credit, no card required).
- Create a new agent and give it a name your team will recognise, such as “Program comparison assistant.”
- Head to the agent's “Training” tab and upload the content that describes your programs. PDFs that list program features, a spreadsheet comparing duration and cost, or plain text summary pages all work. You can also point the agent at the program pages on your existing website by adding their URLs.
- Wait a few minutes for Chatref to process the content. Once done, the assistant can answer comparison questions based on what you supplied.
Activate the website widget
- In the agent’s “Widget” settings, turn on the website widget.
- Customise the look to match your practice: choose the primary colour and upload your logo if you want. The widget should feel like a natural part of your site, not an add-on.
- Copy the embed code — a single
<script>tag — from the widget panel.
Add the snippet to your site
- Paste that snippet right before the closing
</body>tag on every page where you want the chat to appear (typically your whole site). If you use a tag manager, you can deploy it there. - Save and publish the changes. Open your site in a normal browser window and look for the chat icon, usually in the bottom-right corner.
Test a real comparison question
- Click the launcher and type a question like "How does your inpatient program differ from the partial hospitalisation program?" The assistant should answer with specifics drawn from the documents you uploaded. If it gives a shallow response, go back to the training step and add richer comparison material.
For a broader look at how Chatref helps healthcare practices, see Rehabilitation Centers.
What users see
Once the snippet is live, patients visiting your site see a small chat icon in the corner — nothing intrusive. Clicking it opens a chat window styled with your practice’s colours and branding. From there, they can ask questions naturally.
- Program comparison questions: "Which program is better for post-surgical knee recovery?" or "Compare the cost of your 30-day program to the 60-day option." The assistant pulls details from your uploaded materials and lays out the differences.
- Grounded answers, no guessing: Every reply is based on your own documentation. If a patient asks about a detail you haven't loaded (e.g. acceptance rates at a specific insurer), the assistant will not invent an answer — it stays within what it was trained on.
- Your practice voice: The tone reflects how you describe your services, because the agent learned from your own content. No generic marketing language.
- 24/7 availability: The widget works around the clock, so a family member comparing programs at 10 p.m. gets the same answer as if they called at noon.
The widget can also collect basic contact information if you enable lead capture, but even without that, it turns your program pages into an interactive resource that offloads routine questions from your intake team.
Troubleshooting
The chat icon doesn't appear on the site
- Double-check that the embed snippet is placed right before
</body>and that your browser isn't blocking scripts. Ad blockers sometimes suppress chat widgets — test in an incognito window. - In the Chatref widget settings, verify that your site’s domain is listed under allowed origins. An origin mismatch will prevent the widget from loading.
- If you're using a staging site first, remember to add that domain in Chatref and then switch the snippet to the production domain once you go live.
The assistant gives vague or incorrect program comparisons
- This almost always means the uploaded content doesn't explicitly compare the programs side by side. A folder of separate program brochures is helpful, but for comparisons, add a document that puts them on the same page — a table, a short PDF that lists each program’s focus, length, typical patient profile, and cost.
- Re-upload that comparison content and let the agent re-process it. No need to delete the old material; the new details layer on top.
- If a question mixes two concepts (e.g., program structure + insurance acceptance), be sure your materials cover both topics individually and, ideally, in combination.
Answers go stale after you change a program
- Whenever you add a new program or modify an existing one, update the content in the agent’s training tab and let it re-process. There’s no auto-sync with live site edits — you control when the agent learns something new.
- Test a known change right after retraining to confirm the assistant reflects the update.
The widget looks off-brand
- Colours and logo are set per agent in the widget panel. If the primary colour isn’t picked correctly, use the hex code from your brand guidelines. Changes apply instantly.
FAQ
What causes rehab program comparison assistant problems for Rehabilitation Centers?
The most common root cause is insufficiently detailed training content. If the assistant only sees brochure-level descriptions, it cannot compare programs with any depth. Another frequent issue is a widget that fails to load because the website’s domain isn’t allowlisted in Chatref, or a script conflict on the page. Finally, if staff forget to update the training materials after a program change, the assistant gives outdated answers.
How do I improve rehab program comparison assistant for Rehabilitation Centers?
Start by uploading a direct comparison resource — a table, spreadsheet, or PDF that contrasts each program’s key points side by side. Then, monitor the conversations that happen on the widget (you can review transcripts in the Chatref inbox) to spot where patients keep asking for details the assistant missed. Add those missing details and retrain. Finally, train your intake team to note any questions that still reach them, so you can fill the gaps systematically.
Related guides
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.