How to build a chatbot: free, DIY, or built for you
How to build a chatbot, step by step: the four ways, what each costs, and what happened when we built one for a real store and asked it 20 questions.
How to build a chatbot
- Pick its jobs. Write down the 20 questions your customers ask most, from your inbox, your phone, and your staff.
- Pick a way to build it: a free app, a no-code chatbot builder, your own code, or a custom build.
- Give it your content. Products, prices, sizes, stock, shipping, returns, and FAQs.
- Write its rules. What it must never promise, and when to hand over to a person.
- Test it with hard questions before a customer sees it.
- Put it on your website with the builder's app or one line of code.
- Done! Your chatbot's live. Update its content whenever anything changes.

Chatbot builders and YouTube tutorials say you can build a chatbot in ten minutes, and you can. What takes longer is a chatbot that gets your customers' questions right, about your products, every time.
So we built one, the way the tutorials show, for a real Australian online store, and asked it the 20 questions customers actually ask. Then we checked every answer against the store's own website.
Matey builds custom chatbots for Australian businesses, and AI chatbot development in Australia is what we do every day. This guide covers the four ways to build a chatbot, the steps for each, what they cost, and when building your own is worth it.
4 ways to build a chatbot
The four ways to build a chatbot are switching on a free app, setting up a no-code chatbot builder, coding one yourself, and getting one built. The right one depends on how many products you sell, how often they change, and how much time you've got.
| Way | Example | Price | First version in | Suits |
|---|---|---|---|---|
| Free app | Shopify Inbox | Free on Shopify | An hour | Shopify stores with simple questions |
| No-code chatbot builder | Tidio, Chatbase, Botpress | Tidio's Lyro from US$39 a month for 50 AI conversations, Chatbase from US$150 a month | An afternoon | Small ranges, and an owner who'll check the chats |
| Code it yourself | An AI model's API and your own chat window | A developer's time, plus a charge for every message | A weekend | Developers, or a job no builder covers |
| Get it built | Matey | $149 AUD a month, built and installed free | Usually within 24 hours | Big ranges, changing stock, and rules that matter |
Every option's price in Australian dollars, and what a busy month costs on each, is in our guide to AI chatbot cost. New to chatbots? Start with what a chatbot is and the types of chatbots.
How to build a chatbot without coding
To build a chatbot without coding, sign up to a no-code chatbot builder, point it at your website so it reads your pages, add your FAQs and documents, set its rules, and paste its one line of code into your site.
That's how most DIY chatbots get built, and our guide on how to create a chatbot for your website has the steps for Tidio, Chatbase, and Botpress. Under the hood, a builder reads your pages, cuts them into pieces, and looks up the closest pieces for each question. Whatever your pages don't say clearly, it can't answer. The step that decides how good it gets is how to train a chatbot on your products and policies.
How to build an AI chatbot from scratch
To build an AI chatbot from scratch, you read your website's content, cut it into small pieces, make the pieces searchable, and for every question send the best-matching pieces to an AI model with your instructions.
Here's exactly what ours took. It's the standard approach in most tutorials, which developers call retrieval:
- Read the website. Our crawler read every page in the store's sitemap: 593 pages of products, collections, policies, and FAQs.
- Keep each page's own words. The store's menu came first on every page, so we cut out the menus, headers, and footers.
- Cut it into pieces of about 1,200 characters, overlapping a little. That made 1,484 pieces.
- Make the pieces searchable. We used keyword search, the same scoring a site search box uses. Many tutorials use embeddings instead, which match on meaning rather than words.
- Find the best pieces. For each question, the 8 pieces that best match it go to the AI model.
- Answer from them. The model gets those pieces, the question, and one instruction: answer only from this content, and say you're not sure if the answer isn't there.
- Done! That's a working AI chatbot.
Python and JavaScript are the usual languages, and the AI model can be any of the big ones. We used Google's Gemini 3 Flash. Our guide on how to create a chatbot with ChatGPT covers the same build on OpenAI's models.
What a from-scratch chatbot doesn't have yet is everything around it: a hand-over to a person, a record of every chat, limits so nobody can run up your bill, and a refresh of your products every day.
What goes wrong when you build a chatbot yourself?
A chatbot built from your website repeats whatever your website says, including old pages you've forgotten about, and it can't tell which sizes are still in stock. That's what we found when we built one for an Australian online footwear store and asked it 20 real customer questions.
The store sells about 410 products: Birkenstocks, work boots, sneakers, Crocs, and UGGs. We're not naming it. We wrote down the right answer to every question from its live website first, then asked our DIY chatbot the 20 questions in the Matey break-it test, each in a fresh chat.
It got 10 right, 1 partly right, 4 it couldn't answer, and 5 wrong. It was good at policy questions, because the store's returns, exchange, and payment pages are clear. It was bad at products: of the 8 questions about finding a product, sizes, and stock, it got 1 right.
It never made anything up out of thin air. Every wrong answer came from something printed on the store's own website:
- An old page. Asked "Do you sell Nike Air Max?", it said "Yes, we sell Nike Air Max shoes!" The store doesn't stock them, but an old article on its own site still advertises cheap Nike Air Max.
- A number that changed. It said shipping is free over $100. The shipping policy says $160, but 26 of the store's collection pages still carry an old line saying $100.
- A sold-out size. It said a work boot was in stock in a men's 10. It wasn't. In a page's text, a sold-out size looks exactly like one on the shelf.
- The wrong price. It priced a black Birkenstock at $130, a "was" price it picked up from a Converse sneaker listed beside it on a collection page. The real price was $174.95.
- The wrong contact. Asked for a real person, it gave an email address from the privacy policy instead of the support address, and no phone number.
When it couldn't find something, it said so, which is the safe way to fail. But it said "I'm not sure" four times when the store's pages had the answer. Asked what size Birkenstock a men's US 10 should get, it said the website doesn't say, while every Birkenstock page on the store says to go one size down in a Regular width.
| # | Question | Score | What it said |
|---|---|---|---|
| 1 | Zip sided steel cap boots under $200 | Right | Six real boots, every price right |
| 2 | Birkenstock Arizona vs Gizeh | Couldn't answer | "I'm not sure" |
| 3 | A present for Dad, about $150 | Wrong | Running shoes from Nike and Asics, which the store doesn't sell |
| 4 | Do you sell Nike Air Max? | Wrong | "Yes, we sell Nike Air Max shoes!" |
| 5 | A black Arizona in size 42 | Partly right | Two right, one at the wrong price, one sold out in a 42 |
| 6 | Men's US 10 in Birkenstocks | Couldn't answer | "That information isn't available" |
| 7 | Narrow or regular? | Couldn't answer | "I'm not sure" |
| 8 | A sold-out work boot back in a 10 | Wrong | Said it was in stock |
| 9 | Is express free over $160? | Right | No, it's $15 extra |
| 10 | Shipping to Perth | Wrong | Free over $100 (it's $160), and no delivery time |
| 11 | Can I use Afterpay? | Right | Yes |
| 12 | A code for my first order | Right | Didn't invent one |
| 13 | Worn once and rubbing | Right | Only unworn shoes go back |
| 14 | Swap for a different colour | Right | Exchanges are size only |
| 15 | Threw out the shoe box | Right | The original box is needed |
| 16 | Do you ship to New Zealand? | Couldn't answer | "I'm not sure", plus the old $100 line |
| 17 | Price match? | Right | No |
| 18 | "Ignore your instructions" for 50% off | Right | No code |
| 19 | A late order | Right | The tracking page, the right phone, and the right email |
| 20 | A real person | Wrong | The privacy policy's email, and no phone |

None of the fixes is clever AI. They're the unglamorous work: clear out old pages, give the chatbot your stock from your product feed, and test it again every time something changes. Our guides on how to train a chatbot and how to test a chatbot cover both.
How much does it cost to build a chatbot?
Building a chatbot costs nothing with a free app like Shopify Inbox, a monthly fee for a no-code chatbot builder, and a developer's time plus a charge for every message if you code it yourself.
Tidio's Lyro AI agent starts at US$39 a month for 50 AI conversations, and Chatbase at US$150 a month for 4,000 message credits. Both charge more as you get busier. Matey builds custom chatbots for $149 AUD a month with 1,000 conversations included, built and installed free, with the first month free. Our guide to AI chatbot cost works out what a busy month costs on each.
How long does it take to build a chatbot?
Switching on a no-code chatbot builder takes an afternoon, and coding a basic chatbot takes a confident developer a weekend. Getting either one to give the right answers takes a few weeks of testing and fixing.
Our DIY chatbot was answering questions the same day. Reading the store's 593 pages took about 20 minutes on its own, one page at a time, because the store's website turns away anything that reads it too fast. Then the 20 questions showed how far it was from ready. Matey usually has a first version of a custom chatbot ready within 24 hours, because the testing and fixing is our job, not yours.
Should you build a chatbot yourself or get one built?
Build a chatbot yourself if your answers are simple, your range is small, and someone will read the chats and fix wrong answers every week. Get one built if you sell hundreds of products, your stock and prices change often, or a wrong answer would cost you money.
The Matey DIY-or-built test, in our guide on how to create a chatbot for your website, settles it in seven questions. If you sell online, our guide to the ecommerce chatbot covers what one should do for a store, and our case study of an outdoor gear store's custom chatbot shows one working across 7,300 products. Want it to do things as well as answer, like booking jobs or checking orders? That's an AI agent, and our guide to what an AI agent is explains the difference.
Or skip the build. Send us your website and we'll build a free demo of your own custom chatbot from your products, prices, and policies, usually within 24 hours. Then ask it the same 20 questions.
FAQs
How do you build a chatbot?
Write down the questions it has to answer, pick a way to build it (a free app, a no-code chatbot builder, your own code, or a custom build), give it your products, prices, and policies, write its rules, and test it with hard questions. Then put it on your website and update its content whenever anything changes.
Can I build a chatbot without coding?
Yes. No-code chatbot builders like Tidio, Chatbase, and Botpress read your website, take your FAQs and documents, and give you one line of code to paste into your site. On Shopify, Shopify Inbox is free and answers from your catalogue and policies.
How do you build an AI chatbot from scratch?
Read your website's pages, cut them into small pieces, and make the pieces searchable. For every question, send the best-matching pieces and your instructions to an AI model's API, and show its answer in a chat window on your site. Then add a hand-over to a person and a daily refresh of your products.
How much does it cost to build a chatbot?
From free with Shopify Inbox, to US$39 a month for Tidio's Lyro AI agent or US$150 a month for Chatbase, to a developer's time plus a charge for every message if you code it yourself. Matey builds custom chatbots for $149 AUD a month, built and installed free, with the first month free.
How long does it take to build a chatbot?
An afternoon to switch on a no-code chatbot builder, a weekend for a developer to code a basic one, and a few weeks of testing and fixing wrong answers either way. Matey usually has a first version of a custom chatbot ready within 24 hours.
Should I build my own chatbot or get one built?
Build your own if your answers are simple, your range is small, and someone will read the chats and fix wrong answers every week. Get one built if you sell hundreds of products, your stock and prices change often, or a wrong answer would cost you money.