Skip to content

Guide

How to add an AI chatbot to your website

To add an AI chatbot to your website, train it on your own pages and files, test its answers, choose the phrases that hand a chat to a person, and paste one script tag just before the closing </body> tag. With AssistBot the snippet is the only code you touch, and it works on any site that lets you add custom code.

Updated

Before you start

What you need

  • An AssistBot account. The Free plan is enough to set up and test.
  • Your website URL, plus any files your team answers from.
  • Access to your site’s footer code: the HTML template, a header and footer code plugin on WordPress, Custom code in Webflow or Framer, or theme.liquid in Shopify.
  1. Step 1

    Create an account and an agent

    Sign up and create an agent. The agent is the chatbot that will sit on your site. The Free plan includes 1 agent and 150 messages a month, with no card needed.

  2. Step 2

    Add your website and choose the pages

    On the Knowledge page, enter your website URL. AssistBot finds the pages on the site and lists them, and you keep the ones that hold answers.

    • Keep pages visitors ask about: help center articles, shipping and returns, pricing, product or plan pages, opening hours and contact details.
    • Leave out pages with no answers in them, such as login, cart or account pages.
    • The Free plan covers 10 website pages. Startup and Growth have no page limit.
    • When a page changes, use Retrain on that source so the agent reads the new version.
  3. Step 3

    Upload files and add Q&A pairs

    Add anything your website does not say. Upload PDF, Word (.docx), TXT or Markdown files, paste text, or write question and answer pairs.

    • Good files to upload: product manuals, policy documents, onboarding guides and internal FAQs you are happy for visitors to read.
    • Q&A pairs are the quickest fix when the agent gets one specific question wrong.
    • File storage is 1 MB on Free, 50 MB on Startup and 100 MB on Growth.
  4. Step 4

    Test the answers in the Playground

    Open the Playground and ask the questions your customers ask. Choose the AI model and edit the instructions until the replies read the way you want.

    • Use real questions from your inbox or support email, including ones your docs do not answer.
    • Write in the instructions what the agent should say when your sources do not cover a question, for example that it does not know and can bring in a person.
    • Test replies count as messages, the same as replies on your site.
  5. Step 5

    Set your handoff phrases

    On the Handoff page, list the phrases that should bring in a person, such as "refund" or "speak to someone". When a visitor uses one, the AI stops replying and the chat moves to your Inbox. Handoff is on the Startup, Growth and Enterprise plans.

    • Write the queue message the visitor sees while they wait for a teammate.
    • Connect Slack, Microsoft Teams or Discord to get an alert with a link to the conversation. Replies are written in the AssistBot Inbox, not from Slack.
    • Teammates can reply under their own name or a persona your team shares.
  6. Step 6

    Match the widget to your site

    On the Appearance page, set the colour, avatar, greeting and the corner the launcher sits in. The preview updates before you save.

    • Paid plans remove the AssistBot branding from the widget (Startup, Growth and Enterprise).
  7. Step 7

    Paste the snippet before </body>

    Copy the snippet from the Install page and paste it just before the closing </body> tag of your site, or into the footer code setting of your site builder. Publish the change.

    • If your pages share a footer or layout template, paste it there once and it loads on every page.
    • The script loads asynchronously, so it does not hold up the rest of your page.
    • For signed-in users you can pass their name and email with AssistBot.init so your team sees who they are.
    The snippet from the Install page. Your agent ID is filled in for you there.
    <!-- AssistBot widget -->
    <script>
    (function () {
      var s = document.createElement('script');
      s.src = 'https://www.assistbot.app/widget/assistbot.js';
      s.async = true;
      s.onload = function () {
        AssistBot.init({ agentId: 'YOUR_AGENT_ID' });
      };
      document.head.appendChild(s);
    })();
    </script>
  8. Step 8

    Check that it is installed

    Open your site in a browser so the launcher loads, then go back to the Install page and click Check again. It shows Installed, the site it was seen on and when.

    • If it still says Not detected, check that you published the change and cleared any caching plugin or CDN cache.

