AI agent app development: the knowledge base your agent needs and how to keep it up to date
Published on
When a business in Mallorca or elsewhere in the Balearic Islands starts thinking about AI agent app development, it usually begins with the visible part: what the chat will look like, which languages it will speak, whether it lives in the app, on the website or on WhatsApp. That makes sense, but how good an agent is depends far less on that layer than on something much less exciting: the information it is given to answer questions and take actions.
An agent with a strong model and poor documentation will confidently say things that are no longer true. An agent with a decent model and a well-organised knowledge base is usually useful from week one. This article covers what that knowledge base should contain, how to write it, who should own it and how to check it stays current, with a hypothetical example to make it concrete.
What a knowledge base is (and what it isn't)
The knowledge base is the set of texts and data the agent looks up before answering: services, terms, opening hours, FAQs, internal procedures. It is not "everything on the server". Dumping whole folders of documents, old emails and PDFs from three seasons ago is the quickest way to get an agent that mixes versions and quotes outdated information.
It helps to separate three things:
- Stable knowledge: what the business does, how it works, the areas it covers, general policies. Changes a few times a year.
- Seasonal knowledge: summer and winter hours, services that only run for a few months, closures. In the Balearics this matters a lot.
- Live data: availability, the status of an order or booking, date-dependent prices. This doesn't belong in documents at all: the agent should read it from the system that already holds it (calendar, CRM, management software) at the moment it's needed.
If a piece of information changes daily, it shouldn't be written into the knowledge base. It should be read from the source system.
Hypothetical example: a physiotherapy clinic in Manacor
Picture a physiotherapy clinic in Manacor that wants an app with an AI agent to answer questions, help patients pick the right type of session and book appointments. It serves locals all year round and, in summer, plenty of visitors from Mallorca's east coast who write in English or German.
Before any code is written, the clinic needs to gather:
- One document per service (general physio, sports physio, pelvic floor, massage): who it's for, what it includes, how long it lasts and what the patient should bring.
- Booking and cancellation terms, written once, with the date they were last reviewed.
- Winter and summer hours, with the changeover dates.
- A list of what the agent must not do: diagnose, recommend medication or say whether an injury is serious. When someone describes specific symptoms, it should offer an appointment or hand the conversation to a person.
- The questions that actually come in today by phone and WhatsApp, with the answer the team would give.
Available slots and patient records are not part of that package: the agent reads them from the clinic's booking system, with the minimum permissions it needs.
How to write documents the agent can actually use
You don't need a technical format, just a few simple rules:
- One topic per document. Ten short cards beat a forty-page manual, because you can update one without touching the rest.
- Plain language. "Cancellation is free up to 24 hours before" works better than a legal paragraph with buried exceptions. Put exceptions in a separate list.
- One source per fact. If your opening hours appear on the website, in a PDF and in the agent's card, sooner or later they won't match. Decide where each fact lives and point everything else there.
- Visible date and owner. Every card shows when it was last reviewed and who is responsible for it.
- Real example questions. Adding two or three ways customers ask the same thing makes it easier to check later that the agent finds the right card.
If you work in several languages, the usual approach is to keep one reference version and make the translations depend on it, rather than letting separate versions drift apart.
Who maintains it: the part most people forget
The most common failure doesn't happen at launch, it happens months later. A rate changes, a service is added, you close in January, and nobody updates what the agent reads. The agent keeps answering confidently, using last season's information.
To avoid that, decide before launch:
- One owner per block. Front desk for hours and bookings; management for prices and terms; each team for the description of its own services.
- Update triggers. Whenever something changes on the website, the price list or the cancellation policy, the matching card is reviewed the same day. Ideally that's a step in the change checklist, not something someone has to remember.
- A seasonal review. In the Balearics it makes sense to schedule at least two full reviews a year: before high season and after it ends.
- A place for what the agent couldn't answer. Unanswered questions are the best clue to which card is missing. Someone should go through them weekly and decide whether to add content or route that kind of question to a person every time.
In the app itself, this means a simple admin panel where your team can edit cards without waiting for a developer, see flagged conversations and know which version of each document was live at any given time.
How to check the agent uses the information properly
"Trying it for a while" isn't enough. A practical approach:
- Build a test set from real conversations: thirty to fifty questions, each with the expected answer and the card it should come from.
- Include trick questions: topics the agent must pass to a person, services you don't offer, dates outside the season.
- Re-run the set whenever you change important documents or the agent's behaviour. If an answer that used to be right goes wrong, you catch it before a customer does.
- Check it relies on the right card. A well-written answer based on an old document is still a failure, however good it sounds.
Are you ready to start? A quick checklist
Before commissioning AI agent app development, ask yourself:
- Do you have your current services, terms and hours written down in one place?
- Do you know which data the agent must read live, and which system holds it?
- Is there a named person responsible for each block of information?
- Do you have a list of things the agent should never answer on its own?
- Have you collected real customer questions to test it with?
If several answers are "no", that's not a reason to drop the project. It means the first phase should be about getting that information in order, work that tends to improve your website, phone support and staff onboarding too, agent or no agent.
Next step
At Derek Solutions we design and build AI agent apps for businesses in Mallorca, Ibiza, Menorca and across the Balearic Islands, including the less glamorous part: organising the knowledge base, connecting it to your systems and giving you a panel to maintain it. See how we work on our AI and automation and mobile app development pages.
If you'd like to review what information you already have and what's missing for an agent to answer well, email derek@dereksolutions.com or call +34 680 283 973.