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.

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.
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:
| Check | Why it matters | What good looks like |
|---|---|---|
| Training | Setup time and answer quality | Learns your site from its address; lets you add PDFs and extra Q&As |
| Accuracy | Wrong answers lose customers | Answers only from your content and says when it doesn't know |
| Lead capture | This is where the money is | Asks for contact details at the right moment and emails them to you |
| Pricing model | Surprise bills | A flat monthly price you can predict (see chatbot costs) |
| Branding | Looks professional | Vendor 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.

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?".

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.

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.

| Platform | Where to paste the code | Full guide |
|---|---|---|
| WordPress | A header and footer plugin such as WPCode → Footer | WordPress |
| Shopify | Online Store → Themes → Edit code → theme.liquid, before </body> | Shopify |
| Wix | Settings → Custom code → Body - end, all pages | Wix |
| Squarespace | Settings → Developer Tools → Code Injection → Footer | Squarespace |
| Webflow | Site settings → Custom code → Footer code, then publish | Webflow |
| Any HTML site | Before the closing </body> tag in your shared template | HTML |
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:
- Ask your ten most common questions, worded the way customers word them, typos included.
- 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.
- Ask in another language if you get international visitors. It should reply in that language.
- Go through a full quote request and leave your own phone number. Check the lead arrives in your inbox with the conversation.
- Try it on your phone. Most visitors will.

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.

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
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.
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