Platforms

Where to paste it on your platform

The same snippet works everywhere. Only the place you paste it changes.

  • Shopify

    Online Store → Themes → Edit code, then paste the snippet above </body> in layout/theme.liquid. How to add a chatbot to Shopify

  • WordPress

    Install a header and footer code plugin such as WPCode and paste the snippet into the Footer box. How to add a chatbot to WordPress

  • Webflow

    Site settings → Custom code → Footer code, then publish. Webflow only runs site-wide custom code on paid site plans. How to add a chatbot to Webflow

  • Framer

    Site Settings → Custom Code → End of <body> tag, then publish. The launcher shows on the published site, not in the editor.

  • Next.js or React

    The Install page has a small client component that loads the script once. Render it in your root layout.

  • Wix, Squarespace and other builders

    Use the builder’s custom code setting and place the snippet at the end of the page body.

  • Hand-built sites

    Paste the snippet before </body> in your shared footer or layout template.

Cost

How much it costs

AssistBot has a free plan with 150 AI messages a month and 1 agent. Startup is $24 a month, or $19 a month billed yearly for 5,000 messages. Growth is $49 a month, or $40 a month billed yearly for 20,000 messages and 3 agents. Enterprise is priced on request. Prices are in USD.

AssistBot plans, prices in USD and limits
PlanPrice (USD)
Free$0 a month150 messages a month, 1 agent, 10 website pages, 1 MB of files, no teammates, no human handoff
Startup$24 a month, or $19 a month billed yearly5,000 messages a month, 1 agent, unlimited website pages, 50 MB of files, 2 teammates, human handoff
Growth$49 a month, or $40 a month billed yearly20,000 messages a month, 3 agents, unlimited website pages, 100 MB of files, 5 teammates, human handoff
EnterpriseCustom pricingCustom messages, agents, storage and seats

What counts as a message. One message is one reply written by the AI, including the confirmation when a visitor books a meeting in the chat and test replies in the Playground. Visitor messages, the handoff notice and replies your team sends from the Inbox do not count. A reply costs one message whichever AI model the agent uses.

Other fees. There are no per-seat or per-resolution fees. Free, Startup and Growth are flat monthly prices; teammates are a plan limit (Startup up to 2 teammates, Growth up to 5 teammates), not a charge per person. Enterprise is quoted per contract.

Compare AssistBot plans and limits

FAQ

Questions about adding a chatbot

How do I add an AI chatbot to my website?

Train the chatbot on your pages and files, test it, set when it should hand a chat to a person, then paste its script tag just before the closing </body> tag of your site. In AssistBot that is the Knowledge, Playground, Handoff and Install pages, in that order.

How much does an AI chatbot for a website cost?

AssistBot has a free plan with 150 AI messages a month and 1 agent. Startup is $24 a month, or $19 a month billed yearly for 5,000 messages. Growth is $49 a month, or $40 a month billed yearly for 20,000 messages and 3 agents. Enterprise is priced on request. Prices are in USD. There are no per-seat or per-resolution fees. Free, Startup and Growth are flat monthly prices; teammates are a plan limit (Startup up to 2 teammates, Growth up to 5 teammates), not a charge per person. Enterprise is quoted per contract.

Is there a free plan?

Yes. The Free plan includes 150 messages a month, 1 agent, 10 website pages and 1 MB of files, with no card needed. It shows AssistBot branding on the widget and does not include human handoff, which starts on Startup. One message is one reply written by the AI, including the confirmation when a visitor books a meeting in the chat and test replies in the Playground. Visitor messages, the handoff notice and replies your team sends from the Inbox do not count. A reply costs one message whichever AI model the agent uses.

Do I need to know how to code?

No. The only code is the snippet, and you copy it from the Install page. Most site builders have a box for footer or custom code where you paste it.

Will the chatbot slow down my website?

The snippet adds the AssistBot script with the async attribute, so the browser keeps loading and showing your page while the script downloads.

Add AssistBot to your site

The free plan includes 150 AI replies a month and 1 agent. No card needed.