Sub topic 2
Adding and configuring a standard action in Agentforce Builder
Assume you know Salesforce objects, fields, records, Setup, Lightning Experience, and basic permission sets. Standard actions are prebuilt operations that an Agentforce agent can run for a user.
Add an action to a topic
In Agentforce Builder:
- Open the agent and select the topic that should handle the request.
- Choose Add Action.
- Select a standard action, such as Query Records or Summarize Record.
- Configure the action’s inputs and outputs.
- Add instructions that define when the action should run.
- Save and test the topic.
An input is information the action needs, such as an account name. An output is information it returns, such as an account record or a summary.
When the user names an account, first use Identify Record by Name.
Use the returned account for later actions.
Before updating a field, state the field and new value, then ask for confirmation.
If exactly one record is not found, ask the user to clarify.Choose the record action
Use the narrowest action that matches the task.
| Need | Suitable standard action |
|---|---|
| Find a record by a name | Identify Record by Name |
| Filter records with criteria | Query Records |
| Read one selected record | Get Record Details |
| Explain important record information | Summarize Record |
| Create or change data | Create Record or Update Record |
A typical flow first identifies a record, then reads or changes it.
Summarize, create, and update
Summarize Record is useful when a user asks for an overview instead of raw field values. Create Record starts a new record. Update Record changes selected fields on an existing record. Confirm the target record and proposed values before an update.
Use Knowledge for grounded answers
A Knowledge action searches published Salesforce Knowledge content and uses matching articles to answer questions. Configure the action for the relevant knowledge sources and access rules. Use it for policy or product questions, not for current record values.
Exercise
A user asks, “Change Acme’s phone number to 555-0100.” What should the topic do first?
Show answer
Identify exactly one Acme account, restate the phone number change, and request confirmation before using Update Record.