How to add live chat to your website
Create a website widget in Chateor, paste its JavaScript snippet into your site, and test a complete conversation before inviting customers to use it.
1. Get your widget code
- Create a Chateor workspace and add a channel for website support.
- In the channel, open Connection methods and select Website Widget.
- Enter the domains that will host the widget. Save its language, colors, and launcher position, then copy the installation code from Dashboard.
Use the actual host visitors will open. If you test on a staging domain, include that host in the widget configuration for the test.
2. Install the widget
Paste the full snippet before </body> in the template shared by the pages that need chat. In a site builder, use the custom code area that accepts JavaScript. Add the snippet once per page and publish the changes.
Keep the script URL copied from your own Dashboard. That URL identifies the widget you configured for the channel. See the website widget documentation for more configuration options.
3. Send and answer a test message
- Open the published test page in a private session on your phone. Check that the launcher leaves access to the checkout button, navigation, and page content.
- Open the chat and send an identifiable test message, such as “Widget launch test from checkout.”
- Find the conversation in the agent application, reply as an agent, and confirm the reply appears in the same conversation on your phone.
If several teams use Chateor, check that the agents assigned to this channel can see the conversation.
If the chat launcher is missing
- Compare the host in the address bar with the allowed domains in Dashboard.
- Check that the published template contains the complete script tag and that you changed the template used by this page.
- Check your site's Content Security Policy and browser console for blocked script or connection requests.
- Review the widget display settings if your site uses a custom launcher. See the Widget JavaScript API for display controls.