Sub topic 8
Keeping neighboring topics distinct
This chapter assumes you can open Agentforce Builder and preview a conversation. It also assumes you know what a topic's classification description, scope, and instructions are. You will learn how to spot topics that compete for the same requests and how to rewrite them so each request has one clear home.
Why neighboring topics collide
An agent with one topic never has to choose. An agent with six has to pick one topic for every customer message. It does this by comparing the message to each topic's classification description and scope. If two topics could both plausibly own a request, the choice becomes unpredictable. The same message may land in Topic A today and Topic B after you edit an unrelated word.
Overlap is rarely obvious when you write the topics. Each description looks reasonable alone. The problem only shows up when you read them side by side, the way the agent does.
Two kinds of overlap cause most problems:
- Description overlap. Two descriptions use the same nouns and verbs, so a request matches both about equally.
- Scope overlap. The descriptions differ, but the scopes both claim the same task, such as "explain delivery information" in an order topic and a shipping topic.
Both kinds make the agent's choice depend on small differences in the customer's phrasing instead of on the customer's actual intent.
Overlapping versus distinct descriptions
Compare these two pairs. The first pair describes the same area of the business. The second describes different customer intents.
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.In the overlapping pair, "Where is my order?" fits A because it is a question about orders. It also fits B if the customer sounds worried, because a late order is a problem. "My order is wrong" fits both. Nothing in the text tells the agent which one wins.
In the distinct pair, each description names a customer goal and an observable trigger. "Where is my order?" matches A's status lookup. "My order arrived broken" matches B's damaged-order condition. A request that matches neither can be handled as out of scope instead of being forced into the closest topic.
Notice what changed. The rewrite did not add more words for their own sake. It replaced a broad subject ("orders") with specific intents ("status and delivery date" and "start a return or refund").
Organize topics by intent, not by object
A common design mistake is to create one topic per business object: Orders, Accounts, Products, Cases. Customers do not think in objects. They think in goals. A single object supports many goals, and one goal can touch several objects.
Consider the goal "I want my money back for a damaged item." It involves an order, a product, and a case. An object-based design has three plausible homes for it. An intent-based design has one: a returns and refunds topic.
When you plan topics, list the distinct things a customer is trying to accomplish. Then check each one:
- Can you say the goal in one sentence without the word "and"?
- Does it need a different set of actions from its neighbors?
- Does it need different instructions, such as a different order of steps or different escalation rules?
If two candidate topics need the same actions and the same instructions, they are probably one topic. If one topic needs unrelated actions and conflicting instructions, it is probably two.
Use scope to draw the border from both sides
A classification description says what a topic is for. The scope says what it will and will not do. Used together, they mark a border. Write the exclusions in the scope so each topic names what it does not handle, and name the neighbor's job when that helps.
Here is an Order Status topic written with an explicit border:
Topic name: Order Status
Classification description:
Handles customer questions about where an existing order is, when it will arrive, or whether it has shipped.
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.The last sentence of the scope does the border work. "Does not cancel, change, or refund orders" tells the agent that a cancellation request is not this topic's job, even though it is about an order. "Does not answer product questions" separates it from a product information topic.
The matching topic should return the favor. A Returns and Refunds topic should say that it does not look up shipping status. Borders that are written from only one side leave a gap, and requests tend to fall into it.
A good test is to take any sentence in one topic's scope and ask whether a neighbor's scope contradicts or duplicates it. If both topics claim "explain delivery information," you have scope overlap, even if the descriptions look different.
Hand-offs for requests that sit on the border
Some requests genuinely belong to the edge between topics. A customer may ask about an order's status and then say they want to return it. You can handle this without merging the topics. Give each topic an instruction that says what to do when the conversation crosses the line.
If the customer asks for the status of an order, use the Get Order Status action with the order number.
If the customer asks to return an item, tell them you can't process returns in this topic and offer to transfer them to a human agent.The second instruction does not try to do the neighbor's work. It names the condition, states one behavior, and sends the customer onward. In your own agent, the right next step might be a transfer, as shown here, or a new request that the agent can route to the returns topic. Pick whichever your agent is built to do, and test it.
Do not copy the neighbor's logic into this topic to be helpful. A topic that half-handles returns will produce inconsistent refund behavior, and then you have two places to maintain the same rule.
A worked example: three topics in one order flow
Suppose a retailer has three topics. The first draft looks like this:
| Topic | Draft description |
|---|---|
| Order Help | Helps customers with their orders |
| Shipping | Answers questions about shipping and delivery |
| Returns | Handles returns and order problems |
The draft has three problems. "Order Help" is broad enough to contain the other two. "Shipping" and "Order Help" both claim delivery questions. "Returns" claims "order problems," which also covers a late order.
Here is the revised set:
| Topic | Revised description | Border in scope |
|---|---|---|
| Order Status | Looks up where an existing order is and when it will arrive | Does not change or cancel orders, does not start returns |
| Shipping Policy | Explains shipping options, costs, and delivery timeframes before an order is placed | Does not look up a specific order |
| Returns | Starts a return or refund for an item the customer wants to send back or says arrived damaged or incorrect | Does not report shipping status |
The key changes are a clear timing split between Order Status (after ordering, a specific order) and Shipping Policy (general rules, before ordering), and a precise trigger for Returns. Each row now answers a different question a customer might ask.
The diagram shows how typical requests should route after the rewrite.
Find overlap before customers do
You can test boundaries in Agentforce Builder's preview. A borderline test needs more than the happy path. Use this method:
- Write five to ten utterances per topic that clearly belong to it.
- Write several that sit on the border between two topics, such as "My order is late and I want a refund."
- Run each in the preview and note which topic the agent picks.
- For each wrong or unstable result, read both descriptions and both scopes and find the phrase that makes them compete.
- Edit one phrase at a time, then rerun the same utterances.
Changing one phrase at a time matters. If you rewrite three descriptions at once and the behavior improves, you do not know which edit helped. If it gets worse, you do not know which one hurt.
Also rerun your earlier utterances after every edit. Fixing a border between A and B can shift requests that used to land correctly in C.
Symptoms and likely causes
| What you see in preview | Likely cause | Fix |
|---|---|---|
| The same request goes to different topics on different runs | Two descriptions match about equally | Rewrite both around different customer intents |
| A request goes to a topic that says it does not handle it | The scope exclusion is missing or buried | Put the exclusion in a short, direct sentence in the scope |
| One topic catches everything | Its description is broad, such as "orders" | Narrow it to a specific goal and observable trigger |
| A topic never gets selected | Its description uses internal jargon, not customer language | Rewrite using words customers actually say |
| The agent answers a neighbor's question inside the wrong topic | Instructions duplicate the neighbor's logic | Remove the duplicate and add a hand-off instruction |
When separate topics are not the answer
Sometimes testing shows that two topics keep colliding because the work really is one job. Merging them is a valid fix. A single Order Status topic that also explains delivery information is simpler than two topics that fight over it.
Merge when the two topics use the same actions, the same instructions, and the same customer goal. Keep them separate when the actions, escalation rules, or required data differ, even if the vocabulary is similar.
Checklist for each pair of neighbors
Before you ship, take every pair of topics that sit near each other and ask:
- Do the descriptions name different customer intents?
- Does each scope state what the topic does not do?
- Does any scope sentence appear, in different words, in the neighbor?
- Does each topic have an instruction for the request that belongs next door?
- Did you test at least two border utterances for the pair?
Exercise
Two topics have these descriptions. Topic A: "Answers questions about accounts." Topic B: "Helps customers with account access problems." A customer writes, "I can't log in to my account." Explain why routing is unreliable here, then rewrite both descriptions so it is not.
Show answer
Both descriptions center on "accounts," and a login failure plausibly fits both: it is a question about an account and an account access problem. Nothing tells the agent which one to prefer. Rewrite by intent, for example. Topic A: "Looks up and explains account details such as plan, billing date, and contact information for a signed-in customer." Topic B: "Helps a customer who cannot sign in recover access, such as a forgotten password or a locked account." Add to A's scope that it does not help with sign-in or password problems. Then "I can't log in" matches only B.
Exercise
A Returns topic's instructions include a step that checks shipping status and tells the customer when the package will arrive. An Order Status topic already does this. What problem does this create, and what should you change?
Show answer
The same behavior now lives in two topics, so changes to delivery wording or rules must be made twice, and the two answers can drift apart. It also blurs the border, so requests about delivery may be routed to Returns. Remove the shipping-status step from Returns, state in its scope that it does not report shipping status, and add an instruction that offers to move the customer to order status help (or transfer them) when they ask about delivery.
Exercise
You edit the Order Status description, and a border test that used to route to Order Status now routes to Returns. What should you do next?
Show answer
Compare the two descriptions and scopes to find the phrase that now competes, undo or adjust only that edit, and rerun the full set of test utterances, including the clear-cut ones for every topic. Changing one phrase at a time shows which edit caused the shift, and rerunning everything catches side effects in other topics.