Skip to content
Ask a question in your own words

Connect the Web Widget

Learn how to connect the Mando AI Web Widget and allow visitors to chat with your AI Agent directly from your website.

2 weeks ago3 min read

The Web Widget lets customers interact with your AI Agent using a live chat experience embedded on your website.

This is useful for:

  • customer support

  • ecommerce assistance

  • lead generation

  • onboarding

  • product questions

Open the Web Widget installation page

To install the widget:

  1. Open your AI Agent workspace

  2. Go to the Playground

  3. Open the Test & Deploy step

  4. Stay on the Website Visitor tab

Inside this section, Mando AI provides your installation script on the How to install the script card.

Copy the installation script

Inside the installation section:

  1. Click Copy

  2. Copy the generated script

The script is unique to your workspace and AI Agent. Use the Copy button rather than retyping it: the script contains an address unique to your AI Agent, and one wrong character stops it from loading.

Add the script to your website

Paste the script before the closing </body> tag on your website.

Example locations include:

  • website templates

  • theme layouts

  • footer scripts

  • global site settings

Put it in the template or layout your pages share. One copy of the script there covers every page, so you do not need a different script per page.

After publishing your changes, the widget will appear on your website automatically.

Install using Google Tag Manager

Mando AI also supports installation through Google Tag Manager.

To do this:

  1. Open Google Tag Manager

  2. Create a new custom HTML tag

  3. Paste the widget script

  4. Publish your container changes

This is useful if you manage scripts centrally using GTM.

If your AI Agent uses more than one language

When your AI Agent has more than one language turned on, the installation card shows a tab for each language. Each tab has its own script with that language set in it.

Copy the script from each language tab and paste it on the matching language version of your website.

Install for signed-in users

Next to Website Visitor there is a Logged-in User tab. It adds a step that tells Mando AI who the visitor is. Start with the Website Visitor script and add the logged-in version later if you need it.

Test the widget

After installation:

  1. Open your website in a normal browser window

  2. Verify the widget appears correctly and look for the chat bubble

  3. Start a test conversation

  4. Review your AI Agent responses

You can continue testing and improving your AI experience from the Playground.

If the widget does not appear, check two things:

  • a caching layer, such as a cache plugin or CDN, may still be serving your old pages

  • the script may be on one page only, instead of the template all your pages use

Customize the widget later

After installation, you can continue customizing:

  • colors

  • greeting messages

  • launcher position

  • branding

  • AI behavior

Widget settings can be updated later without reinstalling the script.

PRO TIP:
Test the widget on both desktop and mobile devices after installation to make sure the experience looks correct across all screen sizes.

Next steps

Did this answer your question?

More Support

Get more support from us