Embed your bot on a Wix site. Access the code by navigating to the Share tab in your bot's dashboard and selecting the Wix option under the CMS category, then choosing an embed type.
Standard (inline on a page)
- In the Wix Website Editor, go to Add > Embed Code > Embed HTML
- Click Enter code and paste:
<script type="module">
import Bot from "https://cdn.jsdelivr.net/npm/@inditeai/js@0/dist/web.js";
Bot.initStandard({
bot: "my-bot",
});
</script>
<bot-standard style="width: 100%; height: 100%;"></bot-standard>- Resize and position the HTML element where you want the bot to appear
Bubble (site-wide chat button)
- In your Wix dashboard, go to Settings > Custom Code (under Advanced)
- Click + Add Custom Code and paste this snippet in the code box:
<script type="module">
import Bot from "https://cdn.jsdelivr.net/npm/@inditeai/js@0/dist/web.js";
Bot.initBubble({
bot: "my-bot",
});
</script>- Under Place Code in, choose Body - end
- Click Apply
Ensure the bot parameter matches your bot's unique ID, available in the Share tab. For popup mode and all configuration options, see the HTML & JavaScript guide.