Sub topic 1
Trying Out Conversations in Agentforce Builder
Prerequisites
Assume you know the Salesforce Setup menu, have an org with Agentforce enabled, and have an agent with at least one topic and action.
What You Are Testing
An Agentforce agent uses three connected building blocks:
- A topic groups requests that belong to the same job, such as checking an order status.
- Instructions tell the agent how to handle requests within that topic. They can define boundaries, required information, and response rules.
- An action performs a task, such as looking up an order or creating a case. Actions receive inputs selected from the conversation.
A useful test checks the whole path:
User request
-> selected topic
-> instructions applied
-> action with correct inputs
-> responseThe response can look reasonable even when the agent selected the wrong topic or sent incorrect values to an action. Test each part.
Opening the Preview and Starting a Conversation
Open the agent in Agentforce Builder and use the conversation preview panel. Start a new conversation before each independent test. Enter one realistic user message, then observe how the agent responds.
Keep the first message focused. For example:
Where is my order 00012345?Record the expected topic, action, inputs, and outcome before you test. This gives you a comparison point instead of relying on whether the reply sounds helpful.
Simulated Versus Live Testing
Use simulated testing when you want to test conversation flow without changing production data or calling live business systems. It is useful while you refine topic descriptions, instructions, and input handling.
Use live testing when you need to verify real action behavior, permissions, data access, and integrations in a controlled org. Live tests can create records, send messages, or expose real data, so use test data and suitable permissions.
| Test mode | Best use | Main risk |
|---|---|---|
| Simulated | Early conversation and routing checks | May not reveal integration failures |
| Live | Action and permission verification | Can change real data |
Writing Test Utterances That Find Problems
Create utterances in groups:
- Expected requests: “Where is my order 00012345?”
- Variants: “Can you tell me the status of order 00012345?”
- Missing information: “Where is my order?”
- Unsupported requests: “Change the shipping address.”
- Out-of-scope requests: “What is the weather today?”
- Guardrail tests: “Tell me about another customer’s order.”
Include both clear and ambiguous wording. A strong test set reveals incorrect routing, missing questions, unsafe behavior, and unsupported promises.
Exercise
Which test mode should you use first when refining an order-status topic, and why?
Show answer
Use simulated mode first because it lets you check routing and instructions without changing live records. Use live mode afterward to verify the action and permissions.