Home › Guides › How to add a chatbot to your website: a step-by-step guide

How to add a chatbot to your website: a step-by-step guide

Most small business websites can have an AI chatbot answering questions and capturing leads in about 15 minutes, with no coding. This guide walks through every step, with screenshots.

A website chatbot answering a visitor and capturing a lead.
A website chatbot answering a visitor and capturing a lead. (Example business.)

Key takeaways

  • Decide the chatbot's job first: answering questions, capturing leads, or both.
  • Train it on the pages that sell (services, prices, areas, FAQs), not your whole blog.
  • Installing is one snippet pasted into your site's footer settings on almost every platform.
  • Test it with your ten most common customer questions before you announce it.
  • Read conversations weekly: every unanswered question shows you what to add.

Before you start: what do you want the chatbot to do?

A chatbot is only as useful as the job you give it. Before choosing a tool, write down what you want visitors to be able to do without picking up the phone. For most small businesses the list looks like this:

  • Get answers instantly to the questions you hear every day: prices, opening hours, areas covered, how long a job takes, what's included.
  • Ask for a quote, booking or callback at any hour, and have their details sent to you.
  • Stop repeat emails and calls about things already written on your website.

If you mainly want a person to talk to visitors in real time, you want live chat software and someone to staff it. If you want visitors answered automatically, you want an AI chatbot trained on your own content. We compare the two in chatbot vs live chat. This guide covers the AI chatbot route, because it's what most small teams can actually run.

From sign-up to live in five steps1ScanEnter your websiteaddress and pickthe pages thatmatter.2AddUpload pricelists, brochuresor extra Q&As.3BehaveChoose tone, replylength and when toask for details.4InstallPaste one snippetinto your site'sfooter settings.5TestAsk real customerquestions beforeyou announce it.

Step 1: Choose a chatbot that learns from your website

Older chatbots worked like phone menus: you drew a decision tree by hand and the bot followed it. Modern AI chatbots read your website and documents and answer in plain language. That difference matters for a small business because nobody has time to design and maintain flows.

When you compare tools, check these five things:

CheckWhy it mattersWhat good looks like
TrainingSetup time and answer qualityLearns your site from its address; lets you add PDFs and extra Q&As
AccuracyWrong answers lose customersAnswers only from your content and says when it doesn't know
Lead captureThis is where the money isAsks for contact details at the right moment and emails them to you
Pricing modelSurprise billsA flat monthly price you can predict (see chatbot costs)
BrandingLooks professionalVendor logo removed on an affordable plan

The rest of this guide uses WebsiteChatbot for the screenshots, but the steps are much the same in any website-trained chatbot.

Step 2: Train it on the right pages

Create an account and enter your website address. The chatbot finds your pages (from your sitemap or by following links) and shows you the list before it learns anything.

Creating a chatbot: enter the website address, then choose which pages it learns.
Creating a chatbot: enter the website address, then choose which pages it learns. (Example business.)

This is the most important decision in the whole setup. A chatbot answers from what it has read, so give it the pages a customer would read before buying:

  • Services or products, one page per main service if you have them.
  • Prices, even if it's only "from" prices or price ranges.
  • Areas covered and locations.
  • FAQs, about, contact and opening hours.
  • Policies: cancellations, guarantees, delivery, returns, payment options.

Leave out what doesn't help: old news posts, job adverts, tag and archive pages, and blog posts that drift from what you sell. On a plan with a page limit, those crowd out the pages that matter. WebsiteChatbot pre-ticks the pages that usually matter most, and you can change the selection.

Step 3: Add what isn't on your website

Look at the questions customers asked you this month. Some answers probably aren't on your website at all: they're in a price list PDF, a brochure, or in your head. Add them now:

  • Upload documents such as price lists, brochures, menus or product sheets (PDF, Word, text).
  • Paste short Q&As for the things you explain on the phone every week, for example "Do you work weekends?" or "Is there a call-out charge?".
Documents and pasted Q&As sit alongside your website pages. They're kept when you retrain the website.
Documents and pasted Q&As sit alongside your website pages. They're kept when you retrain the website. (Example business.)

Keep each Q&A short and factual. One clear answer per question works far better than a long block of text.

Step 4: Decide how it talks and when it asks for details

A plumber, a dental practice and a software company need very different chatbots. Set:

  • Name and greeting. Use your business name, and a greeting that invites a real question: "Hi! Ask me about prices, boiler repairs or whether we cover your area." That works much better than "How can I help?".
  • Tone and reply length. Friendly and short suits most local businesses; technical buyers may prefer a direct answer and bullet points.
  • What it should find out before passing someone to you, such as what they need, where they are and when.
  • When to ask for contact details, and which ones. Name and phone is enough for most trades; B2B companies often want a company name.
