Step-by-step guide to adding an AI chatbot to any website platform. One line of code, no developer needed. Works with WordPress, Shopify, Squarespace, Wix, and custom HTML.
You have decided to add an AI chatbot to your website. Great decision. The problem is that most chatbot platforms make installation feel like a software engineering project — embed codes, API keys, JavaScript snippets, configuration files, and a 45-minute setup process that requires your web developer.
With FrontlineHQ, it takes 60 seconds and one line of code. No developer needed. No plugins to install. No configuration files to edit.
Here is exactly how to do it on every major website platform.
First, sign up at frontlinehq.ai and create your chatbot. The setup wizard walks you through three steps:
Your embed code looks like this:
```html <script src="https://frontlinehq.ai/api/widget/YOUR-BUSINESS-ID" defer></script> ```
That is it. One line. Now let us put it on your website.
WordPress is the most common platform for local businesses, powering over 40% of all websites. Here is how to add the chatbot:
Option 1: Using the Theme Editor (fastest)
Option 2: Using a Plugin (no code editing)
If you are not comfortable editing theme files:
Option 3: Using Elementor, Divi, or other page builders
The chatbot will now appear on every page of your WordPress site.
Shopify stores can add the chatbot in under a minute:
That is it. The chatbot will appear on every page of your Shopify store — product pages, collections, the homepage, and even the cart page.
Why this matters for e-commerce: Shopify stores see an average of 2 to 3% conversion rate. A chatbot that answers product questions in real time can increase that to 4 to 5% — because visitors who engage with a chatbot are 2.8 times more likely to purchase.
Squarespace makes it easy with their built-in code injection feature:
Done. The chatbot appears on every page. No plugins, no theme editing, no developer needed.
Note: Code Injection is available on Squarespace Business and Commerce plans. If you are on a Personal plan, you will need to upgrade — but if you are adding a chatbot, you are likely already on a Business plan.
Wix requires a slightly different approach, but it is still simple:
The chatbot will appear across your entire Wix site.
Alternative method using Wix Editor:
If your website runs on a custom CMS, static HTML, Next.js, React, Vue, or literally anything else — the process is the same:
The FrontlineHQ widget is a single JavaScript file that creates its own container using Shadow DOM. It does not conflict with your existing CSS or JavaScript. It does not require jQuery, React, or any framework. It works on any website that can run JavaScript — which is every website.
After adding the code, verify it is working:
If the bubble does not appear:
Does it slow down my website?
No. The script uses the defer attribute, which means it loads after your page content. It does not block rendering. The total script size is under 15KB — smaller than most images on your site.
Will it conflict with my existing chat or pop-up tools?
No. The FrontlineHQ widget runs inside a Shadow DOM, which means its CSS and JavaScript are completely isolated from your website. It will not affect your existing tools, and they will not affect it.
Can I customize the position and colors?
Yes. From your FrontlineHQ dashboard, you can change the accent color, initial greeting message, and position. These changes apply automatically — no code changes needed on your website.
Does it work on mobile?
Yes. The widget is fully responsive and designed mobile-first. On phones, it opens as a full-screen chat overlay for the best experience.
Can I add it to only certain pages?
Yes. Instead of adding the code to your global footer, add it only to the specific pages where you want the chatbot to appear. For WordPress, you can use conditional logic in your theme or a plugin like WPCode to load scripts on specific pages.
Once your chatbot is live, there are a few things you should do:
Your AI chatbot is now live and working 24/7. It answers questions, captures leads, and engages visitors while you focus on running your business.
Get started free at frontlinehq.ai — setup takes less than 5 minutes.
Book a free 30-minute AI Audit. We will show you exactly what to automate and how much you will save.