BotStar: Integration with Boei

Boei can easily be connected to BotStar. It is super simple!

This is how it will look like:

Step 1. Load BotStar

Keep your BotStar embed code installed on your site. You can check that it works when you (temporarily) remove the Boei embed code because when Boei "sees" BotStar, it will automatically hide it.

You probably need to change your current embed code for BotStar a bit.

BotStar can be loaded in multiple configurations (LiveChat, Inline, etc).

To make it most simple, please use the following HTML code for loading BotStar:

<script>var BotStar={appId:"BOTSTAR_APP_ID",mode:"livechat"};!function(t,a){var e=function(){(e.q=e.q||[]).push(arguments)};
e.q=e.q||[],t.BotStarApi=e;!function(){var t=a.createElement("script");
var e=a.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}();}(window,document)</script>
<script async defer src=""></script>

If the above code does not work, this can be because BotStar adjusted their api integration with newer bots. Please try this out:

 <script>var BotStar={appId:"BOTSTAR_APP_ID",mode:"livechat"};!function(t,a){var e=function(){(e.q=e.q||[]).push(arguments)};e.q=e.q||[],t.BotStarApi=e;!function(){var t=a.createElement("script");t.type="text/javascript",t.async=1,t.src="";var e=a.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}();}(window,document)</script>

Please change BOTSTAR_APP_ID with your App ID.
You can use this example to test: s46248522-45d8-4fff-af85-7ebd2ee3ccee

Step 2. Turn off welcome messages

Ensure to turn off welcome messages in BotStar. These prevent customers to interact with Boei. Also, Boei already has a welcome message that you can use.

Greeting messages

If applicable, turn off the greeting messages:

First-time messages

If applicable, turn off first-time messages:

Step 3. Create a BotStar helper in Boei

Add a new helper with the type BotStar.

Give it a test to see if everything is set up correctly.

Done! 😀

Feedback Questions

Last updated: Oct 3, 2022