How to Add Asyntai AI Chatbot to BigCommerce
Step-by-step guide for BigCommerce stores
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: Choose Installation Method
There are several ways to add the chat widget to BigCommerce. Choose the method that works best for you:
Method 1: Using Script Manager (Recommended)
The Script Manager is the easiest and recommended way to add custom scripts to your BigCommerce store. It doesn't require any coding knowledge and persists across theme changes.
- Log in to your BigCommerce Control Panel
- Go to Storefront → Script Manager
- Click the "Create a Script" button
- Configure your script with these settings:
- Name: Asyntai AI Chatbot
- Description: AI-powered chat widget (optional)
- Placement: Footer
- Location: All Pages
- Script Category: Functional
- Script Type: Script
- In the "Script Contents" box, paste your Asyntai embed code
- Click "Save"
Why use Script Manager? Scripts added through Script Manager are managed separately from your theme. They won't be affected when you update or change your store theme.
Method 2: Using Page Builder
You can use BigCommerce's Page Builder to add the chat widget using an HTML element. This method is useful if you want more control over where the widget appears.
- Log in to your BigCommerce Control Panel
- Go to Storefront → My Themes
- Click the "Customize" button on your active theme
- In the Page Builder's left sidebar, find the "HTML" element
- Drag and drop the HTML element to the footer area of your page template
- Click on the HTML element and select "Edit HTML"
- Paste your Asyntai embed code
- Click "Save HTML"
- Click "Publish" to apply changes to your live store
Note: If you want the chatbot on all pages, you'll need to add it to a global region like the footer. The Script Manager method is easier for site-wide installation.
Method 3: Edit Theme Files (Stencil Themes)
For developers using Stencil themes, you can add the code directly to your theme files. This requires access to your theme's source files.
Using BigCommerce Control Panel
- Go to Storefront → My Themes
- Click "Advanced" on your active theme
- Select "Edit Theme Files"
- Navigate to templates → components → common
- Open footer.html
- Scroll to the bottom of the file
- Paste your Asyntai embed code just before the closing tag
- Click "Save & Apply File"
Using Stencil CLI (Local Development)
If you're developing locally with the Stencil CLI:
- Open your theme's local files
- Navigate to templates/components/common/footer.html
- Add your Asyntai embed code before the closing tags
- Push your changes using
stencil push
Important: Theme file changes may be overwritten when you update your theme. For a permanent solution that persists across theme updates, use the Script Manager method.
Step 3: Verify Installation
After adding the code, visit your BigCommerce store in a new browser tab or incognito window. You should see the chat widget button in the bottom right corner of your store. Click it to make sure it opens and works correctly.
Not seeing the widget? Clear your browser cache and try again. If you've made changes through the Theme Editor, make sure you clicked "Publish" to apply the changes to your live store.
Weebly