Widget troubleshooting
Find out why the widget is hidden or a message fails, and fix it from the Embed tab.
The widget shows to visitors only when it can chat. If something is wrong with the setup, visitors see no chat button, and the reason appears as a warning in your browser's developer console. Use this page to find the cause and fix it in Pegasus.
Check the browser console first
Open your website, then open the browser's developer tools and look at the Console. A warning that starts with [embed] Failed to initialize widget session means the widget could not start. The usual causes are listed below.
The bot is not Ready
The widget only starts when the bot is Ready. It stays hidden while the bot shows No documents, Not trained, Training, or Needs retraining.
Fix:
- If the bot has no documents, upload at least one supported document.
- Train the bot from the Training sources tab.
- Wait for Training to finish.
- If documents changed and the bot shows Needs retraining, train it again.
For details, see Bot is not ready.
The widget is off, removed, or the token changed
The widget stays hidden when it is off, removed, or the website still uses a snippet with an old token.
Fix:
Open the bot's Embed tab
The switch should read Widget is on.Copy the current snippet
Click Copy snippet in Pegasus. Do not edit the token by hand.Replace the site snippet
Put the new snippet on your website, clear the site cache if there is one, then reload the website as a visitor.
The website is not allowed
The widget stays hidden on a website that is not in the bot's Allowed websites list.
Fix:
- Open the bot's Embed tab.
- Add the exact address of the site that loads the widget, including protocol and port.
- If your site runs on both
https://example.comandhttps://www.example.com, add both. - Reload the website.
The matching rules are in Enable the widget.
Temporary connection problems
If Pegasus cannot be reached when the page loads, the widget retries a few times and appears once it connects. If it still has not appeared after a minute, reload the page.
"Message not sent."
The widget opened, but a visitor's message did not go through. The widget keeps the message and shows Retry next to it. Common causes: daily credits used up, the bot is no longer Ready, or a brief network interruption.
Fix:
Retry the message
A temporary network failure usually clears on the next try.Check daily credits
Open Subscription or Usage in Pegasus. If the workspace is out of credits, wait for the daily refill or upgrade your plan.
Check bot status
Check that the bot is still Ready. If documents changed, train the bot again before asking visitors to retry.
Remove the widget
To pause the widget without changing its token or snippet, turn the switch off on the Embed tab and turn it back on later. Remove the widget only when you want to discard its token and allowed websites.
How to remove it
Click Danger zone -> Remove widget in the side column of the Embed tab.
Click Remove widget
The "Remove the widget?" dialog explains the impact.Confirm
Pegasus removes the widget and shows "Widget removed." The old snippet stops showing the chat button.
Turn it on again later if needed
Click Turn on widget to create a new widget. It gets a new token and embed code, so paste the new snippet into your website.
What changes when you remove it
- The widget, its token, and its allowed websites are deleted.
- Visitors can no longer open the chat on your website.
- The bot, its documents, and your own Chat Workspace history stay as they are.
- Usage figures recorded before the removal remain.
If you only need a lighter refresh, rotate the token. Remove the widget when you want to drop it completely.
Quick checklist
| Check | Healthy state |
|---|---|
| Widget switch | Widget is on |
| Bot status | Ready |
| Snippet token | Matches the current Embed code |
| Allowed websites | The exact website address is listed, or the list is intentionally empty |
| Credits | Daily credits remain |