Guide

How to make an AI chatbot, step by step

A plain-language guide to building a chatbot that answers from your own content: the no-code and code routes, real free plans as of October 2026, and how to keep it from making things up.

TL;DR · the short answer

How do you make an AI chatbot?

Decide the one job your chatbot does, such as answering customer questions, then choose a no-code builder like Botpress or Tidio, or call an AI model’s API from your own code. Give it your own help content to answer from, set rules for what it must not say, add a handover to a person, and test it before launch.

At a glance
Search demand
About 450 US Google searches a month for “how to make an ai chatbot” (Ahrefs, October 2026)
Two routes
A no-code chatbot builder, or your own code calling an AI model’s API
Free to start, no code
Botpress: 100 conversations a month and 3 AI agents free; Tidio: first 50 AI conversations free (October 2026)
What makes it accurate
Answering from your own documents (retrieval, or RAG), plus a clear “I don’t know” rule
Must-have
A handover to a person for anything the bot can’t or shouldn’t answer
01

What is an AI chatbot, and how does it work?

An AI chatbot is a chat window powered by a large language model that reads a person’s message and writes a reply in natural language. Unlike older chatbots with fixed buttons and scripts, it understands questions phrased any way and can answer ones you never wrote out.

Behind the window, three things decide how good it is: the model that writes the replies, the instructions that set its job and limits, and the knowledge it answers from. Most of the work in a good chatbot is the last two. If it also takes actions, like booking or refunding, it is closer to an agent: see how to build an AI agent.

  • Customer support: answers questions about orders, accounts and policies, and hands the rest to a person.
  • Sales and lead capture: answers product questions on your site and collects contact details from interested visitors.
  • Bookings: explains services and times, and points people to your booking page.
  • Expert assistant as a product: a coach, tutor or advisor chatbot that people pay to use.
  • Internal helper: answers staff questions from your handbook and procedures.
02

Should you build a chatbot with a builder or with code?

Use a no-code builder if the chatbot sits on a website and answers questions from your content. Write code if the chatbot is the product itself, needs your own data and logic, or must look and behave exactly your way.

Your situationBetter routeWhy
Support or FAQ bot on your websiteNo-code builderUpload your help content, paste a snippet on your site, done
You don’t codeNo-code builderVisual setup and a ready chat widget
The chatbot is what customers pay forCode, or an app builder with sign-in and paymentsYou need accounts, usage limits and billing around the chat
It must read your database or private systemsCodeBuilders connect to common apps; anything custom needs code
Many conversations a dayCodeBuilder plans charge per conversation or credit; with code you pay the model provider directly
Chatbot builder vs code: which fits

You can also start on a builder and move to code later. Keep your instructions, your source documents and your list of test questions in your own files, so moving means rebuilding the plumbing, not rewriting what makes the bot good.

03

What tools can you use to build a chatbot?

Here are common options, from fully no-code to code, with free starting points checked on each company’s own pricing page or docs on October 24, 2026.

ToolRouteFree or starting option
BotpressNo-code / low-codeFree plan: 100 conversations a month, 3 AI agents, 3 seats; Plus is $150 a month billed yearly
TidioNo-codeFree plan; its Lyro AI agent includes the first 50 conversations free, once
ChatbaseNo-codeNo free plan listed; 7-day trial; Hobby is $32 a month billed yearly with 700 message credits
OpenAI APICodePay per use; its file search tool lets the model answer from files you upload
AI SDK by VercelCodeFree, open-source TypeScript library for chat interfaces and AI apps; you pay your model provider
Chatbot builders and developer tools as of October 2026

With any code route, the model provider bills you per use. For what that looks like across providers, see what AI model calls cost per user.

Whichever you pick, judge it on three things before price: how easily you can update its knowledge, how the handover to a person works, and whether you can read every conversation. Those decide how good the bot gets after launch.

04

How to make an AI chatbot, step by step

  1. 1

    Write down the one job

    For example: “Answer questions about our classes, prices and bookings, and hand anything else to a person.” List the 20 questions people ask most, from your inbox or DMs.

  2. 2

    Gather the content it should answer from

    Your help pages, price list, policies and past answers. Fix anything out of date first: the bot will repeat whatever you give it.

  3. 3

    Choose a builder or a code route

    Use the decision table above. On a no-code builder, start on the free plan. On the code route, pick one model provider and one library.

  4. 4

    Write the instructions

    Set the job, tone and audience. Tell it to answer only from your content and to say it doesn’t know otherwise. Say what it must never do, such as promise refunds or give medical advice.

  5. 5

    Add your knowledge

    Upload documents or connect your help center so the bot retrieves the right passage before replying. This is what keeps answers specific to your business.

  6. 6

    Set up the handover

    Decide when a person takes over: when the customer asks, when the bot isn’t confident, or for topics like refunds and complaints. Make sure someone is notified.

  7. 7

    Test with real questions

    Ask your 20 common questions, then try to break it: off-topic questions, angry messages, questions in another language. Fix the instructions or content after each wrong answer.

  8. 8

    Launch and read the conversations

    Add it to your site or app, read the first week of conversations, and turn every unanswered question into new content.

