How to set up Osirus Bot via CDN

October 30, 20231 min

Osirus AI is a handy widget built with React that offers quick access to documentation, APIs, contact information, and more. In this blog post, we'll guide you through the process of setting up the Osirus bot via CDN, making it a breeze to integrate into your web project.

If you have a web app with multiple pages where each one triggers a new page refresh then you can simply copy and paste the snippet below before the </body> tag on every page or in your app HTML base template.

<script src="https://bot.osirus.ai/lib/umd/osirusai.min.js" type="text/javascript"></script>
<script type="text/javascript">
  OsirusBot.init(options);
</script>

 

Configure your widget

Before finalizing the installation, make sure to configure your bot according to your specific needs. You can define various options, such as the bot's name, company name, logo, colors, description, and more. This customization allows you to tailor the bot to match your branding and user experience requirements.

You have two options for initializing the bot:

  1. Create a bot on the platform: This method is highly recommended because it allows you to make real-time updates to your widget without requiring any changes to your code.
  2. Configure your bot with a JavaScript object: You can provide all the necessary settings directly from your code.