Setup
How to set up website widget for clinical trial participa…
How to set up website widget for clinical trial participant inquiry capture — answered from your own docs. How Clinical Trial Sites & CROs teams use Chatref (we
Add Chatref's website widget to your trial page to capture participant inquiries directly. This guide walks you through embedding the snippet, enabling lead capture so contact details are saved during chats, and testing the setup. You'll need a Chatref account and your trial details uploaded beforehand.
Before you start
You need three things ready. First, a Chatref agent trained on your trial content. Point it at your protocol summaries, eligibility criteria, FAQs, and site-contact PDFs. The agent will answer visitor questions from that material, so it must cover what participants commonly ask. Second, decide where the widget will appear. Most teams place it on the trial landing page, the "contact us" section, or the pre-screening form. Third, understand that the lead capture feature collects visitor details inside the chat itself. When someone asks about enrollment, the widget can request their name, email, and phone before the conversation ends. You control which fields to ask for and when to trigger them.
If you operate across multiple trial sites, consider that industry-specific nuances matter. For example, workflows for Clinical Trial Sites & CROs often involve separate intake processes per study, so you may want one agent per active trial to keep answers relevant.
Step-by-step setup
1. Configure lead capture in your agent
Log into your Chatref dashboard and open the agent you built for this trial. In the agent settings, find the "Lead capture" section. Toggle it on. Choose when the form should appear - during the initial greeting, after a set number of exchanges, or as a prompt tied to specific keywords like "sign up" or "enroll now". Define the fields you need: name and email are typical, but you can add phone, zip code, or a custom field for "preferred contact day." Keep the form short to avoid drop-off. Save the configuration.
2. Grab the embed snippet
Still in the agent settings, go to the "Widget" tab. Copy the auto-generated snippet. It's a single script tag you paste into your trial page. If your site builder allows custom code, you can add it to the head or footer. This snippet must not be modified unless you are adjusting advanced options, which is unnecessary for standard inquiry capture.
3. Place the widget on your trial page
Paste the snippet into the HTML of the page where participants will land. For most CMS platforms, you can paste it into a custom code block. Verify the snippet is placed on all pages where you want the widget to load, or just on the key conversion pages to keep interactions focused. If your trial page uses a templating system, add it to the master template once so it propagates.
4. Adjust branding and behavior
While in the widget settings, match the widget's primary color to your trial page's design. Change the greeting text to something trial-relevant, like "Ask about our active trials" instead of the default. You can also set operating hours so the widget only prompts for a handoff when your coordinators are online. Since your goal is inquiry capture, keep the widget active 24/7 and let lead capture store details regardless of staff availability.
Check it works
Open your trial page in a private browser window or use the Chatref live playground to test without caching issues. Trigger the lead capture flow by typing a typical participant question, such as "How do I sign up for the diabetes trial?" Confirm that the widget asks for the fields you configured. Submit a test entry and then open your Chatref conversation inbox. Verify the lead's details appear in the conversation log. If you connected any integrations (you can't with standard Chatref, so skip this step), check that data flows through. Run through two or three different question types to ensure the agent's answers remain grounded in your trial content and that the lead capture triggers reliably.
Repeat the test on a mobile device. Many participants will visit from a phone, and the widget must resize correctly. If the trigger feels off - say, the form appears too soon - adjust the keyword delay in the lead capture settings and test again.
Common issues
Widget does not appear on the page
- Check if your site uses a content security policy that blocks external scripts. Whitelist the Chatref script source.
- Verify the snippet is pasted exactly as provided, with no missing brackets.
- If you use a caching plugin, clear the cache before testing.
Lead capture form does not trigger
- Review your trigger settings. The form may be set to appear only after a specific sequence of conversation steps or only during staffed hours. Try adjusting the trigger to "on first message" during testing.
- Ensure lead capture is toggled on for the correct agent. It's common to accidentally enable it on a different bot.
Answers are not accurate for trial details
- The agent is only as good as the content you trained it on. Return to the knowledge base and re-upload any missing documents, such as updated eligibility charts. The agent reads every file you add, so keep a single source of truth to avoid contradictions.
Participant inquiries go unnoticed
- Lead captures land in the Chatref shared inbox, but your team must know to check it. Set up an email digest (available in your account settings) to receive daily summaries of new leads. Without this, inquiries can sit unopened.
FAQ
What causes clinical trial participant inquiry capture problems for Clinical Trial Sites & CROs?
The most common failure points are mismatched trigger settings, incomplete trial content, and disjointed handoffs. If lead capture only fires during business hours but most visitors inquire after hours, you lose leads. If your agent lacks the latest inclusion criteria, it gives vague answers that don't inspire trust. And if your team does not monitor the Chatref inbox or set up digest emails, captured details never reach a coordinator. Integrations with external CRMs are not native to Chatref, so reliance on manual cross-checking can also cause timing gaps.
How do I improve clinical trial participant inquiry capture for Clinical Trial Sites & CROs?
Shorten the path from question to handoff. Keep lead capture forms to three fields or fewer so visitors complete them. Train your agent on very specific trial details - include dosing schedules, phase descriptions, and principal investigator names so answers feel authoritative. Set the lead capture trigger to appear after the first meaningful question, such as anything containing "enroll" or "participate." Finally, automate the follow-up: use Chatref's conversation tags to flag inquiries by trial, then review them in the shared inbox at set times each day to move fast.
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.