Sub topic 3
Writing a classification description that routes correctly
This chapter assumes you can open Agentforce Builder and preview a conversation. It also assumes you know what an agent, a topic, and an action are. Here you will write the one field that decides whether a request reaches your topic at all: the classification description.
What the description does
When a customer sends a message, the agent compares it with the classification description of each topic it has. It picks the topic whose description best matches the request. The description is a routing signal. It is not where you tell the agent how to behave. Behavior belongs in the instructions, which only apply after the topic has been chosen.
If the description is weak, the right topic is never selected. Good instructions inside it will not run.
Describe the customer's intent
Write the description from the customer's point of view. Name the situation the customer is in and what they want. Avoid describing your internal process or the tools you use.
A useful description answers one question: what requests should land here? Keep it to one or two sentences.
Topic name: Order Status
Classification description:
Handles customer questions about where an existing order is, when it will arrive, or whether it has shipped.This works for three reasons:
- It names the object: an existing order.
- It lists the intents: location, arrival time, shipping state.
- It uses words customers actually use, such as "where", "arrive", and "shipped".
Make neighboring descriptions distinct
Topics compete for the same request. If two descriptions overlap, the agent can send similar messages to different topics from one test to the next.
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?" and "My order is wrong" both fit either topic. In the distinct pair, each description names a different action the customer wants: look something up, or start a return.
When you review a set of topics, compare descriptions side by side. For each pair, write one sample message that fits only one of them. If you cannot, the descriptions are too close.
Common description mistakes
| Mistake | Example | Fix |
|---|---|---|
| Too broad | "Handles orders." | Name the specific intents the topic covers. |
| Too vague | "Helps customers." | Name the object and the customer's goal. |
| Written as instructions | "Always ask for the order number first." | Move this to the instructions. |
| Internal jargon | "Handles OMS lookups." | Use the customer's words. |
| Overlapping neighbor | Two topics both "about orders" | Split by intent: look up versus change or return. |
Check the routing in preview
Write the description, then test it before you write any instructions.
- Open Agentforce Builder and start a preview conversation.
- Send a message that should match the topic, such as "Has my package shipped yet?"
- Check which topic the agent selected.
- Send a message that should not match, such as "I want to return these shoes."
- Confirm it goes to a different topic or to your fallback handling.
- Try a phrasing without the obvious keywords, such as "My stuff hasn't shown up."
If a message goes to the wrong topic, change the descriptions rather than adding instructions. Instructions cannot fix a routing problem.
Revising a description
Change one thing at a time and retest with the same set of messages. Keep a short list of utterances, some that should match and some that should not, so you can see whether an edit helped or caused a new misroute.
Exercise
Two topics have these descriptions. Topic A: "Answers questions about shipping." Topic B: "Helps with delivery issues." A customer writes, "My package is late." Why is routing unreliable, and how would you rewrite the descriptions?
Show answer
Both descriptions cover the same idea (shipping and delivery), so the message fits either one and the agent may choose differently between runs. Split them by customer intent. For example, Topic A: "Looks up the shipping status and expected delivery date of an existing order." Topic B: "Handles reports that a package is lost, damaged, or far later than its promised date and starts a claim." Then retest "My package is late" and confirm it lands where you want.
Exercise
A teammate writes this classification description: "Always ask for the order number, then look up the order." What is wrong with it, and where should the text go?
Show answer
It is a behavioral rule, not a description of which requests belong to the topic. The agent uses the description to route, so it gives no help in matching customer messages. Rewrite the description to name the intent (for example, "Handles questions about where an existing order is or when it will arrive") and move the order-number step into the topic's instructions.