Skip to main content

Website Channel

The website channel adds a floating chat widget to your site. Visitors click the bubble, a conversation opens, and your AI employee responds — 24/7, no backend work required on your end.


Embed the widget

After configuring your employee and opening the Deploy tab:

  1. Under Website, choose a widget placement (bottom right is the most common)
  2. Set the accent color to match your brand
  3. Click Save widget settings
  4. Expand Advanced settings and copy the script tag
<script
src="https://widget.optimly.io/widget.js"
data-agent-id="YOUR_AGENT_ID"
async
></script>

Paste it before </body> on every page where you want the chat to appear. Publish and you're live.


Restrict to specific domains

By default the widget loads on any domain. To lock it to your site:

  1. Open your employee's Configure → Behavior section (or Settings)
  2. Find Allowed origins
  3. Enter your domain: https://www.yoursite.com

The widget will silently fail to load on any other domain.


Manual Mode

You can take over any website conversation from the Conversations page. Toggle the Manual/AI switch on any open chat — your employee steps back, your team takes the keyboard.

See Manual conversation control for the full flow.


Troubleshooting

ProblemFix
Widget doesn't appearConfirm the script is before </body> and the domain is allowed
Widget loads but employee gives wrong answersUpdate the Knowledge section in Configure
Widget appears on wrong pagesConditionally load the script only on pages where you want it
Accent color not updatingSave widget settings, then hard-refresh the browser cache

Related: Channels overview · Configure your employee · Manual Mode