Install
The widget is a small script. You copy it from the dashboard and paste it once. After that, the assistant appears on every page that loads the snippet.
Copy the embed code
- Sign in and open the bot you want to publish.
- In the dashboard header, click Deploy (on Config, smaller screens also show Get script).
- Press Copy. You do not need to edit the code. The
data-bot-uidvalue is unique to that bot.
The snippet looks like this (your bot UID and script URL will match your account):
<script>
(function() {
var script = document.createElement('script');
script.src = 'https://botext.ai/api/connect-script/widget.js';
script.setAttribute('data-bot-uid', 'YOUR_BOT_UID');
script.async = true;
document.head.appendChild(script);
})();
</script>
Optional: if you translated the widget, you can lock a language by adding script.setAttribute('data-language', 'en'); (or another locale from the Deploy language menu).
WordPress
- In WP Admin, install and activate the plugin WPCode – Insert Headers and Footers.
- Open Headers and Footers from the WPCode menu.
- Paste the BoText snippet into the Header box and save.
- Refresh a public page of the site. The widget should appear.
Shopify
- Go to Online Store → Themes, open the current theme menu, and choose Edit code.
- Open
theme.liquid. - Paste the snippet inside the
<body>tag (near the end is fine) and save. - Refresh the storefront to confirm the bot is visible.
Framer
- Open the project, then Settings (gear icon).
- Open General → Custom code and add a script.
- Paste the BoText snippet, then Publish.
- Open the live site (not only the editor canvas) to see the widget.
Any other website
Look for a “custom code”, “header scripts”, or “theme HTML” section. Paste the snippet in the <head> or <body>. If you edit files yourself, add it once in a shared layout so every page loads it.
Using a builder we have not listed? Write to Support with the platform name — we can send a short guide for that stack. There is also a video walkthrough on our YouTube channel.