How to Add Asyntai AI Chatbot to Bubble
Step-by-step guide for Bubble apps
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 async src="https://asyntai.com/static/js/chat-widget.js" data-asyntai-id="YOUR_WIDGET_ID"></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:
- Log into your Bubble app editor
- Go to Settings in the left sidebar
- Click the "Web App" tab
- Scroll down to "Advanced Settings"
- Find the "Custom headers and body" section
- Paste your Asyntai embed code in the "Script in body" field
- Deploy your app
Tip: Adding the code to the body script field ensures it loads on every page of your Bubble app, which is the recommended approach for chat widgets. This feature is available on all Bubble plans including free.
Alternative: Using HTML Element
If you prefer to add the chatbot to a specific page only:
- In the Bubble editor, open the page where you want the chatbot
- Add an HTML element to your page
- Paste the Asyntai embed code in the element
- 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.
Weebly