Module 4 · Customer service agent

Knowledge base, escalation rules and the agent's refusals

Lesson 11 of 15 8 min lesson Updated on October 30, 2026
Progress in the course73%

In this lesson

Right base, right answer.

The agent answers with what it knows. What it knows about your company is what you wrote, and what it promises binds the company.

Why you need a knowledge base

The model knows what a store is and what an exchange is. It does not know your exchange deadline, does not know it changed in September and does not say where it got the answer. The knowledge base solves that. The technique is called RAG: before answering, the system searches the base for the right passage and pastes it in next to the question. The model answers by reading, not by remembering.

Three ways to deliver the base:

The knowledge base item

The base is not the manual. It is the list of questions people ask, with the answer the company actually applies.

Q: Do you do exchanges? / Can I exchange it if it doesn't fit? A: Yes. Exchanges within 7 calendar days of delivery, item unused and with the tag on. Source: exchange policy, approved by the owner. Reviewed in September 2026.

Policy is a promise

Article 30 of the Código de Defesa do Consumidor, Brazil's Consumer Protection Code, says that sufficiently precise information, given by any means, binds the supplier. That includes your agent's message. Each policy must have been approved by whoever answers for it. And the reply repeats the policy exactly: "it usually arrives in 3 days" is a promise of 3 days with one word of decoration.

"We sort it out case by case" is not a policy. If the owner wants to decide each case, the whole subject goes to escalation.

When the agent does not know

Anthropic recommends giving the model permission to say it does not know and removing any claim with no passage to support it. In practice: "I don't have that information, I'll check and get back to you". If the person insists, it holds its position.

Escalation

Each rule has a trigger, an action by the agent, a recipient with a name and a deadline to get back.

A rule with no recipient escalates into the void. Before turning the agent on, trigger the rule with a test message and time the reply.

What the agent never says

Scenario

Hypothetical: at a law firm, the agent told someone who asked about being dismissed from a job that they "probably" had a right to something. The person then books a consultation expecting a yes. The fix was a refusal with a ready answer.

What the pros know

The chunk loses its context. In file search, the system cuts the texts into small chunks. In 2024, Anthropic described the problem: a chunk can lose the context of where it came from. An example of our own: a chunk says only "the deadline is 7 calendar days", without saying the deadline for what. A search for "exchange deadline" does not find it. That is why people who build a knowledge base write each item to make sense on its own, with the subject in the first sentence, and test the search with customers' real questions.

Careful

Before turning the agent on, write down the policies that exist only in the team's heads. If a policy does not exist, the model fills the gap with something plausible, and the plausible can bind the company.

Practice · 10 min

  1. Write five knowledge base items, with question, an answer of up to three lines, source and date.
  2. Write the escalation rules with the name of who receives each one and the deadline the team actually meets.
  3. Write two refusals with a ready answer: someone else's data and the question about being a bot.
Deliverable: the document "Agent knowledge base and rules v1", with an owner and a date. Keep it for the final project.

Summary

Sources

Read on October 30, 2026.

  1. Anthropic. Contextual retrieval: chunks that lose their context.
  2. Anthropic. Reduce hallucinations.
  3. Brazil. Código de Defesa do Consumidor (Lei 8.078/1990): article 30.
  4. Meta. WhatsApp Business Messaging Policy.
  5. European Union. AI Act, article 50.

Lesson quiz

Three situations to apply what you learned.

Lesson 11 of 15

Before moving on to the next lesson

Put what you saw into practice. The boxes stay checked in this browser, so you can come back later.

Have a question about this lesson? The IV Help team answers personally on WhatsApp.

Ask on WhatsApp