How to Set Up a Website Chatbot
A practical, tool-agnostic guide to setting up a website chatbot — from goals and flows to the human handoff and the numbers that tell you it works.
In short
To set up a website chatbot, start with a single goal rather than the widget — decide whether it exists to capture leads, answer support questions, book appointments, or route people to the right place. Map the two or three conversations that matter into short scripted flows, each ending in a clear action such as a captured email or a booked call. Choose rule-based logic for predictable menu-driven questions and AI for open-ended natural language, or blend the two. Build a clean handoff so any visitor can reach a human the moment the bot stalls, because a trapped visitor is a lost lead. Install the widget, keep it lightweight so it does not slow the page, and measure engagement, capture rate and containment so you can tell whether it earns its place.
Key takeaways
- Start with one goal, not the tool — a chatbot built to capture leads looks nothing like one built to deflect support tickets, so name the job first.
- Script two or three high-value flows rather than trying to answer everything — each flow should end in a concrete action like a captured email or a booked call.
- Rule-based bots are predictable and cheap while AI bots understand natural language — many of the best setups run rules for structure and AI for the messy questions in between.
- A visible human handoff is not optional — the fastest way to lose a lead is to trap them in a loop with no way to reach a person.
- Measure engagement, capture rate and containment from day one — without numbers you cannot tell whether the bot is helping or quietly costing you conversations.
Setting up a website chatbot is less about the widget and more about the decisions behind it. The tools are easy — most drop onto your site with a single snippet. What separates a chatbot that captures leads and answers questions from one that annoys people and gets ignored is the thinking you do first: what it is for, which conversations it handles, and what happens when it hits its limit. This guide walks through that thinking in order, so you end up with a bot that does a real job rather than a gimmick in the corner.
What should your chatbot actually do?
Before you touch a tool, name the goal. A chatbot is a means, not an end, and the single biggest reason bots underperform is that nobody decided what "working" looks like.
There are really only a handful of jobs a website chatbot does well, and they pull in different directions:
- Capture and qualify leads. Greet visitors, ask a couple of qualifying questions, and grab a name and email or phone before they leave. This is the job most small businesses want.
- Deflect support questions. Answer the same repetitive questions — hours, pricing, shipping, "do you do X" — so they never reach your inbox.
- Book appointments. Move a warm visitor straight into a booked slot without a separate form.
- Route and triage. Work out what the visitor needs and point them to the right page, person or resource.
Pick one primary job. A bot built to capture leads opens differently, asks different questions and ends differently from one built to deflect tickets. You can add secondary goals later, but a bot that tries to do everything on day one does none of it well.
A quick way to choose is to look at what your visitors already do. If most people arrive with buying intent and your problem is that they leave before you can respond, lead capture is your goal. If your inbox is full of the same three questions every week, deflection is your goal. If your sales process hinges on getting people onto a call, booking is your goal. Let the pattern in your traffic decide, rather than copying whatever the last site you saw had. And write the goal down as a single sentence you can test against later — "capture qualified leads after hours" is a goal you can measure, "have a chatbot" is not.
If you are still weighing whether automation is even the right call versus a human answering in real time, the comparison of live chat vs chatbot lays out who each approach genuinely suits.
How do you script a chatbot flow?
A flow is the scripted path a conversation follows. The trick is to design from the visitor's intent inward, not from your org chart outward. Write down the two or three things people most want when they land on the page, then map each as a short branch that ends in a concrete action.
Here is a simple structure that works for a lead-capture flow:
| Step | Purpose | Example |
|---|---|---|
| Greeting | Set context and invite a reply | "Hi — want help finding the right plan, or have a quick question?" |
| Intent | Learn what they need | Buttons: "See pricing", "Ask a question", "Talk to a human" |
| Qualify | Ask one or two targeted questions | "What are you trying to fix first?" |
| Value | Answer or point them somewhere useful | Share the relevant page or a short answer |
| Capture | Get contact details at the right moment | "Where should we send the details?" — collect email |
| Close | End with a clear next step | Confirm follow-up, book a call, or hand off |
Keep each path to a handful of steps. Every extra question sheds people, so ask only what you truly need. Use plain, human language rather than corporate phrasing, and put an obvious "talk to a human" escape at every branch. When you think a flow is done, click through it yourself as a visitor would — the gaps show up fast when you stop reading the script and start using it.
Rule-based or AI — which type of chatbot should you build?
This is the fork that shapes everything else. Both types are legitimate; they simply suit different problems.
A rule-based chatbot follows a decision tree you build in advance. It shows buttons and menus, and every path is one you scripted. It never says anything you did not approve, it is cheap, and it is perfect for structured tasks like qualifying, booking and routing. Its weakness is that anything you did not anticipate falls through — it cannot improvise.
An AI chatbot uses a language model to interpret whatever the visitor types in plain English and generate a reply on the fly. It handles questions you never mapped and feels more natural. The trade-offs are cost, less predictability, and a small risk of confident wrong answers, so it needs guardrails and good source content to draw from.
In practice, many of the best setups are hybrids: rules drive the structured capture and booking steps, while AI fields the open-ended questions in between. A sensible rule of thumb — start rule-based to prove the goal, then layer AI in only where a scripted path clearly falls short. If your questions are predictable, you may never need AI at all.
If you do go the AI route, its quality depends almost entirely on the content you feed it. An AI chatbot answering from a thin or outdated help page will invent details to fill the gaps, which is exactly the failure people fear. Point it at accurate, current source material — your real pricing, your real policies, your real FAQs — and set explicit boundaries on what it should refuse to answer. A well-fed AI bot with a tight scope is dependable; a poorly-fed one is a liability, and the difference is entirely in the preparation, not the model.
How should the chatbot hand off to a human?
The handoff is where most bots quietly fail. A visitor rephrasing the same question three times with no way out is a lost lead and a bad impression, and it is entirely avoidable.
Design the handoff around clear triggers:
- The visitor explicitly asks for a person.
- The bot fails to understand twice in a row.
- The topic is high-value, such as a large quote or an unhappy customer.
When a trigger fires, the bot should say plainly that it is bringing in a human — never pretend the bot is a person. If an agent is online, connect them. If not, collect contact details and set an honest expectation for when someone will reply. Above all, keep a visible "talk to a human" option on screen at all times so nobody has to discover the exit by accident.
It also helps to carry context across the handoff. If the visitor has already told the bot their name and what they need, the human who picks up should see that history rather than making the person repeat it — nothing undermines a handoff faster than starting from scratch. When the chat and the CRM are the same system, that context travels automatically, which is one of the quiet advantages of an integrated setup over a bolted-on widget. If real-time human coverage is central to how you sell, pairing the bot with a proper live-chat setup is worth planning — the guide on how to add live chat to your website covers doing that without overloading your team.
Does a chatbot capture leads and hurt UX?
These two questions come up together because they pull against each other, and the answer to both is "it depends on restraint."
A chatbot captures leads well when it asks for contact details at the right moment — after it has given some value or qualified interest, not before it has said anything useful. Because it replies instantly and works around the clock, it catches people who would otherwise leave before a human could respond. The critical detail is where the captured contact goes: connect it to your CRM so a new lead triggers follow-up automatically, rather than sitting unread in a chat log.
On user experience, a chatbot only does harm when it is aggressive or dishonest — auto-opening the moment someone lands, covering content on mobile, looping without an exit, or pretending to be human. A restrained bot that stays out of the way until needed, answers fast, uses clear language and always offers a route to a person almost always improves the experience, because the alternative is a visitor with a question and no quick way to ask it. Treat it like a good receptionist, not a pop-up people are forced to dismiss.
Which chatbot tools should you consider?
Once the goal and flows are clear, the tool is the easy part. Here is an honest snapshot of three common routes.
| Tool | Best for | Trade-off |
|---|---|---|
| Tidio | Small sites wanting live chat plus a simple bot in one widget, with a usable free tier | Advanced automation and higher volumes push you into paid tiers quickly |
| ManyChat | Marketing-led flows, strong on social and messaging channels and broadcast-style automation | More oriented to social messaging than deep website-plus-CRM workflows |
| All-in-one (such as GoHighLevel) | Businesses that want the chat widget and Conversation AI tied directly into a CRM, calendar and follow-up automation | It is a broader platform, so there is more to learn than a single-purpose widget |
The dividing line is integration. Standalone widgets are quick to launch and fine when the bot's job stays inside the chat window. An all-in-one platform earns its keep once you want a captured lead to become a CRM contact, a booked chat to write into your calendar, and a missed conversation to trigger an automated follow-up — all without wiring separate tools together. For a wider view of the landscape, the roundup of the best live chat software compares the options side by side.
If mapping goals, scripting flows and wiring the handoff into a CRM sounds like more than you want to own, this is exactly the kind of setup we do for clients — a chatbot that captures and routes leads into a system that follows up on its own. You can see what that costs on our pricing page, or book a call and we will scope it with you.
How do you measure whether it works?
Do not judge a chatbot by a single total. Track a small set of numbers from day one so you can tell help from harm:
- Engagement rate — of the visitors who see the bot, how many interact with it.
- Capture rate — of those, how many hand over details or complete the goal action.
- Containment rate — how many questions the bot resolved without a human.
- Handoff rate and response time — how often it escalates, and how fast the first reply lands.
Numbers tell you what is happening; transcripts tell you why. Read a sample of real conversations every week or two and watch for the step where people drop off, then tighten that part of the flow. If capture and containment climb while complaints stay flat, the bot is doing its job. Setting up a website chatbot is not a launch-and-forget task — it is a small system you refine, and a few weeks of honest measurement turn a decent bot into one that reliably earns its place.
For more on chat, forms and the wider web toolkit, browse the web, email & ecommerce hub.
Frequently asked questions
What can a website chatbot actually do?
What is the difference between a rule-based chatbot and an AI chatbot?
Are there free chatbot tools to get started with?
How do I script a chatbot flow?
How does a chatbot hand off to a human?
Does a website chatbot capture leads?
Will a chatbot hurt the user experience on my site?
How much effort is it to install a chatbot?
Does a chatbot work on mobile?
How do I measure whether my chatbot is working?
Should I use a rule-based bot or an AI bot for lead generation?
Can a chatbot book appointments directly?
About the author

Founder, GHL Spark
Farhad is the founder of GHL Spark, where he builds and white-labels GoHighLevel SaaS platforms for agencies and SaaS operators. He writes about the parts of GoHighLevel that actually break in production — A2P registration, onboarding, support load and automation.
More from Farhad