Launch the chat widget
Add the chat widget to any website with one script tag, then choose where it appears.
Launching the chat widget takes two steps: paste one script tag into your website, then tell Octocom which domains and pages should show the chat. After that, visitors see the launcher and can chat with the AI agent straight away.
On Shopify?
If the storefront is hosted by Shopify, skip the script tag and use the Shopify chat widget tutorial. The app embed does the same job with no code.
Use this guide instead for a headless or custom storefront, even when Shopify powers the checkout or order data behind it. The Shopify theme editor has no effect on pages Shopify doesn't render. If you run both (a custom site plus a Shopify storefront), set up each one with its own method.
For WooCommerce and PrestaShop, see WooCommerce and Install web chat on PrestaShop. To share a chat without installing anything, use the hosted chat page.
1. Add the script tag
Open the Octocom dashboard and select your organization and business. Go to Settings -> Channels -> Web Chat -> Deployment and choose Copy script under Install on your website. The script already contains your organization ID, so you don't need to look it up.
Paste that script into your website's HTML. It looks like this (with the ID from your copied script in place of the placeholder):
<script
id="octocom-script"
data-organization-id="YOUR_ORGANIZATION_ID"
src="https://www.octocom.ai/chatbot/bundle.js"
async
></script>Keep both id="octocom-script" and data-organization-id. The organization ID is public installation configuration, not a secret or an API credential. It makes the widget load only your organization's configurations, and the widget checks the returned organization before it shows content or runs custom JavaScript. A wrong ID leaves the widget unloaded rather than loading another organization's chat.
Domain and page rules (step 2) choose which of your organization's chats appears. To load one particular chat directly, turn on Use only this web chat before copying. That adds data-config-id to the script, which bypasses domain and page selection.
If a plugin installs your script, use a version that includes your organization ID, or replace its script with the one copied from Web Chat settings.
Script without an organization ID?
Earlier versions of the script have no data-organization-id. You don't need
to change anything: they keep loading your chat on every domain where they
were already live when organization IDs were introduced.
For a new domain, install the script from Settings -> Channels -> Web Chat -> Deployment. You can also switch an existing site to it whenever convenient: it works immediately and your deployment rules stay the same.
You can add the script:
- directly in your website's HTML (recommended), or
- through a tag manager such as Google Tag Manager.
Tag managers and ad blockers
Some browser ad blockers block scripts loaded through Google Tag Manager, so the widget may not appear for those visitors. For reliable loading, add the script directly to your website's HTML.
Cookie consent
The widget sets no cookies and stores nothing in the visitor's browser until they open the chat, so it is normally classified as strictly necessary and doesn't need to wait for a consent banner. The classification is yours to make: Browser storage and consent has the full storage breakdown and a consent-gated loading recipe.
2. Add your domain
With the standard script, domain and page rules decide where the widget appears. A script with data-config-id loads its chat directly and ignores these rules.
- In the Octocom dashboard, open Settings -> Channels -> Web Chat -> Deployment.
- Select Add Domain and enter your hostname, such as
example.com. - Turn on Enable Deployment for it.
- Save.
The widget then appears for visitors on that domain. To limit it to some pages, such as /faq or /contact, add a Path Pattern. See Deployment and visibility for path patterns, query conditions and several configurations on one site.
Each hostname needs its own entry
Domains are matched by exact hostname, so list every hostname you want the widget on separately:
example.comandus.example.comare different hostnames, so list both.www.example.comandexample.comare treated as the same, so you only need one of them.- Locale paths on one hostname (
example.com/us/,example.com/nl/) are all covered by that single entry.

3. Optional: hide the widget during set hours
To hide the widget at set times, for example while your support team is online, turn on Hide Web Chat During Specific Hours in the same Deployment section and set the hours. The widget is hidden during those hours and shown outside them. See Deployment and visibility.
Next steps
- Configure the chat widget: appearance, greetings, suggested questions and behavior.
- Attention grabbers: invite visitors to start a chat.
- Control the chat widget with code: open the chat from your own links and buttons.