Sub topic 1
What a Topic Is and the Fields You Write
Prerequisites
Assume you know the basics of Salesforce Setup, Agentforce agents, topics, and actions. You should also be able to open Agentforce Builder and preview a conversation.
What a Topic Is
An Agentforce topic is a focused area of work that helps an agent handle a particular customer intent. A topic contains written guidance that tells the agent what requests belong there, what the topic covers, and how the agent should respond.
The main fields you write are:
| Field | Purpose |
|---|---|
| Classification description | Explains which customer requests match the topic |
| Scope | States what the topic does and does not cover |
| Instructions | Directs the agent’s behavior after the topic is selected |
How the Agent Chooses a Topic
When a customer sends a request, Agentforce compares the request with the classification descriptions of available topics. It selects the topic that best matches the customer’s intent. The topic’s instructions then guide the response and any action calls.
A description should describe the request, not merely name an object. “Questions about orders” is broad. “Looks up the status and delivery date of an existing order” identifies a clearer intent.
Writing a Classification Description That Routes Correctly
Use specific customer goals and observable requests. Include useful boundaries such as “existing order” or “delivery date.” Avoid vague words such as “help,” “issues,” or “anything related to.”
Handles questions about where an existing order is,
whether it has shipped, and when it will arrive.This description helps the agent distinguish order-status requests from returns, refunds, cancellations, or product questions.
Defining What the Topic Does and Does Not Cover
The scope states the topic’s allowed work and its boundaries. Write both sides so neighboring topics do not compete.
For example, an order-status topic can look up an existing order and explain shipping information. It should not cancel, change, or refund an order. Those requests belong in separate topics with distinct descriptions.
Exercise
A customer says, “My package has not arrived. Can you check the delivery date?” Which field should identify this request, and what should it say?
Show answer
The classification description should identify an existing-order status request, such as: “Handles questions about shipment status and expected delivery dates for existing orders.”