Sub topic 2
Finding Your Way Around Agentforce Builder
This chapter assumes you know basic Salesforce concepts (objects, fields, records) and can move around Setup. You should also have a general idea of what a large language model does. You don't need to have built an agent before. By the end, you will know what the main areas of Agentforce Builder are for, where topics, instructions, and actions live, and how to run a test.
Salesforce changes the Builder interface between releases. Labels, panel positions, and menu names may differ slightly from what is described here. The structure stays the same: a place to define the agent's parts, a place to test them, and a place to see what happened.
What Agentforce Builder is
Agentforce Builder is the workspace where you configure an agent and test it. An agent is made of three kinds of parts:
- Topics group a job the agent can do, such as order status.
- Instructions tell the agent how to reason inside a topic.
- Actions let the agent read or change data, or run logic.
Builder lets you create and edit these parts in one place. It also lets you run conversations against your draft, so you can check the effect of a change right away. You don't need to leave the tool to edit a topic, add an action, and test the result.
How to open it
You open Builder from Setup. The usual path is to search for Agentforce Agents in Quick Find, select your agent, and open it in Builder. Your user needs permission to manage agents. If you can't see the agent list or the open option, ask your administrator to check your permission sets.
The main areas of the workspace
Builder is organized around three activities: defining, testing, and inspecting. The table maps each activity to the part of the screen where it usually happens.
| Activity | Typical area | What you do there |
|---|---|---|
| Define | Agent configuration and topic panels | Set the agent's name and role. Create topics. Write classification descriptions, scope, and instructions. Add actions. |
| Test | Conversation preview panel | Send messages as a customer would. Read the agent's replies. |
| Inspect | Reasoning or trace view | See which topic the agent chose and which actions it ran, with their inputs and outputs. |
The configuration area
The configuration area holds the settings that apply to the whole agent, such as its name, its description, and its general role. Topic settings are separate. Each topic has its own name, classification description, scope, instructions, and list of actions.
Keep the two levels apart in your head. Agent-level settings describe who the agent is. Topic-level settings describe what it does for one kind of request. A common early mistake is to put topic-specific rules in the agent-level description, where they affect every request.
The topics list
The topics list shows every topic assigned to the agent. Selecting a topic opens its details. Each topic detail view contains these fields:
- Name, a short label for the job.
- Classification description, the text the agent reads to decide whether a request belongs to this topic.
- Scope, which states what the agent should and should not do inside the topic.
- Instructions, the ordered guidance for handling a request.
- Actions, the list of things the agent can invoke from this topic.
You will write each of these in later chapters. For now, learn where they are, because every test-and-fix cycle moves between them.
The actions list
Actions are attached to a topic. When you add an action, you choose from the available types (Flow, Apex, prompt template, or standard action). Each action has a name, a description, and defined inputs and outputs. The agent uses the name and description to decide when to call the action. It uses the input and output descriptions to know what to supply and how to read the result.
An action is only available to a topic once you add it to that topic. If an action exists in your org but isn't in the topic's list, the agent can't use it in that topic.
How the areas connect during a request
When you send a message in the preview, the agent goes through a sequence. Knowing this sequence tells you which area to open when something goes wrong.
Each box points to a place you can edit:
- If the wrong topic is chosen, open the topic's name and classification description.
- If the right topic is chosen but the reply is off, open the instructions and scope.
- If an action is missing, wrong, or given bad inputs, open the action's description and its input and output fields.
Testing in the preview panel
The preview panel is a chat window. You type a message as a customer would, and the agent replies using your current draft. This is a test of your configuration, so use it often and in small steps.
A first test session
Suppose you have a topic named Order Status with an action called Get Order Status. Try these messages in order:
Where is my order?The agent should ask for an order number.It's 00000123.The agent should call the action and report the status.I want to return my order.This is outside the topic. The agent should not answer it from Order Status.
Each message checks a different part. Message 1 checks the instructions (ask for a number first). Message 2 checks the action's inputs and outputs. Message 3 checks the classification description and scope.
Reading the reasoning view
Next to the replies, Builder can show how the agent reached them. Look for these items:
- The topic that was selected.
- The actions that were called, in order.
- The values passed into each action.
- The values returned.
This view is your main debugging tool. A reply can look correct by luck. The reasoning view shows whether the right topic and action were used for the right reasons. Check it even when the reply seems fine, especially while the agent is new.
Preview uses real data
Depending on how the preview is set up, actions can run against real records in your org. A Flow or Apex action that updates a record will update it during a test. Use a sandbox or a scratch org for testing, and use test records. Do not experiment against production data.
Draft, save, and activate
Builder separates the version you are editing from the version customers use. The details depend on your release, but the pattern is the same:
- You edit a draft. Changes affect only your test conversations.
- You save and, when ready, activate a version to make it live.
- Activating a version replaces what customers see, so run your tests first.
If Builder shows that changes are unsaved, or that a version is inactive, treat that as the first explanation when a test doesn't match what you just wrote. Saving the topic edit and refreshing the preview session often resolves a "my change did nothing" problem. Starting a new conversation matters too. An old conversation carries earlier messages that can influence the next reply.
A working routine
A reliable habit keeps your changes small and traceable.
- Pick one behavior to check, such as "asks for the order number."
- Send a test message that should trigger it.
- Open the reasoning view and confirm the topic and action.
- Change one thing: a classification description, one instruction, or one action field.
- Start a new conversation and send the same message again.
- Record whether the behavior improved.
Changing one thing at a time matters because the parts interact. If you edit a classification description and the instructions together, you can't tell which edit changed the result.
Common errors when starting out
| Symptom | Likely cause | Where to look |
|---|---|---|
| The agent never enters your topic | The classification description is vague or overlaps with another topic | Topic name and classification description |
| The agent enters the right topic but ignores a step | The instruction is unclear or too long | Topic instructions |
| An action never runs | The action isn't added to the topic, or its description doesn't say when to use it | Topic actions list and action description |
| An action runs with an empty or wrong input | The input has no description, or the instructions don't say where the value comes from | Action input fields and instructions |
| A test shows old behavior | The draft is unsaved or the conversation is old | Save state and a new conversation |
| The agent answers something it should refuse | The scope is missing or too broad | Topic scope |
Summary of where things live
- Agent-level settings define who the agent is.
- Each topic holds a name, classification description, scope, instructions, and actions.
- Each action holds a description and described inputs and outputs.
- The preview panel runs your draft as a conversation.
- The reasoning view shows the topic chosen and the actions called.
Exercise
In a test, the agent chooses the Order Status topic correctly and calls Get Order Status, but it sends an empty order number to the action. Which two areas of Builder should you check first, and why?
Show answer
Check the action's input field (its label and description) to confirm it explains what value to supply, and check the topic instructions to confirm they say to ask the customer for the order number before calling the action. The topic was chosen correctly, so the classification description isn't the problem. The reasoning view will show the value passed into the action and confirm the fix.
Exercise
You edit a topic's classification description, then send the same message in the same long conversation you were already using, and the behavior looks unchanged. Name two possible reasons and one step to take.
Show answer
The change may not be saved, and the old conversation may still be influencing the reply with earlier messages. Save the edit, start a new conversation, and send the message again. Then check the reasoning view to see which topic was selected.
Exercise
Why should you test in a sandbox with test records instead of in production?
Show answer
Actions such as Flow or Apex that create or update records run for real during preview tests, so a test can change live data. A sandbox with test records limits the effect of mistakes.