How to Build a Chatbot: Steps, Tools, Pitfalls
· DigifyNow
A chatbot has three parts. A system prompt sets its role and limits, a knowledge source supplies the answers, and a channel is where users type. Start by deciding which questions the bot may answer and when it hands off to a person. Then build a prototype with a no-code builder or through an API, and test it with real inquiries from your own inbox.
To build a chatbot, you give a language model a fixed role through a system prompt, connect it to a knowledge source you have checked, and build in a way for it to hand questions off to a person. For an internal test, a project in a chat subscription is enough. For customers on your website, you need a workflow tool like n8n or a custom build on a model provider's API. Before launch, test it with real inquiries from your inbox.
What do you need to decide before you build a chatbot?
Most chatbot projects don't fail because of the technology. They fail because nobody decided what the bot is actually for. "The bot should answer customer questions" isn't a brief. A workable brief has three parts: a list of questions the bot is allowed to answer, a list of questions where it hands off to a person, and the source every answer comes from. How the system prompt, knowledge retrieval and tool calls work together technically is covered in our article on how AI chatbots work. This article is about how to build one.
A simple exercise is enough to check this. Pull together the inquiries from the last few weeks out of your inbox, contact form and phone notes, and sort them. If the answer is already written down somewhere, such as opening hours, delivery terms or a product description, a bot can take it over. If the answer needs a case-by-case decision, for example on goodwill gestures, a price or a complaint, it goes on the handoff list. If almost everything ends up in the second group, a chatbot simply isn't worth it.

How to build a chatbot in six steps
- Build a question list: Collect real inquiries from your day-to-day work in a spreadsheet, each with the correct answer and where it comes from. This spreadsheet will also serve as your test set later.
- Write the system prompt: Define the role ("You answer questions about delivery and returns"), the tone, off-limits topics and the exact wording for the handoff. Include an explicit instruction not to guess when the knowledge source has no answer.
- Prepare the knowledge source: one document per topic, each with a date and a person responsible for it. Old and contradictory versions have to go, because the bot can't tell this year's price list from last year's.
- Build the handoff: Where does a question go that the bot shouldn't answer? Into the ticketing system, by email to a shared inbox, or as a callback request with name and contact details. Without this path, the customer hits a dead end.
- Test the prototype: Run the question list from step 1 through it and mark each answer as correct, wrong or "should have handed off." Then fix the prompt or the knowledge source, not the model.
- Connect the channel and monitor: website widget, internal team chat or WhatsApp. In the first few weeks, read the conversation logs regularly and add new questions to the list.
Most of the work is in step 3, and that stays true after launch. How to store knowledge so it stays current is covered in our article on setting up a knowledge base. If the bot is going to run on WhatsApp, there are separate rules for templates and reply windows. Those are explained in our article on WhatsApp chatbots.
Example: a question list for a trade business
Here is what steps 1 and 4 look like in practice, using a made-up but typical case: a plumbing and heating business in the Westerwald region of Germany that wants to build a chatbot for its website. Each row records where the answer comes from and whether the bot answers or hands off. The third column is what matters. It defines what the bot must not do, and it becomes the yardstick during testing.
| Typical inquiry | Source of the answer | Bot or human |
|---|---|---|
| "Are you open on Saturdays?" | Opening hours on the website | Bot answers |
| "Do you also come out to Hachenburg?" | List of service areas | Bot answers |
| "My heating has stopped working." | Emergency service number | Bot gives the emergency number immediately and asks no follow-up questions |
| "How much does a new bathroom cost?" | No written source, case-by-case decision | Handoff: callback request with name, phone number and location |
| "When is my technician coming?" | Scheduling | Only with an integration to the scheduling system; without it, handoff to the office |
| "I want to make a complaint." | None | Handoff to the shared inbox, with no justification from the bot |
You answer questions on the website of a heating business only about opening hours, service areas and emergency service. Use only the attached documents. Never state prices. If the documents contain no answer or someone asks for a person, write: "Our office will be glad to help with that. May I take your name and phone number?"
The excerpt shows three things many templates leave out: a closed list of topics, an explicit prohibition (no prices) and a handoff sentence given word for word. Without that last instruction, the model will write its own answer to unfamiliar questions instead of handing off.
What tool should I use to build my own AI chatbot?
Which tool fits depends mainly on who will be talking to the bot. For your own team, a project in a chat subscription is often enough. For customers on your website, you need a channel you control yourself. The table measures every option against the same criteria. Features and plans change, so the vendor documentation is what counts: the help pages on Claude Projects, the n8n documentation, the OpenAI API developer documentation and the Claude API documentation.
| Option | Who talks to the bot | Knowledge and instructions | Coding required | Where it stops |
|---|---|---|---|---|
| Project in Claude (chat subscription) | Signed-in users in your own account or team | Custom instructions and uploaded documents per project | No | No widget for customers on your own website, no handoff of your own to a ticketing system |
| n8n with AI agent and chat trigger | Team or website visitors via a chat endpoint | System prompt in the agent node, connection to documents and tools via workflow nodes | Little, but you need to understand workflows | If you self-host, updates, backups and outages are on you; complex user interfaces aren't what it's built for |
| Custom build on the OpenAI API | Any channel you build | Fully under your control, including your own knowledge retrieval | Yes | Development, hosting and maintenance are entirely on you or a service provider |
| Custom build on the Claude API | Any channel you build | Fully under your control, including your own knowledge retrieval | Yes | Same as the OpenAI API: operations and maintenance are ongoing tasks |
Not every route makes sense for everyone. If you only want to find out internally whether your documents are good enough to produce good answers, a chat project gets you a result fastest. A custom build on an API only pays off once the bot needs access to systems like your inventory management (ERP) or CRM, or you want to control the interface and data flow yourself. Building a custom solution right away just to test whether the idea works means paying a lot for a question you could answer more cheaply.

