Skip to content
Start free
SectionGetting started

Install the chat on your website

2 min readUpdated
In this article

The chat appears on your site once its code is on every page. For an OpenCart or WooCommerce store you don’t need to add the code by hand — the module or plugin does it.

Add the code

  1. In the dashboard header, click “Settings” with the step counter → “Continue setup” and go to the “Installation on the site” step (more about the wizard).
  2. Choose the color, title, position and greeting — the preview shows how the customer will see the chat.
  3. Click “Copy code” or “Send to the developer” — the code will reach them by email.
  4. Paste the code before </body> in your site’s shared template — then the chat is on every page.
  5. Enter your site address in “Check the installation” and click “Check”.
1 — copy or send the code, 2 — check the installation.

The code looks like this. The dashboard fills in the chat ID itself, so copy the code from the dashboard.

HTML
<script id="chat-init" src="https://app.ayweb.chat/account/js/init.js?id=CHAT_ID"></script>

OpenCart or WooCommerce store

Install the module or plugin — it adds the chat to every page and trains the AI agent on your catalog. Step by step: “Connect an OpenCart store” and “Connect a WooCommerce store”.

How to check

Reload a page of your site — the chat button appears in the corner. Write in the chat: the conversation appears in the dashboard under “Conversations”.

If it doesn’t work

The chat is only on some pages
The code is on a single page. Move it to the shared template.
The chat isn’t visible
The site shows a cached copy of the page. Clear the site cache or the caching plugin.
A plugin combines scripts
Exclude init.js from combining — the chat tag must stay separate.

The chat looks the same on all your websites. Only the AI agent’s role is set per website.

Was this article helpful?