Guides

How to build an AI chatbot: a hands-on walkthrough

A hands-on walkthrough for building an AI chatbot: choose one job, load knowledge, write instructions, add one action, test with real questions and publish on one channel.

By the Askocto team · · 5 min read

To build an AI chatbot, you give it one job, load the knowledge it needs, write instructions for how to behave, connect one action, test it on real questions and then put it on a channel. You can do all of this without code on a platform that supports it, and in about a day for a first version. This walkthrough uses a hypothetical online bookshop as the example, so you can see each step on a concrete case.

The example: a small bookshop

Our hypothetical shop sells books online, ships within a country and has a help page with about twenty articles. Customers ask about delivery times, returns, gift wrapping and where their order is. The owner wants a chatbot on the website that handles these four topics and passes everything else to her.

Notice what she did first: she picked four topics, not "everything about the shop". That choice makes every later step easier.

Step 1: define the job in one sentence

Write: "This chatbot helps [who] with [what], and hands over [when]."

For the bookshop: "This chatbot helps website visitors with delivery, returns, gift wrapping and order status, and hands over anything about wholesale, complaints or payments."

Keep this sentence. Paste it at the top of your instructions in step 3, and use it to decide what belongs in the knowledge in step 2.

Step 2: load the knowledge

A chatbot answers from what you give it. Collect the sources that cover your chosen topics:

  • The relevant help pages, by crawling your website or pasting text.
  • Policy documents as files, such as a returns policy in PDF.
  • Question and answer pairs for things your team says aloud but never wrote down, such as "Do you ship to Ireland? Yes, in 3 to 5 working days."

Check the content for contradictions before you load it. If the returns page says 14 days and the footer says 30, the bot will pick one. In Askocto this is Build > Sources, where each source shows a status of Queued, Training, Ready or Failed. Wait for Ready on all of them.

For the content side in detail, see how to train an AI agent on your help center.

Step 3: write the instructions

Instructions tell the chatbot how to behave. Keep them short and concrete. A good first version has five parts:

  1. Role and job: the sentence from step 1.
  2. Tone: three traits, such as friendly, plain and brief.
  3. Rules: never promise delivery dates beyond the policy, never invent prices, say when unsure.
  4. Handover: pass to a person for wholesale, complaints and payments, with a summary.
  5. Disclosure: say it is an AI assistant in the greeting.
You are the website assistant for a small online bookshop.
Help with delivery, returns, gift wrapping and order status.
Be friendly, plain and brief. Answer from the sources only.
If the answer is not in the sources, say so and offer to
pass the question to a person. Say you are an AI assistant
in your first message.

For repeatable processes, such as returns, write a procedure with numbered steps. The article on writing procedures for an AI support agent shows how.

Step 4: add one action

A chatbot that only answers is useful. One that can look up an order is more so. Pick one action:

  • Look up an order by order number and email, through your shop platform or a custom request to your own system.
  • Collect data such as a name and email for a callback.
  • Hand over to a person with a summary.

The bookshop starts with order lookup and hand over. Keep actions read-only at first. Add anything that changes data after you have reviewed a few weeks of conversations.

Step 5: test on real questions

Write 30 questions the way customers ask them, including typos and vague ones. Example set for the bookshop:

Question What good looks like
"how long does delivery take" Quotes the delivery window from the policy
"can I send it back if I don't like it" States the return period and the steps
"where is my order" Asks for order number and email, then looks it up
"do you sell used books" Says it is not in the sources and offers a person
"I want to speak to someone" Hands over right away

Run all of them and grade each answer. For every wrong one, find the cause: missing content, a contradiction or an unclear instruction. Fix it and rerun. The playground in Askocto shows which sources and procedure an answer used, which makes the causes easier to find. More detail is in how to test an AI support agent before launch.

Step 6: put it on a channel

Start with the website. Most platforms give you a one-line script to paste into your site. Test it on your own site in a private window, on a phone too. If you want a no-code path in your own site builder, how to create your own chatbot without coding covers the common options.

Launch to a slice first: one page, or a few hours a day. Read every conversation for the first few days.

After launch: the first week

  • Read all conversations each day and note what failed.
  • Add missing answers as Q&A pairs.
  • Tighten any instruction that was misread.
  • Keep a list of topics customers ask about that you left out. Those are your next additions.

A first version is rarely perfect, and it does not need to be. It needs to be honest about what it does not know and quick to hand over. Over a month of weekly reviews it will cover more topics and handle them better. When you want a platform to try this on, create a free Askocto workspace and follow the same six steps with your own content.

Frequently asked questions

Can I build an AI chatbot without coding?

Yes. Many platforms let you load content, write instructions in plain language and paste one script into your site. Code helps for custom actions but is not needed for a first version.

How long does it take to build an AI chatbot?

A basic version can run in a day if your content is ready. Reaching a dependable level takes several weeks of testing and review.

What data does a chatbot need?

Content that answers your customers' questions: help pages, policies and Q&A pairs. Clean, current and consistent content matters more than a large volume of it.

How do I stop the chatbot from giving wrong answers?

Answer only from your sources, tell it to say when it does not know, test with real questions and review live conversations weekly.

Train an agent on your own help center

Askocto answers the repeat questions across chat, email and voice and hands the hard ones to your team.

Keep reading

All articles
Guidesknowledge base for ai chatbot
May 30, 20266 min read

How to structure a knowledge base for an AI chatbot

An AI agent reads your articles in pieces and quotes them. Here is how to structure a knowledge base for an AI chatbot, from titles and dates to ownership and review.

Read article
Guidestrain ai agent on help center
May 5, 20266 min read

How to train an AI support agent on your help center

Training an AI support agent is mostly content work. Here is which articles to connect first, how to clean them, how to check the agent uses them, and when to stop.

Read article