Why DIY chatbots fail
- Made-up answers: When the bot finds nothing in the knowledge source, the language model still writes a plausible-sounding answer. The cause is usually a prompt without a clear instruction to hand off in that case.
- Outdated knowledge: The bot quotes the old delivery time because last year's PDF is still in the knowledge source. The cause: nobody is responsible for weeding out old documents.
- No handoff: The customer asks for a person several times and gets the same answer every time. The cause: a handoff path was never built.
- Too broad a brief: A bot that's supposed to answer everything answers nothing reliably. The cause: the question list from step 1 is missing.
- No review: If nobody reads the logs regularly, wrong answers only come to light when a customer complains.
- Personal data in the wrong tool: Employees upload customer data to a subscription for which nobody has checked a data processing agreement (DPA).
What does the EU AI Act require of a chatbot?
The transparency obligations of the European AI Act have applied since August 2, 2026; the binding text is the AI Act on EUR-Lex in its most recently amended version. For AI systems that interact directly with people, it requires that people are informed they are talking to an AI, unless that is obvious anyway. In practice, that means a clear notice in the chat window before the conversation starts. Providers of systems that generate synthetic text and were placed on the market before August 2, 2026 have until December 2, 2026 to mark such content. In addition, providers and deployers are expected to support the AI literacy of the staff who work with the system; they don't have to guarantee any particular level of literacy. Stricter rules apply to high-risk systems: after the latest amendment to the regulation, from December 2, 2027 for systems under Annex III and from August 2, 2028 for systems under Annex I. A chatbot that answers questions about delivery times usually isn't one of them; one that pre-screens job applicants, for example, can be. Whether your use case is affected has to be assessed case by case. The notice in the chat window is a technical measure. Whether you meet your obligations overall depends on what you use the bot for and how you deploy and run it.

