Sub topic 2
Opening the preview and starting a conversation
The conversation preview lets you talk to your agent inside Agentforce Builder before anyone else can. This chapter covers how to open it, how to run a first conversation, and what to look at while you run it.
This chapter assumes you have:
- Basic familiarity with Salesforce and the Setup menu.
- A Salesforce org with Agentforce enabled.
- An agent with at least one topic and one action.
Button names and panel layout change between releases. If a label here differs from your org, look for the control with the same purpose.
Open the agent in Builder
- In Setup, enter "Agents" in Quick Find and open the Agentforce Agents page.
- Find your agent in the list and open it in Agentforce Builder.
- Look for the conversation preview panel. It usually sits beside the agent's configuration (topics, instructions, and actions).
The configuration and the preview are on the same screen. This is why Builder works well for iteration: you can read an instruction, test it, and edit it without switching tools.
Pick a mode before you start
The preview offers a simulated mode and a live mode. The next chapter compares them in detail. For now, remember one rule: a simulated conversation does not run your real actions, and a live conversation does.
If your actions create or change records, such as a return or an address update, check which mode is selected before you send the first message. A live test can change real data in the org you are connected to.
Send your first utterance
An utterance is one message a user types to the agent. Start with the simplest request your agent is built to handle. For an order-support agent, that could be:
Where is my order 00012345?Type it into the message box in the preview panel and send it. Then check the following, in order:
- The reply. Does it answer the question in the tone and format you expect?
- The topic. Which topic did the agent pick? For this utterance, you would expect Order Status.
- The action. Which action ran, and what input did it receive? You would expect Look Up Order with the order number 00012345.
- The reasoning trace. Does the explanation of the agent's steps match what you intended?
The reply alone is not enough. An agent can give a plausible answer through the wrong topic, or invent details when an action fails. Checking the topic and action each time catches these cases early.
Follow up in the same conversation
The preview keeps the conversation going, so you can send follow-up messages as a real user would. Try a second message that depends on the first:
Can you also tell me when it will arrive?This tests whether the agent remembers the order number from the earlier turn. If it asks for the number again, the agent did not carry the context forward. Note it, because it may point to a gap in your instructions or in how an action's inputs are filled.
Keep each conversation focused on one scenario. A long, wandering session makes it hard to tell which earlier message caused a later problem.
Record what you see
Write down results as you go. A small template keeps your notes comparable from test to test:
Test: "Where is my order 00012345?"
Expected topic: Order Status
Expected action: Look Up Order (input: order number 00012345)
Expected reply: States the order's current status
Result: pass or fail
Notes: If it fails, record the topic and action shown in the reasoning trace.Decide what you expect before you send the message. If you only look at the result afterward, it is easy to accept a reply that merely sounds reasonable.
Common first-session errors
| Symptom | Likely cause | What to check |
|---|---|---|
| No reply, or an error message | The agent has no active configuration to run, or an action failed | Whether the agent has saved changes, and whether the action works outside the agent |
| Agent says it cannot help with an in-scope request | The topic's description or scope does not match the wording you used | The topic description and scope |
| Right topic, wrong data | The action received the wrong input | The action input shown for that turn |
| Reply looks correct in simulated mode but fails live | The simulated action returned made-up data | Rerun the same utterance in live mode |
The last row matters most for a first session. A simulated pass tells you about the topic and instruction flow. It does not prove your action works.
Exercise
You send "Where is my order 00012345?" in the preview, and the agent gives a clear, correct-sounding reply. Name two things you should still check before marking the test as passed, and say why.
Show answer
Check which topic the agent selected (it should be Order Status) and which action ran with what input (Look Up Order with 00012345). The reply can sound right even when the agent used the wrong topic or invented details. If you were in simulated mode, you should also rerun the utterance in live mode, because simulated actions do not run your real logic.