Back to Dashboard

Documentation

Learn how to use Asyntai

How to Add Asyntai AI Chatbot to Bubble

Step-by-step guide for Bubble apps

Get Embed Code

Step 1: Get Your Embed Code

First, go to your Asyntai Dashboard and scroll down to the "Embed Code" section. Copy your unique embed code which will look like this:

<script>(function(){var l=function(){var s=document.createElement("script");s.src="https://widget.asyntai.com/static/js/chat-widget.js";s.async=true;s.setAttribute("data-asyntai-id","YOUR_WIDGET_ID");document.head.appendChild(s)};if(document.readyState==="complete"){l()}else{window.addEventListener("load",l)}})();</script>

Note: The code above is just an example. You must copy your own unique embed code from your Dashboard as it contains your personal widget ID.

Step 2: Using App Settings (Recommended)

Bubble has a built-in way to add custom scripts through the app settings:

  1. Log into your Bubble app editor
  2. Go to Settings in the left sidebar
  3. Click the SEO/Meta tags tab
  4. Paste your Asyntai embed code in the Script/meta tags in header field
  5. Deploy your app

Tip: Code in this field loads in the header of every page of your Bubble app. If the field is not active on your plan, ask Bubble support.

Alternative: Using HTML Element

If you prefer to add the chatbot to a specific page only:

  1. In the Bubble editor, open the page where you want the chatbot
  2. Add an HTML element to your page
  3. Paste the Asyntai embed code in the element
  4. Deploy your app

Note: The app settings method is preferred as it applies the chatbot across your entire app. The HTML element method will only add the chatbot to the specific page where you place the element.

Step 3: Verify Installation

After deploying your app, visit your Bubble site in a new browser tab or incognito window. You should see the chat widget button in the bottom right corner. Click it to make sure it opens and works correctly.

Not seeing the widget? Make sure you deployed your app after adding the code. Try clearing your browser cache or viewing in an incognito window. If testing in development mode, make sure to check the live version of your app as well.