05

How do you make a chatbot answer from your own content?

You make a chatbot answer from your own content with retrieval: before each reply, the system searches your documents for the most relevant passages and gives them to the model along with the question. This is called retrieval-augmented generation, or RAG, and it is how most “train it on your data” chatbots work.

  • It is not retraining the model: you are giving it the right page to read at the right moment.
  • Short, clear documents work better than long ones: one topic per page, with the question in the heading.
  • Keep the source up to date: change the document, and the bot’s answers change with it.
  • Ask the bot to say which document it used, so you can trace wrong answers back to their source.

Anthropic’s guide to building effective agents makes the same point from the other side: for many applications, a single model call with retrieval and good examples is enough, without a complex agent.

A simple test shows whether retrieval is working: ask a question whose answer appears in only one document, then change that document and ask again. If the answer changes, the bot is reading your content. If it doesn’t, the bot is answering from the model’s general knowledge, and you need to fix the setup before launch.

06

How do you stop an AI chatbot from making things up?

You can’t make made-up answers impossible, but you can make them rare and harmless. Limit the bot to your content, give it a clear way to say “I don’t know,” and keep anything with consequences behind a person.

ProblemExampleFix
Invented factsQuotes a price or policy you never hadAnswer only from your documents; tell it to say “I don’t know” otherwise
Promises it can’t keep“Sure, I’ll refund you today”Forbid commitments on refunds, discounts and dates; hand those to a person
Off-topic useWriting essays or code for visitors on your billKeep it to your topic and cap messages per person per day
Risky adviceMedical, legal or financial guidanceRefuse and point to a professional; add a visible note
No way outThe customer keeps asking for a humanAlways offer a handover, and notify someone when it happens
Common chatbot failures and how to prevent them

Test these failures on purpose before launch. Ask about a product you don’t sell, demand a refund, ask for medical advice and ask to speak to a person. Each should end in a clear, safe reply or a handover, never a confident guess.

07

Where should your chatbot live, and how do you know it works?

Put the chatbot where people already ask the question: on the pricing and help pages of your website, inside your app next to the feature it explains, or in your support inbox as a first reply. A chatbot on a page nobody visits answers nobody.

You know it works when it resolves questions without a person and without complaints. Look at real conversations every week, not just the dashboard.

MeasureWhat it tells youWhat to do if it’s poor
Questions answered without handoverHow much work the bot savesAdd content for the questions it hands over most
Wrong or made-up answersWhether people can trust itTighten instructions and fix the source documents
Customer rating after the chatWhether people leave satisfiedRead the low-rated chats first
Cost per conversationWhether it pays for itselfShorten replies, cap messages, or use a smaller model for simple questions
What to measure in your first month
08

Can you sell an AI chatbot as a product?

Yes, and many AI products are a chatbot with expert knowledge inside: a nutrition coach, a language tutor, an interview practice partner. To sell one, you need more than the chat: sign-in so each person has their own history, payments, a daily usage limit so one user can’t run up your model bill, and support.

That is where an AI app builder with the business included saves time. For the full process from idea to paying users, read how to build an AI app.

Be clear with users about what the chatbot is: say it is an AI, say what it can and can’t help with, and add a note on advice topics such as health or money. Clear limits build more trust than a bot that pretends to know everything.

Our product

Make an AI chatbot people can sign up and pay for

Starty is our product. Describe the chatbot in one sentence, such as a meal-planning coach or a tutor, and Starty builds it as an app with sign-in, payments, emails, legal pages and analytics, all in test mode until you review.

  • AI capabilities from a catalog, including agents, with no API keys and no model to set up
  • Each user’s plan, AI usage and AI cost in one view
  • A customer agent sees each user’s plan, payments and AI usage, drafts the reply and waits for your approval
  • Starty Payments built in for subscriptions or packs, with no Starty fee on your revenue
Keep reading

Related guides

Sources

Where every fact comes from

Official pricing pages, docs, announcements and named studies, checked on November 10, 2026. Where a company doesn’t list something, we say so rather than guess.

FAQ

Questions people ask