Sub topic 8
Keeping Neighboring Topics Distinct
This chapter assumes you can open Agentforce Builder, preview a conversation, and write a basic classification description and scope. Here you will learn how to find topics that compete for the same requests and how to separate them.
Why overlap causes trouble
The agent picks a topic by comparing the customer's request with each topic's classification description. If two descriptions fit the same request, the choice between them is unreliable. The same utterance can land in different topics from one test to the next.
Overlap usually shows up in three ways:
- The same question routes to different topics on different runs.
- A request goes to a topic that cannot do what the customer asked.
- A topic is almost never selected because a neighbor absorbs its requests.
Compare descriptions by customer intent
Overlap is easiest to see when you put descriptions side by side. Here are two topics that both sound like "order help."
Overlapping:
Topic A description: Answers questions about orders.
Topic B description: Helps customers with order problems.
Distinct:
Topic A description: Looks up the status and delivery date of an existing order.
Topic B description: Starts a return or refund for an order the customer says arrived damaged or incorrect.The overlapping pair describes a subject area, "orders." A late package is both a question and a problem, so either topic could take it. The distinct pair describes what the customer wants to get done: find out where an order is, or start a return. Each request now has one natural home.
When you write a description, name the customer's goal and the situation that triggers it. Avoid broad nouns like "orders," "accounts," or "billing" used alone.
A review process for neighbors
Run this check whenever you add or edit a topic.
- List every topic in the agent with its classification description.
- For each pair, write three example requests that belong to the first topic. Ask whether the second description could also claim them.
- Repeat in the other direction.
- Check each topic's scope. If a scope says "does not cancel orders," some other topic should own cancellations. A request that no topic owns is a gap.
- Rewrite the weaker description so that the verbs and situations differ.
The scope statements help here. A scope that names what the topic does not do tells you which neighbor should take the request, and it gives you the wording for a handoff in the instructions.
Order Status scope:
Look up the status of an existing order and explain shipping and delivery information. Does not cancel, change, or refund orders, and does not answer product questions.If a customer asks for a refund inside this topic, the instructions can tell the agent what to do, such as offering a transfer to a human agent.
Handle requests that sit on a boundary
Some requests really do touch two topics. "My order is late and I want my money back" asks for a status lookup and a refund. Decide in advance which topic leads, and write instructions that cover the edge:
- Choose the topic that fits the customer's main goal. Here the refund is the goal, so the return topic leads.
- In the other topic, add an instruction that sends refund requests away rather than attempting them.
- Test the mixed utterance directly. Do not assume it works because each half works alone.
Check your work in the preview
After rewriting, run realistic utterances in the Agentforce Builder preview. Look at which topic the agent selects for each one. Include the in-between phrasing customers actually use, such as "where's my stuff" or "this isn't what I ordered." If a request still goes to the wrong topic, compare the two descriptions again and look for the shared wording.
Exercise
A support agent has two topics. Topic A: "Handles questions about billing." Topic B: "Helps customers with payment issues." A customer writes, "I was charged twice." Why is routing unreliable, and how would you rewrite the descriptions?
Show answer
Both descriptions cover the subject of money, so the request fits either one. Rewrite them around different intents. For example, Topic A: "Explains charges, invoice line items, and billing dates on an existing invoice." Topic B: "Starts a dispute for a charge the customer says is duplicated or unauthorized." Then add to Topic A's scope that it does not dispute charges, and test "I was charged twice" to confirm it reaches Topic B.
Exercise
A customer says, "My order is late and I want a refund." The Order Status topic does not process refunds. What should you do so this request is handled well?
Show answer
Decide that the refund topic leads, because refund is the main goal. Add an instruction in Order Status that tells the agent to offer a transfer or redirect when a customer asks for a refund. Then test the mixed utterance in the preview.