MagizAI
Help Center /Your chatbot /Install the chat widget

Install the chat widget

Paste one script tag before </body> and the chat appears.

Your chatbot 1 min read Updated Jul 2026

Open the bot's Install tab and copy the snippet. Paste it once, just before the closing </body> tag on every page where you want the chat to appear.

<!-- Paste before </body> -->
<script src="https://yourdomain.com/widget.js"
        data-key="YOUR_PUBLIC_KEY" defer></script>

The data-key is your bot's public key (shown on the Install tab). The chat launcher appears in the corner you chose, using the bot's live theme and knowledge. The Install tab also loads the real widget on itself so you can test it before going live.

Paused bot? If the bot is not Active, the widget shows a "this chatbot is paused" notice and won't answer. Turn it on in the bot's Settings. Prefer to call it from your own backend? See the REST API.

Was this article helpful?
Can't find what you need? Our team is happy to help.
Contact support