Skip to documentation

Install the chat widget on your website

Copy your bot's embed code, publish it in your site's HTML, and verify a conversation from the live page.

On this page

Copy the snippet for the correct business

  1. You need an active bot and permission to edit your website's HTML or its shared custom-code area. If another person manages the website, send them the snippet from this bot's preview page.
  2. Open the bot's workspace and select Preview website widget in the header. You can also use Configure widget → Preview and install.
    Preview website widget is outlined in the workspace header beside the language selector.
    Open the preview and leave the workspace tab available so you can compare the visitor’s message with the inbox.
  3. Find Website widget HTML embed code. Copy the entire script exactly as shown. It contains this bot's public tenant identifier.
    The installation panel outlines Website widget HTML embed code below the three steps for adding the bot to a website.
    Copy the full script from your own bot’s preview page. The sample shows where to find it.

Place and verify the widget

  1. Paste the script once into the shared page layout immediately before the closing </body> tag. In a site builder, use its custom HTML or footer code area if it supports module scripts. Publish the website.
  2. Open a fresh page on the published site. Open the launcher, check the greeting, and send one of your approved questions. Repeat on a narrow mobile window.
    The preview checklist outlines Send a typical customer question, alongside checks for branding, mobile layout and handoff.
    Try a question with a known answer. Check the greeting and repeat the test on a narrow screen.
  3. Open Inbox in the same bot's workspace and find the new conversation. With the standard snippet installed, changing the active layout in Pektrix takes effect when visitors next load the page.
    A web visitor asks “Where can I contact your team?” and the outlined bot reply gives hello@example.com.
    Match both messages with the widget. In your workspace, the bot’s reply should contain the contact details you saved in the FAQ.

If the launcher is missing or shows the wrong bot

  1. Check Preview website widget first. If the preview works, inspect the published page's HTML to confirm the website retained the complete script, including type and tenant identifier.
  2. Compare the published snippet with the current bot's installation code. Look for an older widget script left in another shared template or tag manager.
  3. If the browser reports a blocked script or origin, give the site administrator the affected page address and the browser's error message. If preview also fails, check that the bot is active and the selected layout is available.