Customize your agent so that it fits your company’s use cases. Learn how to use Agentforce Builder and agent assets, including subagents, actions, filters, and variables, so that you can customize out-of-the-box solutions or create your own.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Performance, Unlimited, and Developer Editions. Required add-on licenses vary by agent type. |
Note Beginning in April 2026, agent topics are now called subagents. There are no
changes to functionality. During this transition, you may see a mix of the new and previous
terms in our documentation.
- Agent Script
Get to know the language for building agents in Agentforce Builder. Whether you’re working in Canvas view, Script view, or chatting with Agentforce to build and customize your agent, you’re writing Agent Script. Use Agent Script to build predictable, context-aware agent workflows that don’t rely solely on interpretation by an LLM. - Building Agents in Canvas View
Get to know the features of Agentforce Builder’s Canvas view that help you build powerful and reliable agents with Agent Script. - Build, Extend, and Troubleshoot with Agent Optimizer in Agentforce Builder (Beta)
Focus on what you want your agent to do, not how to configure or fix it. Agent Optimizer is a built-in coding agent that extends, refines, and troubleshoots your agents directly in Agentforce Builder, at no additional cost. Explore use cases and considerations for working with Optimizer. - Choosing an AI Model for a Subagent
Choose the right AI model for each part of your agent to balance response speed, accuracy, and reasoning depth. - Subagents
A subagent is a particular job an agent can do. Collectively, the subagents assigned to your agent define the capabilities your agent can handle. Learn about subagents in Agentforce Builder and the legacy builder. - Agent Actions
Actions are how agents get things done. Agents include a library of actions, which are the tools an agent can use to do its job. For example, if a user asks an agent for help with writing an email, the agent first selects a subagent, then it launches an action that drafts and revises the email and grounds it in relevant Salesforce data. - Variables
With variables, your agent can store and reuse values that help it with reasoning and interactions. Variables work differently in Agentforce Builder and the legacy builder. - Set Up File Uploads for an Agent
Add file upload support to your agent, so your users can share screenshots, receipts, and PDFs. Your agent can interpret individual files or a group of files, answer questions based on one or more files, and add files to a Salesforce record. - Create a Filter to Control Access to Subagents and Actions in the Legacy Builder
Create filters for subagents and actions to make sure that your agent can use them in a conversation only when certain conditions are met. You can limit access based on any variable you specify. For agents on customer channels, we recommend using filters to require authentication for subagents and actions that perform tasks for a user. - An Agentforce Guide to Context Engineering
Context engineering is the art and science of giving your AI agent the right information, tools, and instructions to achieve its goals.