Custom Chatbot Design Steps: The Complete Guide From Idea to Launch in 9 Steps
The steps to design a custom chatbot from idea to launch: defining goals and scope, analyzing real conversations, persona and dialect, the knowledge base, flow design, choosing the...

Most chatbot projects that fail don't fail because of the technology. The model is powerful, the tool works, and the window appears on the website. They fail because nobody clearly decided what the bot should do, for whom, in what dialect, from which source it answers, what it does when it doesn't know, when it should stop and hand over to a person, and how we'll know it succeeded. The result is a bot that "talks" a lot, solves little, and is sometimes confidently wrong. A successful custom chatbot is designed before it's coded, just like any product: by understanding the user, defining the task, mapping the journey, setting the rules, and testing before launch. This guide brings together everything we've covered in our chatbot article series into clear, practical steps you can follow from idea to launch.
In this guide we explain when you need a custom chatbot rather than an off-the-shelf one, then nine steps: defining the goal and scope, understanding users and their real conversations, designing persona, tone, and dialect, building knowledge and data, designing flows and handover, choosing the technology and architecture, setting guardrails and governance, testing with an evaluation set, and launching gradually and improving — followed by cost and timeline — and how we build all of this at Coderator.
1. Who is Coderator? And why do we start with design before code?
Coderator is a software company specializing in advanced business systems, mobile apps, and integrating AI into real operating environments. We work from our offices in Giza and Riyadh, serving companies across the Middle East and North Africa and beyond. In chatbot projects, we spend more time on design than clients usually expect: we read their customers' real conversations, define precisely what the bot will and won't do, write its rules, and build a test set before writing a single line of code. An hour of design saves weeks of fixing a bot that answers questions nobody asks, or fails at the questions everyone asks. And we'll tell you honestly if an off-the-shelf tool is enough for your case.
2. Custom or off-the-shelf?
Before the steps, the first question: do you need a custom chatbot at all? Off-the-shelf tools are perfectly suitable when your needs are general: common questions, a single channel, and ready-made integrations with your platform. A custom chatbot becomes the right choice in specific situations:
3. Step 1: Define the goal and scope
The most dangerous sentence at the start of any chatbot project: "We want a bot that answers everything." A bot that tries to do everything does nothing well. Start by defining:
- The problem: what business problem will the bot solve? (Customer service overload, lost leads, or order errors.)
- The metric: how will we know it succeeded? One or two specific numbers (actual resolution rate, response time, or meetings booked).
- In scope: a clear list of the tasks the bot will handle in the first version.
- Out of scope: an even clearer list of what it won't do, and how it responds when asked.
- Channels: where will it run first? WhatsApp, the website, or the app?
- Owner: who in the company owns the bot, decides on its content, and tracks its performance?
4. Step 2: Understand users and their real conversations
The most valuable design resource is already in your hands: your customers' WhatsApp conversations, support tickets, emails, and call recordings. We collect a sufficient real sample (with personal data masked) and categorize it: what types of requests are there? What share does each type make up? How do customers actually write — in which dialect, with which mistakes and abbreviations? Which questions need customer-specific data? Where do customers get frustrated? Which cases need a staff member's decision?
This analysis shapes everything that follows: which tasks to start with (usually a small number of request types make up a large share of the volume), which examples to tune the bot on, and which questions to put in the test set. We also talk to the customer service and sales teams, because they know what the data doesn't reveal: the awkward questions, the exceptions, and the important customers.
5. Step 3: Design the persona, tone, and dialect
The bot speaks on behalf of your company, so its persona is part of your brand. Here we decide: does it speak simple Modern Standard Arabic or your customers' dialect? Is its tone formal or friendly? Does it have a name, or introduce itself as the company's assistant? How does it apologize? How does it handle an angry customer? How does it respond to jokes or out-of-scope questions?
We write this into a clear style guide with examples of good and bad replies, because models follow examples more than general descriptions. Two rules are fixed in every persona we design: the bot is clear that it's an automated assistant and never claims to be human, and it doesn't fake exaggerated emotions — it stays polite, direct, and helpful.
6. Step 4: Build the knowledge and data
The bot answers from two sources: your company's general knowledge (policies, prices, services, and procedures) and customer-specific data (their orders, bookings, and account). The first needs a well-organized knowledge base written in an answerable format, with a single approved source and an owner for updates. The second requires defining the operations the bot can access through your systems, with limited permissions and secure user identification.
This step often reveals important gaps: unwritten policies that only staff know, contradictory information between the website and brochures, or systems that don't offer APIs. Closing these gaps is part of the project, not an obstacle to it — and it benefits your company well beyond the bot.
7. Step 5: Design the flows and handover
Even with AI that understands free conversation, important tasks need carefully designed flows. For each task in scope, we map out:
- The happy path: the natural route from the customer's question to completing the task, in as few steps as possible.
- Required information: what the bot needs from the customer, and how to ask for it naturally rather than like a form.
- Confirmation: before any important action (an order, booking, or change), a clear summary and explicit confirmation.
- Failure cases: what the bot does when it doesn't understand, can't find the information, or a connected system goes down.
- Handover to a person: when it happens automatically, how the customer requests it, and what context the agent receives.
- Out of scope: a polite reply explaining what the bot can do and directing the customer to the right place.
8. Step 6: Choose the technology and architecture
Only now, once we know what the bot will do, do we choose how to build it. The main decisions:
The model
- A global model via API, an Arabic-specialized model, an open-source model hosted on your servers, or a mix.
- Chosen through real testing on your customers' questions and dialect, balancing quality, cost, and data sensitivity.
The architecture
- A middleware server between the model and your systems that enforces identity, permissions, and rules.
- No lock-in to a single model, so it can be swapped when a better or cheaper one appears.
Channels and interface
- WhatsApp through the official platform, an interface on your website or app, or several channels with one brain.
- A proper Arabic interface, and performance that doesn't slow your site.
Hosting and cost
- Where data and models are hosted, in line with data protection requirements.
- Estimating cost per conversation, usage limits, and caching to control costs.
9. Step 7: Set the guardrails and governance
An AI chatbot needs clear rules governing it, not just general instructions. There are useful reference frameworks here: in July 2024, the US National Institute of Standards and Technology (NIST) published a Generative AI Profile for its AI Risk Management Framework, which identifies twelve risks unique to or made worse by this technology, with suggested actions to manage them. In Saudi Arabia, the Saudi Data and AI Authority (SDAIA) issued AI Ethics Principles, followed by a document of Generative AI Principles, covering principles such as privacy and security, reliability and safety, transparency, and accountability. In practice, we translate this into:
- Answers from your sources: prices, policies, and sensitive information from your official data only, and admitting what it doesn't know instead of guessing.
- Decision limits: what the bot decides and what's left to people, especially for money, exceptions, and sensitive situations.
- Security: permissions in the server, not in the instructions; no secrets in the model's instructions; and testing against prompt injection.
- Privacy: minimizing data sent to the model, a defined retention period, and compliance with data protection laws.
- Transparency: customers know they're talking to an automated assistant and can reach a person.
- Accountability: a designated owner in the company, a log of conversations and actions, and regular review.
10. Step 8: Test with an evaluation set
"We tried it and it worked fine" isn't testing. Real testing starts with building an evaluation set: hundreds of real questions and conversations from your customers (with data masked), each with the expected correct answer or action. It covers common questions, difficult ones, dialect, Franco and spelling mistakes, out-of-scope questions, angry customers, and attempts at manipulation and coaxing.
We then run the bot against the whole set and measure: the share of correct answers, invented information, timely handover, and adherence to scope and tone. Most importantly, this set stays with you: we rerun it with every change to the instructions, knowledge, or model, to make sure an improvement in one area hasn't broken another. After that comes testing with real internal users before any customer sees it.
11. Step 9: Launch gradually and keep improving
Don't launch the bot to all customers at once. Start with a first version covering the most frequent tasks, on a single channel, for a share of visitors, or during specific hours, with daily monitoring in the first week. Review conversation samples — especially low-rated ones and those handed over to staff — and collect the questions the bot couldn't answer.
Then turn this into a regular improvement cycle: closing knowledge gaps, improving instructions and examples, adding new cases to the evaluation set, and tracking the metrics tied to the goal you defined in step one. Once the results are proven, expand the scope with new tasks and channels, with each expansion going through the same steps in brief. A good chatbot isn't a project that ends — it's a product that gets better every month.
12. Cost, timeline, and team
The cost of designing and building a custom chatbot depends on several factors: the number of tasks in scope, the number of systems to integrate, the channels, the current state of your knowledge base, dialect and voice note support, security, data protection, and hosting requirements, and expected conversation volume. There are also ongoing running costs: models, hosting, channel messages, and regular review and improvement. The timeline also depends on scope, and a focused first version reaches launch much faster than a project trying to cover everything.
On your side, the project needs at least three roles: a decision maker who owns the bot and sets its priorities, a customer service or sales expert who knows the questions and exceptions and reviews the answers, and a technical owner for access to systems and data. Our methodology follows the same nine steps:
- Discovery: goal, scope, and metric, analysis of real conversations, and team interviews.
- Design: persona and style guide, flows and handover, guardrails and decision limits.
- Knowledge and data: organizing the knowledge base, defining operations and permissions, and closing gaps.
- Build: choosing the model through testing, the middleware server, channels and interface, and integration with your systems.
- Evaluation: an evaluation set from your conversations, security testing, and internal testing with your team.
- Launch and improve: a gradual launch, regular review, and expanding scope once results are proven.
