Subagents, Standard and Custom Agent Actions
Agentforce Specialist · Lesson 8 of 14 · 1:07:33
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Salesforce Agentforce Specialist exam. In this lesson: standard and custom subagents (formerly topics), configuring a subagent, the standard agent actions, custom actions built on flows, Apex, prompt templates, and APIs, deterministic and prompt-based actions, and atomic and composite design. Includes three original practice questions, with Sunmeadow Solar, a fictional solar installer, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of December 2026.
Ready-made or built
Sunmeadow's portal agent has a list of jobs: verify customers, answer warranty questions, check the status of an installation, book visits, and hand off to a person. Some of these come ready-made with Agentforce, and others must be built. This lesson shows how to tell them apart, and how to configure each one.
Standard and custom subagents
Subagents, which the exam guide still calls topics, define what the agent is for, and give it the context to do it. Standard subagents come ready to customize, such as customer verification, or escalation to a person. Custom subagents cover your own areas of work, such as the status of a solar installation. Build and test them in a sandbox, one prototype at a time.
Configuring a subagent
A subagent has a name, a description, instructions, and actions. A clear description helps the right messages reach it, and keeps it apart from the other subagents. The instructions say how to behave in that area, such as what to check first. And give it only the actions that its area needs, so the model has fewer wrong choices.
Standard actions
Standard actions are included by default. Examples include Answer Questions with Knowledge, Get Record Details, Query Records, Summarize Record, Identify Record by Name, Draft or Revise Email, and Send Email with Verification Code. Some others depend on a particular cloud or license. You can customize a standard action, including the flow or prompt template behind it.
When standard is enough
Before building anything, check whether a standard action already does the job. A summary of a record, a lookup of record details, or a search of knowledge articles are all covered. Each action that runs also consumes requests, so fewer, well chosen actions keep the agent lean.
Custom actions
When no standard action fits, you create a custom action on top of a reference action. The reference can be an invocable Apex class, an autolaunched flow, a prompt template, an external service, or a MuleSoft API. You give the action a name and a description, which tell the model when to use it. And its inputs and outputs get descriptions too, so the model passes the right values.
Deterministic or prompt-based
An action can be deterministic, such as a flow or Apex, for business rules and results that never vary. It can be prompt based, with a prompt template, to write, summarize, analyze sentiment, or ground an answer in data. It can also combine both, such as a cancellation flow that calls a template to summarize the reason. Choose by asking whether the result must be exact, or written.
Atomic or composite
An atomic action does one small task, which the agent can reuse and combine freely. A composite action runs several steps, in an order that you control. Every action has at least one input and at least one output. And the agent gathers the information an action needs before it runs it, by asking the user if necessary.
Recap
Let's recap. Subagents define what the agent does, with standard ones to customize and custom ones for your own areas. Each subagent needs a clear description, instructions, and only the actions its area needs. Standard actions are included by default, so check them before building. Custom actions sit on Apex, autolaunched flows, prompt templates, external services, or MuleSoft APIs. Choose deterministic or prompt based, atomic or composite, from what the result must be.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
When a customer asks for a person, the agent must hand the conversation to a human. What should the admin start from?
- A custom subagent built from scratch
- The standard escalation subagent
- A prompt template that asks them to call
- A new custom Apex action
Show the answer
The standard escalation subagent
The standard escalation subagent covers this case, and only needs to be customized. “A custom subagent built from scratch” is wrong, because building a custom subagent from scratch is slower, and repeats what already exists. “A prompt template that asks them to call” is wrong, since a message that asks the customer to call does not hand the conversation over. And “A new custom Apex action” is wrong, because new Apex code is not needed for a case that a standard subagent covers.
A technician asks the employee agent for a short summary of an installation record. Which action fits?
- A new custom Apex action
- Answer Questions with Knowledge
- Draft or Revise Email
- Summarize Record
Show the answer
Summarize Record
Summarize Record is a standard action that does exactly this, with no build. “A new custom Apex action” is wrong, because a custom Apex action would rebuild what a standard action already does. “Answer Questions with Knowledge” is wrong, since Answer Questions with Knowledge searches knowledge content, not the fields of one record. And “Draft or Revise Email” is wrong, because Draft or Revise Email writes an email, not a summary for the technician.
A booking must check availability, reserve the slot, and create the work order, always in that order. How should the admin design it?
- Three atomic actions the model combines
- A prompt template action that lists the steps
- One composite action, such as an autolaunched flow
- A screen flow that guides the customer
Show the answer
One composite action, such as an autolaunched flow
One composite action, such as an autolaunched flow, runs the three steps in the order that the business requires. “Three atomic actions the model combines” is wrong, because the model could combine three atomic actions in a different order. “A prompt template action that lists the steps” is wrong, since a prompt template writes text, and cannot reserve a slot or create a record. And “A screen flow that guides the customer” is wrong, because the reference for a flow action is an autolaunched flow, not a screen flow.