Sub topic 2
Finding Your Way Around Agentforce Builder
Agentforce Builder is the workspace where you configure an agent and test it. This chapter assumes you know basic Salesforce objects, fields, and records, and that you can move around Setup. It also assumes you have a general idea of what a large language model does. You do not need to write Flow or Apex yet.
Why the workspace matters
An agent handles a request in three parts. Topics group a job, instructions guide the agent's reasoning, and actions let it read or change data. Builder is where you set up all three and see how they behave together. Knowing where each part lives saves time when you start to refine an agent.
Menu names and layouts change between Salesforce releases. Treat the areas below as a map of the work, and expect small differences in your org.
The main areas
Builder is organized around the agent you are editing. You can think of it as three working areas.
| Area | What you do there | Why it matters |
|---|---|---|
| Agent configuration | Set the agent's name, description, and role | Gives the agent its overall purpose |
| Topics and actions | Create topics, write scope and instructions, and attach actions | Controls what the agent can do and how it decides |
| Test and preview | Send sample messages and read the agent's reasoning | Shows whether your setup works |
Agent configuration
This area describes the agent as a whole. It has the name, a description of its role, and the settings that apply to every conversation. Keep this description short. The detailed behavior belongs in topics, because each topic carries its own scope and instructions.
Topics and actions
This is where you spend most of your time. Each topic has a name, a classification description, a scope, and a list of instructions. Under each topic you add the actions the agent may use. An action belongs to a topic, so the agent can only use it after it has chosen that topic.
Test and preview
The test area is a chat panel next to your configuration. You type a message as a customer would. The agent replies, and you can inspect which topic it chose, which action it called, and what the action returned. Use it after every change.
The edit and test loop
The workspace is built for a short cycle: change one thing, test, and read the result.
Reading a test result
When a test goes wrong, work through the reasoning in order. The order matches how the agent works.
- Check the topic. Did the agent pick the topic you expected? If not, the problem is usually the topic's name, classification description, or scope.
- Check the instructions. Did the agent follow your steps? If not, the instructions may be vague or out of order.
- Check the action. Was the right action called, with the right inputs? If not, look at the action's description and its input and output labels.
Fixing the first mismatch first matters. A wrong topic makes every later step wrong, so changing instructions will not help until the topic is correct.
Common mistakes
- Changing several things at once. You cannot tell which change helped, so edit one item per test.
- Testing only the happy path. Also send a message that should be refused, such as a request for a refund in an order status topic.
- Putting detail in the agent description. Topic-level scope and instructions are what the agent reads when it handles a request.
- Skipping the action result. A correct topic can still give a wrong answer if the action returned unexpected data.
What comes next
The next chapters go through each part you saw here. First you will look at topics, then at instructions, and then at actions.
Exercise
In a test, a customer asks for a refund and the agent answers using the Order Status topic. Which part of the topic should you change first, and why?
Show answer
Change the Order Status topic's classification description and scope first, for example by stating that it does not handle returns or refunds. The agent chose the wrong topic, and a wrong topic makes every later step wrong, so instructions and actions cannot fix it.
Exercise
Name the three areas of Builder described in this chapter and say what you do in each.
Show answer
Agent configuration sets the agent's name, description, and role. Topics and actions is where you write each topic's scope and instructions and attach actions. Test and preview is where you send sample messages and inspect the topic and action the agent chose.