X-TALKPlaybook Edition 2.0 · 2026
Try X-TALK
Chapter 06Updated2 min read

Prompt, knowledge base or tool: where to put knowledge

Three places, three roles. The prompt is the agent's work rules, the knowledge base is its handbook, and tools give it live access to the company's systems.

One of the most important decisions when building an agent is where to put a piece of information. In theory, almost everything can be pasted into the agent's instructions: procedures, the FAQ, even the full terms and conditions. Models today have huge context windows, so it is tempting. In practice it is a mistake.

✕Everything in the prompt
  • every message processes the whole prompt again, so cost grows with every turn
  • in a voice conversation, a longer context means a slower response
  • the model treats everything equally, and rules get lost in a sea of facts
  • a price list change means editing the agent's instructions
  • hard to audit: what did the agent know on the day of the conversation?
✓Lean prompt + knowledge + tools
  • the prompt holds only principles, tone and decision rules
  • knowledge is retrieved only when it is needed
  • live data is fetched from the system at the moment of the question
  • knowledge is managed independently, by the person responsible for processes
  • a clear trail: which source and which tool shaped the answer
Prompt (agent instructions) Knowledge base (RAG) Tool (integration)
What goes here Role, scope, tone, data collection rules, decision rules, escalation, prohibitions, a description of when to use tools Procedures, FAQ, terms and conditions, price lists, product descriptions, instructions Statuses, appointment slots, stock levels, customer data, creating tickets and leads
How often it changes Rarely Weeks, months Every minute
Who maintains it Agent owner Process / knowledge owner IT / integrator (or the tools Copilot)
Analogy Work rules and character A handbook on the desk A call to the department that knows

Exceptions to the rule

Some information is worth keeping in the prompt even though it is "knowledge":

  • critical facts needed in almost every conversation: e.g. the company name, the main contact number, the key opening hours;
  • lists the correct use of tools depends on: e.g. the list of supported cities, appointment types or specialties, if it is short;
  • a description of tools and their parameters: when to call them, what they need, how to interpret the result (chapters 10 and 13).

And the other way round: some rules can live in the knowledge: a procedure with a required_questions field itself makes sure the agent asks what it must (chapter 05).

The agent's Copilot adds to the instructions when to call the new tools and how to interpret their results. The change goes into a draft and is tested before customers see it.

Ready for the next step?

Describe your company in the free Copilot on x-talk.me. In a few minutes you will see your own agent in chat and on the phone. Or let's talk about what an AI communication centre could look like in your company.

+48 732 106 896 · x-talk.me