Sub topic 9
Deciding What Belongs at the Agent Level and What Belongs in a Topic
This chapter assumes you can open Agentforce Builder, you know what a topic and an action are, and you have written a classification description and a few topic instructions. Here you will learn where each kind of guidance should live: in the agent's own instructions or in a single topic.
Two places to put guidance
An Agentforce agent has guidance at two levels.
- Agent-level guidance applies to every conversation. It covers things like the agent's role, its tone, and rules that never change.
- Topic-level instructions apply only after the agent has chosen that topic. They describe how to handle one kind of request.
The agent reads agent-level guidance in every turn. It reads a topic's instructions only when that topic is active. This difference decides where a rule should go.
A simple test for placement
Ask one question about each rule: "Would this rule still be correct in every topic this agent has?"
- If yes, it belongs at the agent level.
- If it is true only for one kind of request, it belongs in that topic.
- If it must hold for exactly one step of one process, it may belong in an action or a Flow (the next chapter covers this).
| Rule | Where it belongs | Why |
|---|---|---|
| Speak in a friendly, concise tone. | Agent level | Applies to every reply. |
| Never share another customer's information. | Agent level | A safety rule that no topic should override. |
| Ask for the order number before looking up an order. | Order Status topic | Only meaningful for order lookups. |
| Offer a human transfer when a customer asks to return an item. | Returns or Order Status topic | Depends on the request type. |
What goes wrong when you misplace a rule
Putting a topic-specific rule at the agent level causes two problems. The rule is read in unrelated conversations, where it can distract the agent or contradict other guidance. It also makes the agent-level text long, so the important rules are harder to find and maintain.
Putting a general rule in only one topic causes the opposite problem. The rule is followed in that topic and silently ignored in the others. If you copy it into every topic, you must remember to update every copy when it changes, and the copies drift apart.
Here is an example of a conflict created by misplacement:
Agent level:
Always answer in one sentence.
Order Status topic:
Explain the shipping carrier, the tracking number, and the delivery date, with a short note about any delay.The two rules disagree. The agent cannot satisfy both, so its behavior becomes unpredictable. The fix is to decide which rule is actually general. If brevity matters everywhere, change the topic instruction to "Give the status and delivery date in one or two sentences." If some topics need longer answers, change the agent-level rule to "Keep answers short unless a topic says otherwise."
A worked example
Suppose your agent has an Order Status topic and a Returns topic. You draft one block of agent-level text:
You are a support agent for Northwind Outfitters. Be friendly and brief.
Ask for the order number when a customer asks about an order.
Never reveal personal data about any customer other than the one you are talking to.
Offer to transfer to a human agent when you cannot help.Check each line with the placement test.
- "You are a support agent for Northwind Outfitters. Be friendly and brief." This is true in every topic. Keep it at the agent level.
- "Ask for the order number when a customer asks about an order." This applies to order requests only. Move it into the Order Status topic as its first step.
- "Never reveal personal data about any customer other than the one you are talking to." This is a safety rule that every topic must respect. Keep it at the agent level.
- "Offer to transfer to a human agent when you cannot help." This holds across topics. Keep it at the agent level, and add topic-specific transfer wording only where a topic needs it.
The result is a shorter agent-level block, and an Order Status topic that begins with the order-number step.
Checking your placement
After you move rules, test in the Builder preview. Send an order question and a returns question, and confirm that the tone and safety rules show up in both while the order-number step appears only in the order conversation. If a rule appears in the wrong place, move it and test again.
Exercise
You write the rule "Always confirm the customer's email address before sharing any account detail." Your agent has Order Status, Returns, and Billing topics, and all three share account details. Where should the rule go, and why?
Show answer
Put it at the agent level. It is correct in every topic, so one copy there is applied everywhere and you only have to update it once. Copying it into three topics risks the copies drifting apart, and leaving it in only one topic would let the other two skip the check.
Exercise
The agent-level text says "Always answer in one sentence." The Returns topic says "List the return steps in order." What problem does this create, and how can you fix it?
Show answer
The two rules conflict, because a list of steps cannot fit in one sentence, so the agent's behavior is unpredictable. Change the agent-level rule to "Keep answers short unless a topic says otherwise," or reword it so it does not apply to step-by-step instructions.