Sub topic 2
What Instructions Do Once a Topic Is Selected
Assume you know basic Salesforce Setup, Agentforce topics and actions, and how to preview an agent conversation. This chapter focuses on what happens after the agent selects a topic.
Instructions shape the response
A topic’s classification description helps Agentforce decide whether the topic matches a customer request. Once selected, the topic’s instructions guide the agent’s next steps. They tell the agent what information to collect, which actions to use, and what to say when a condition occurs.
Instructions should add behavior, not repeat the topic description. For an Order Status topic, the instructions might require the agent to identify the order, retrieve its status, and explain the delivery date.
1. Ask for the order number if the customer has not provided it.
2. Look up the order before describing its status.
3. State the current status and expected delivery date briefly.
4. If the order cannot be found, say so and ask the customer to check the number.
5. Do not guess an order status.The numbered order gives the agent a useful sequence. The conditions and expected results also make the behavior easier to test.
Write instructions that you can test
Use concrete verbs such as “ask,” “look up,” “state,” and “do not guess.” Avoid vague phrases such as “be helpful,” “handle the issue,” or “use good judgment.” A testable instruction describes an observable result.
| Weak instruction | Testable instruction |
|---|---|
| Help with the order | Ask for the order number and retrieve its current status |
| Avoid mistakes | Do not provide a status until the lookup returns a result |
Test both the normal path and boundary cases. Try a request with an order number, one without an order number, an invalid number, and a request that belongs to another topic.
Reference actions and their conditions
Name the action and state exactly when it runs. Use the action assigned to the topic.
If the customer asks for the status of an existing order, use the Get Order Status action with the order number.
If the action returns no order, explain that the order was not found and ask the customer to verify the number.
If the customer asks to return an item, explain that this topic does not process returns and offer a transfer.This separates the customer’s intent, the required input, the action, and the fallback behavior. Keep actions responsible for retrieval and business rules. Keep instructions responsible for sequencing and communication.
Exercise
What is missing from “Use Get Order Status for order questions”?
Show answer
It needs a condition, the required order number, and behavior for a missing or unsuccessful lookup.