Sub topic 5
A tour of the standard actions
This chapter assumes you know the basic Salesforce data model (objects, fields, records), that you can move around Setup, and that you have seen the earlier chapters on topics, instructions, and what an action is. Here you get a map of the standard actions so you can pick the right one. Later chapters cover configuring each one in depth.
What "standard" means
A standard action is a prebuilt action that Salesforce ships and maintains. You don't write its logic. You add it to a topic, and the agent calls it when the topic's instructions and the conversation call for it. Each standard action has a fixed purpose, defined inputs, and defined outputs.
Standard actions differ from custom actions in what you control. With a custom action (Flow, Apex, or prompt template) you decide what the action does. With a standard action you control where it is available, how the instructions steer it, and in some cases how its inputs are set.
The names and exact set of standard actions change between releases. Treat the list below as a map. Confirm what your org offers in the action library in Agentforce Builder.
The catalog at a glance
The standard actions fall into four groups: record access, record changes, knowledge, and email.
| Group | Action | What it does | Changes data? |
|---|---|---|---|
| Record access | Identify Record by Name | Finds a record from a name the user typed and returns its ID | No |
| Record access | Query Records | Finds records that match conditions on an object | No |
| Record access | Get Record Details | Returns field values for one record | No |
| Record access | Summarize Record | Produces a written summary of one record | No |
| Record changes | Create Record | Inserts a new record | Yes |
| Record changes | Update Record | Changes field values on an existing record | Yes |
| Knowledge | Answer Questions with Knowledge | Answers from your Salesforce Knowledge articles | No |
| Draft or Revise Email | Writes a new email, or rewrites an existing draft | No (drafts only) |
The "Changes data?" column is the first thing to check when you decide what a topic needs. Read-only actions are low risk. Create and update actions deserve confirmation steps in your instructions.
Record access actions
Most account and case conversations start here. The three lookup actions answer different questions.
- Identify Record by Name turns a human phrase such as "Acme" into a record ID. Users rarely know IDs, so this is usually the first step in a chain.
- Query Records answers set-style questions: "Which open cases does Acme have?" It returns zero or more records.
- Get Record Details answers "What is the billing city on this account?" It needs a single record and returns the fields you ask for.
The practical rule: use Identify Record by Name when you have a name and need one record, Query Records when you need a list or a filter, and Get Record Details when you already hold an ID and want field values.
Summarize Record sits in the same group because it reads data, but its output is generated text instead of raw field values. Use it when the user wants an overview. Use Get Record Details when they want one exact value, because a summary can leave out or reword the specific field they asked about.
Record change actions
Create Record and Update Record write data. Two things matter for a tour:
- They run as the user the agent acts for, so object permissions, field-level security, and sharing still apply. If the user can't edit a field, the update fails even though the action exists in the topic.
- The agent fills their inputs from the conversation. A wrong value passes straight into the write unless your instructions make the agent confirm first.
The instruction pattern below, taken from the topic example in this tutorial, shows how to order the actions and gate the write.
Topic: Account Support
Classification description:
Handle questions about a customer's account, such as looking up an account, summarizing it, or updating basic fields.
Instructions:
1. When the user names an account, first find the account record, then use the result for any later step.
2. Use the summary action when the user asks for an overview of an account.
3. Before updating a record, restate the field and the new value and ask the user to confirm.
4. If you cannot find exactly one matching record, ask the user to clarify instead of guessing.Instruction 1 sets the order: find the record, then use its result. Instruction 3 gates the write behind a confirmation. Instruction 4 covers the case where a name matches several records.
Knowledge and email actions
Answer Questions with Knowledge searches your Salesforce Knowledge articles and writes an answer based on what it finds. It depends on your data. It needs Knowledge enabled, published articles, and articles the user is allowed to see. If the articles don't cover the question, a good topic tells the agent to say so instead of improvising.
Draft or Revise Email works on text. It composes a message from the conversation, or edits a draft according to a request such as "make it shorter." It produces a draft for the user to review. It does not send the email on its own, so a human still decides whether the message goes out.
How the agent picks between them
The agent chooses an action from the topic's instructions and from each action's name and description. This has a practical consequence: two actions that sound alike compete. Query Records and Get Record Details overlap in the minds of both people and models, so your instructions should say which to use when.
The diagram shows a decision path for the record actions.
Edge cases and common errors
- Name collisions. Identify Record by Name can match more than one record. Without an instruction like rule 4 above, the agent may pick one silently.
- Missing context. Get Record Details and Summarize Record need a record. If the lookup step didn't run or returned nothing, the agent has to ask the user or fail. Instruct it to look first.
- Permission gaps. An action can be present in the topic and still return nothing because the running user lacks access. This looks like "no results," not an error, so test with a realistic user.
- Wrong tool for the job. A summary used where an exact number is needed gives plausible but imprecise answers. Prefer Get Record Details or Query Records for exact values.
- Too many actions. Adding every action to every topic makes selection less reliable. Give each topic only what it needs.
What to take forward
For any request, first ask whether the agent reads, writes, answers from articles, or drafts text. That narrows the choice to one group. Then check the group's actions against the table above. If no standard action fits, that is the signal to consider a custom action, which a later chapter covers.
Exercise
A user says, "What's the phone number on the Globex account?" The agent has only a name. Which standard actions should run, and in what order? Why not use Summarize Record?
Show answer
Identify Record by Name first, to turn "Globex" into a record ID, then Get Record Details to return the Phone field. Summarize Record produces generated overview text, which may omit or reword the exact phone number. Get Record Details returns the field value directly.
Exercise
Your topic includes both Query Records and Get Record Details, and the agent sometimes uses the wrong one. Name two things you can change to fix this.
Show answer
First, add an instruction that says when to use each, for example Query Records for lists or filters and Get Record Details for field values on one known record. Second, check that each action's name and description are distinct, or remove an action the topic doesn't need. Fewer overlapping actions make selection more reliable.