How much does it cost to build a chatbot?
There's no honest flat price, because costs arise in four places. First, scope: how many topics does the bot cover, and how many questions does it have to answer reliably before launch? Second, integrations: a bot that only answers from documents is a different job from one that pulls order status from your inventory system. Third, data: preparing the knowledge source mostly costs working time on your side. Fourth, operations: language models accessed through an API are billed by the tokens processed, so costs grow with the number and length of conversations. Hosting and maintenance come on top. How subscriptions, tokens and operations add up is covered in our article on AI costs. A reliable figure only emerges from a question list and a list of the systems to be connected.
Related projects: process, software, website, online store
Creating a process map
A process map (also called a process landscape) shows a company's management, core and support processes on a single page, along with how they connect. Before you build a chatbot, it helps you find the process where most recurring questions come up, such as order intake or complaints. How to put one together is shown in our article on the process map with an example.
Having custom software built
If you're having software built, you first need a written description of the workflows, roles and integrations, usually as a requirements document with testable acceptance criteria. A chatbot connected to inventory management or a CRM is a software project too, and goes through the same phases from requirements to acceptance. The process is described in our article on how a software project runs.
Having a website built in the Westerwald
With a website, the domain, hosting accounts and content belong to the client. That should be put in writing before work begins. A chat widget can be added later if the site allows custom scripts. Some website builders restrict this. Information on web design in the Westerwald is on the corresponding service page.
Having an online store built in the Westerwald
With an online store, the effort depends on the number of products and variants, the payment methods and the connection to inventory and accounting. A store chatbot can answer questions about shipping and returns from the store's terms. It can only say something about order status if it has access to the order data. How DigifyNow builds online stores is described on the page on online store development.

How DigifyNow builds chatbots and AI assistants
DigifyNow, based in Unnau in Germany's Westerwald region, builds AI assistants for small and mid-sized businesses. The approach follows the six steps above: first the question list, then the knowledge source, then the handoff to people. Only after that is the channel connected. A project also covers automating adjacent workflows and training the employees who will work with the assistant later, because an assistant is only as good as the upkeep of its knowledge source. How the offering is structured is on the page about AI assistants for businesses. If the first review shows that an existing chat subscription is enough, that's a valid result too.
When outside help is worth it
Outside help is worth it when the bot needs access to internal systems like a CRM, inventory management or a ticketing system, when customers will talk to it and not just employees, or when nobody in-house has time for operations and review. For an internal test with your own documents, you usually don't need any. For a conversation, have your question list, the list of existing documents and the systems to be connected ready. Use the contact form for a free assessment of your project to describe what you're planning, and you'll get non-binding feedback on which route fits.

Frequently asked questions
Is ChatGPT a chatbot?
Yes. ChatGPT is a chatbot based on a large language model: it takes in text and generates a response. A chatbot for your business differs from it by having a fixed brief, meaning a system prompt with topics and limits, its own knowledge source and a handoff to people. ChatGPT is the general-purpose tool; your bot is a narrowly scoped application of it.
What is an example of a bot?
A bot is a program that carries out tasks automatically. Examples include a website chat that answers questions about opening hours and delivery terms, a WhatsApp bot that takes appointment requests, or an internal assistant that answers employees' questions about work instructions. Rule-based bots follow fixed click paths; AI bots write free-form answers from a knowledge source.
Is there a free chatbot website?
Many chat services and chatbot builders offer a free tier, usually limited in the number of messages, the features or use on your own website. That's often enough to test whether your documents are good enough for good answers. Before using it for customer conversations in production, check where the data is processed and whether a data processing agreement (DPA) is available.
How do I create my own AI assistant?
At its core, from three parts: an instruction that defines role, tone and limits, a collection of current documents as the knowledge source, and a test with real questions from your day-to-day work. A project in a chat subscription is enough to get started. Only when the assistant needs to access company systems or serve customers does it become a build on an API.
Can I build a chatbot without coding skills?
Partly. An internal bot in a chat project needs no code, just instructions and uploaded documents. A website bot built with a workflow tool like n8n needs no code, but you do need to understand triggers, nodes and data flow. As soon as the bot has to pull live data from inventory management, a CRM or scheduling, you can hardly avoid programming against an API.
How long does it take to build a chatbot?
That depends less on the tool than on the knowledge source and the integrations. A bot that only answers from existing, current documents is done much faster than one that pulls order or appointment data. The main time sinks are weeding out outdated documents and the test rounds with the question list. A reliable timeline only exists once the topics and the systems to be connected are settled.