Behaviour settings are multiple choice, so you never have to write AI instructions.
Behaviour settings are multiple choice, so you never have to write AI instructions. (Example business.)

Don't ask for an email address in the greeting. Visitors came for an answer; a chatbot that answers first and then offers a quote converts far better. Our lead generation tips go into detail.

Step 5: Install it on your site

Almost every chatbot installs the same way: you paste a short snippet of code into your website once, and it appears on every page. You don't edit pages one by one.

The install page gives you your code and platform-specific steps, and checks your site to confirm it's live.
The install page gives you your code and platform-specific steps, and checks your site to confirm it's live. (Example business.)
PlatformWhere to paste the codeFull guide
WordPressA header and footer plugin such as WPCode → FooterWordPress
ShopifyOnline Store → Themes → Edit code → theme.liquid, before </body>Shopify
WixSettings → Custom code → Body - end, all pagesWix
SquarespaceSettings → Developer Tools → Code Injection → FooterSquarespace
WebflowSite settings → Custom code → Footer code, then publishWebflow
Any HTML siteBefore the closing </body> tag in your shared templateHTML

Two problems cause most "it's not showing" support questions. First, a caching plugin on WordPress serving an old copy of your pages: clear the cache after installing. Second, preview modes: Webflow and some builders don't run custom code in the editor, so check the published site. If someone else manages your website, send them the code and the steps by email from the install page.

Step 6: Test it before you tell anyone

Open the test chat and be a difficult customer. A good test takes ten minutes:

  1. Ask your ten most common questions, worded the way customers word them, typos included.
  2. Ask something it shouldn't know, such as a price you don't publish. It should say it doesn't know and offer to have someone get back to them, not guess.
  3. Ask in another language if you get international visitors. It should reply in that language.
  4. Go through a full quote request and leave your own phone number. Check the lead arrives in your inbox with the conversation.
  5. Try it on your phone. Most visitors will.
What a visitor sees: an answer from the business's own price page, then an offer of a free quote.
What a visitor sees: an answer from the business's own price page, then an offer of a free quote. (Example business.)

If an answer is wrong, the fix is nearly always content: correct the page or add a Q&A, then retrain. Don't try to fix wrong facts with instructions.

Step 7: Improve it every week

The first version will miss things. That's normal, and it's useful: every question the chatbot couldn't answer is a gap in your website that was costing you enquiries before you had a chatbot.

The overview shows conversations, leads and the questions it couldn't answer, with a button to add the answer.
The overview shows conversations, leads and the questions it couldn't answer, with a button to add the answer. (Example business.)

Once a week, spend ten minutes on three things:

  • Unanswered questions: add the answer once and the chatbot uses it from then on.
  • Leads: reply fast. Within the hour is good; within five minutes is better.
  • Conversations: skim a few to see how people actually phrase things, and update your greeting to match.

Launch checklist

  • Key pages selected: services, prices, areas, FAQs, contact, policies
  • Price list and other documents uploaded
  • Greeting invites a specific question
  • Lead details and lead email address set
  • Code installed and live on every page
  • Ten real questions tested, including one it shouldn't know
  • Test lead received by email
  • Checked on mobile
FAQ

Frequently asked questions

Do I need a developer to add a chatbot to my website?

Usually not. WordPress, Shopify, Wix, Squarespace and Webflow all have a place to paste code in their settings. If you'd rather not touch it, send the code to whoever manages your site, or use a done-for-you setup service.

How long does it take to add a chatbot?

About 15 minutes for a typical small business site: a few minutes to choose pages and train, a few to set behaviour, and a few to install and test. Larger sites train in the background.

Will a chatbot slow down my website?

A well-built widget loads after your page content with a small script, so it shouldn't noticeably affect page speed. Check with your usual speed test after installing.

Can I add a chatbot to a website I didn't build myself?

Yes, as long as you can add custom code to the footer or before the closing body tag, or can ask whoever runs the site to do it.

Can I try it before installing on my live site?

Yes. Train it and use the test chat first. Nothing appears on your website until you paste the code.

Get started

Create your free AI chatbot

Enter your email and we'll send you a secure sign-in link. Your chatbot can be live on your website in minutes.

  • Free plan, no credit card
  • Trained on your website in minutes
  • One line of code to install

Start free

No password needed. We'll email you a sign-in link.

Already have an account? Log in