Appearance
Exercise 2: Extend Agents with Topics and Actions
In this exercise, you’ll create core topics for your agent and extend it with an action. You’ll also test routing and action execution using Preview/Simulate and interaction details.
Step 1: Add topics to the agent
Next we're using the Authoring Agent to add new topics.
Open the Authoring Agent by toggling the right panel.

Enter the following prompt:
txtAdd the following topics. Add applicable reasoning instructions based on the provided descriptions. Do NOT use the literal descriptions that I provide here. Do NOT add any actions. Order Tracking & Delivery Status This topic focuses on real-time visibility into a customer’s orders. It retrieves current or recent orders, checks delivery ETA through Apex, displays driver details, and manages delivery instruction updates—everything customers need to know about “Where is my order?” Storefront Search This topic helps users find storefronts (restaurants/stores) by name and view basic storefront information. It should guide the agent to ask clarifying questions when multiple storefronts match and to confirm the correct storefront before proceeding. Order Issues & Refunds This topic resolves problems with orders, such as missing items, incorrect items, cold food, late deliveries, or orders that never arrived. It also handles support cases related to those issues—including creating a case, checking whether a case already exists, and providing case status/follow-up. It determines refund eligibility, issues refunds or credits, and explains outcomes clearly and empathetically to customers.Confirm the prompt by pressing Enter on your keyboard.
Review the agent response, and confirm the addition of the new topics by clicking Accept All.
Click Save to save the changes.
Click Topic Selector in the explorer. Review that the new topics are not added yet.
TIP
The Authoring Agent may have already added the topics to the Topic Selector, if so you can skip the following step.
Enter the following prompt into the Authoring Agent dialog.
txtAdd the new topics as transitions to the topic selector.Review the changes, and confirm by clicking Accept Change. This may happen a few times.
Click Save to save the changes.
Step 2: Create an Apex-based action (Storefront search)
Next, you’ll create a topic with an Apex-based action so the agent can search storefront records by name.
In the Explorer, Select the newly created Storefront Search Topic
Select Create new topic.

Replace the existing instructions with
Lookup store names based on the users query.Click on the arrow besides Select action, and select Create an action.

Enter Store Search as action name and click Create and Open.
Enter the following information:
Field Value Agent Action Label Store SearchAgent Action API Name Store_SearchDescription Retrieves store information based on a user query.Reference Action Type ApexReference Action Get Storefronts by NameInputs - Storefront Name Select checkbox Require Input to execute actionOutputs - Storefronts Select checkbox Show in conversationClick Save.
Open the Storefront Search topic again from the the explorer view.
Under Actions Available For Reasoning Click on Select action, and select Store Search.

TIP
Per default the action inputs are defined in a way that the LLM selects which value it should pass to the action.
Click Save.
Step 3: Assign Service Agent User permissions
Before testing, make sure your agent’s running user has the right permissions to run actions and access data.
Click the back arrow to leave Agentforce Builder.
Open the Setup Menu and click Setup.
In Setup Quick Find, search for Permission Sets and open Permission Sets.
Open the Agentforce Action Access permission set.
Click Manage Assignments (or Manage User Assignments).
Select the EinsteinServiceAgent User with the username that begins with
pronto_service_agent@(the agent running user created/assigned when you created the agent).
CLick Next.
Click Assign.
Step 4: Test routing and actions
In the App Launcher, open Agentforce Studio.
Open the Pronto Service Agent.
Click Preview.
Enter the following prompt:
txtWhere is my order?Press Enter on your keyboard.
Click on the entry next to Transition to Topic in the Interaction Details section on the right, and explore the reasoning details.

Click on the arrow besides Live Test Mode and select Simulate.
Confirm the switch by clicking Switch.
Enter the following prompt:
txtProvide me information about the fusion bites storePress Enter on your keyboard.
Click on Action: Store Search in the Interaction Details area and review the action inputs and outputs.

Summary
You have added new topics, wired them into the Topic Selector for routing, assigned the Agentforce Action Access permission set to the Service Agent User, and extended the agent with an Apex-based storefront search action.