Technical9 min read

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.

Farhad, founder of GHL Spark
Farhad · Founder, GHL Spark
Cover illustration — a bright teal grid with a highlighted square on a dark green background, marked GHL Spark, Technical

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:

StepPurposeExample
GreetingSet context and invite a reply"Hi — want help finding the right plan, or have a quick question?"
IntentLearn what they needButtons: "See pricing", "Ask a question", "Talk to a human"
QualifyAsk one or two targeted questions"What are you trying to fix first?"
ValueAnswer or point them somewhere usefulShare the relevant page or a short answer
CaptureGet contact details at the right moment"Where should we send the details?" — collect email
CloseEnd with a clear next stepConfirm 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.

ToolBest forTrade-off
TidioSmall sites wanting live chat plus a simple bot in one widget, with a usable free tierAdvanced automation and higher volumes push you into paid tiers quickly
ManyChatMarketing-led flows, strong on social and messaging channels and broadcast-style automationMore 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 automationIt 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?
A website chatbot can greet visitors, answer common questions, qualify a lead by asking a few targeted questions, capture a name and email or phone number, book appointments, point people to the right page, and pass the conversation to a human when it gets out of its depth. What it should do depends entirely on your goal. A support-focused bot deflects repetitive questions so your inbox stays quiet, while a sales-focused bot exists to catch and qualify leads before they bounce. The mistake is asking one bot to do all of it at once — the strongest setups pick a primary job and do it well.
What is the difference between a rule-based chatbot and an AI chatbot?
A rule-based chatbot follows a decision tree you build in advance — it shows buttons and menus, and every path is one you scripted, so it is predictable and never says anything you did not approve. An AI chatbot uses a language model to interpret whatever the visitor types in plain English and generate a reply on the fly, so it handles questions you never anticipated. Rule-based bots are cheaper, easier to control and ideal for structured tasks like booking or qualifying. AI bots are more flexible and feel more natural, but they cost more and carry a small risk of confident wrong answers, so they need guardrails and good source content.
Are there free chatbot tools to get started with?
Yes. Several mainstream platforms offer a free tier that is genuinely usable for a small site — enough to publish a widget, script a basic flow and start capturing details. Free plans typically cap the number of conversations, remove advanced AI features, or show light branding on the widget. They are a sensible way to prove the concept before you pay for anything. Just be clear on the ceiling — if the chatbot becomes a real lead source, the paid tier or an all-in-one platform that ties chat into your CRM usually pays for itself quickly.
How do I script a chatbot flow?
Start from the visitor's intent, not your menu. Write down the two or three things people most often want when they land on the page, then map each one as a short branching conversation — an opening message, a small set of choices or a question, and a clear end action such as capturing an email or booking a call. Keep each path to a handful of steps; every extra question loses people. Use plain, human language, offer an obvious escape to a real person at every branch, and test each flow yourself by clicking through it before you publish.
How does a chatbot hand off to a human?
A good handoff triggers on clear signals — the visitor asks for a person, the bot fails to understand twice, or the topic is high-value like a large quote. When it triggers, the bot should say plainly that it is bringing in a human, then either connect to a live agent if one is online or collect contact details and set an expectation for follow-up if not. The worst outcome is a silent dead end where the visitor keeps rephrasing and never gets out. Always give people a visible "talk to a human" option rather than making them discover it by accident.
Does a website chatbot capture leads?
It can, and for many businesses that is its main job. A chatbot captures leads by asking for a name and an email or phone number at the right moment — usually after it has answered a question or qualified interest, not before it has given any value. Because it responds instantly and works around the clock, it catches people who would otherwise leave before anyone could reply. The key is to connect the capture to wherever your leads actually live, such as a CRM, so a captured contact triggers follow-up instead of sitting in a chat log nobody reads.
Will a chatbot hurt the user experience on my site?
Only if you set it up badly. A chatbot hurts UX when it auto-opens aggressively, blocks content on mobile, loops without an exit, or pretends to be human. It helps UX when it stays out of the way until needed, answers fast, uses clear language, and always offers a route to a person. Treat it like a helpful receptionist rather than a pop-up you are forced to dismiss. A restrained, well-scripted bot with an honest tone and a visible handoff almost always improves the experience, because the alternative is a visitor with a question and no fast way to ask it.
How much effort is it to install a chatbot?
Installing the widget itself is usually trivial — most tools give you a single snippet of code to paste into your site, or a native integration if you are on a supported platform, and it is live in minutes. The real work is not installation but design — deciding the goal, scripting the flows, writing the handoff, and connecting lead capture to your CRM. Budget an afternoon for a simple rule-based bot and more for an AI bot that needs source content and testing. The technical bar is low; the thinking is what makes it work.
Does a chatbot work on mobile?
Yes, and mobile is where it often matters most, because a large share of visitors arrive on a phone where typing a long form or making a call feels like friction. A good chatbot widget is responsive, sits neatly in a corner, and expands without covering the whole screen or trapping the visitor. Test it on a real phone before you rely on it — check that the launcher is tappable, the keyboard does not hide the input, and the close button is easy to reach. A bot that works on desktop but breaks on mobile is quietly losing most of your traffic.
How do I measure whether my chatbot is working?
Track a few numbers rather than a vanity total. Engagement rate tells you how many visitors who see the bot actually interact with it. Capture rate tells you how many of those hand over contact details or complete the goal action. Containment or resolution rate tells you how many questions the bot handled without a human. Handoff rate and response time round it out. Watch these over a few weeks, read a sample of real transcripts to see where people drop off, and refine the flows. If capture and containment are rising and complaints are not, the bot is earning its place.
Should I use a rule-based bot or an AI bot for lead generation?
For pure lead capture, a rule-based bot is often enough and easier to control — a short scripted flow that qualifies and grabs contact details converts perfectly well without any AI. Reach for AI when visitors ask wide-ranging questions before they will commit, or when you want the bot to answer product and support questions in natural language as well as capture leads. Many businesses land on a hybrid — rules to drive the structured capture and booking steps, AI to field the open questions in between. Start simple, then add AI only where a scripted path clearly falls short.
Can a chatbot book appointments directly?
Yes. A chatbot can qualify a visitor, then present available times and book an appointment inside the conversation, which removes the back-and-forth of a separate form. This works best when the bot is connected to your live calendar so it only offers real openings and writes the booking straight into your schedule. All-in-one platforms make this smoother because the chat, the calendar and the CRM are the same system, so a booked call also creates a contact and can trigger a reminder sequence automatically.

About the author

Farhad, founder of GHL Spark

Farhad

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

Want this handled for you?

We set up, configure and white-label your GoHighLevel SaaS — so you can sell it instead of building it.

Fixed quote · No lock-in · Launch-ready in ~7 days