Skip to main content
Widgets are the way you bring your Compass agent to your audience. A widget is an embeddable chat interface that you can add to any website with a single line of code — giving your visitors instant access to your AI-powered agent without leaving your site. Each widget is connected to a single agent, and you can create multiple widgets for different websites, audiences, or use cases.
Before creating a widget, make sure you have at least one active agent configured. If you haven’t created an agent yet, start with the Creating an Agent guide.

How to create a widget

1

Navigate to the Widget section

In the Compass dashboard, open the Deploy section in the left sidebar and click Widget. This takes you to the widget management page where you can view all your existing widgets or create a new one.
2

Click Create Widget

Click the Create Widget button to open the widget editor. You’ll see the configuration panel on the left and a live preview on the right.
3

Configure General settings

In the General tab, set up the core details of your widget:
  • Widget Title — Give your widget a name that appears in the header bar.
  • Assign Agent — Select the agent that will power this widget’s chat experience.
  • Footer Text — Add any disclaimers, legal text, or helpful links using the rich text editor.
  • Navigation — Choose which tabs to display (Explore, Chat, Resources) and set the default tab visitors see first.
The agent you assign determines what knowledge and guardrails the widget uses. Its resources will automatically populate the widget’s Resources tab.
4

Customise the appearance

Switch to the Style tab to tailor the widget’s look and feel to your brand. You can configure the widget type, colours, typography, theme, and launch button appearance.See Customising Your Widget for a full breakdown of every styling option.
5

Set up domain restrictions

In the Embed tab, configure which websites are allowed to display your widget. Domain restrictions add a layer of security by preventing unauthorised sites from embedding your widget.See Embedding Your Widget for detailed instructions.
6

Preview your widget

As you make changes, the preview panel on the right side of the editor updates in real time. Use this to check your widget’s appearance, test tab navigation, and review content before going live.
You can preview your widget in real time as you configure it using the preview panel on the right side of the editor. This is the fastest way to iterate on your design.
7

Activate and save

When you’re happy with your configuration, toggle the widget status to Active and click Save. Your widget is now ready to be embedded on your website.

Widget statuses

Every widget has one of three statuses that controls its availability:
StatusDescription
DraftThe widget is still being configured. It cannot be embedded or accessed externally. This is the default status for new widgets.
ActiveThe widget is live and can be embedded on websites. The embed code will only work when the widget is in this status.
InactiveThe widget is paused. It remains configured but will not load on any website. Use this to temporarily take a widget offline without deleting it.
You can change a widget’s status at any time from the widget editor. Switching a widget to Inactive will immediately stop it from loading on any website where it’s embedded.

Assigning an agent

Each widget is powered by a single agent. When you assign an agent to your widget:
  • The agent’s AI model, tone, and configuration drive the Chat tab experience.
  • The agent’s uploaded resources automatically populate the widget’s Resources tab.
  • The agent’s guardrails and compliance settings apply to all conversations within the widget.
Only agents with an Active status are available for assignment. If you don’t see the agent you’re looking for, check that it has been activated in the Agent settings.

Next steps

Customise Your Widget

Configure colours, typography, themes, and layout to match your brand.

Embed Your Widget

Get the embed code and add your widget to your website.

HCP Verification

Restrict widget access to verified healthcare professionals.

Creating an Agent

Set up the agent that powers your widget.