01Chapter 1: How an agent uses actionsAn Agentforce agent does not run your Flow or Apex code on its own initiative. It reads text, decides whether an action fits the request, builds the input values, and runs the action. It then reads what comes back and writes a reply. Each step depends on what you defined. This chapter describes that7 min read
02Chapter 2: Choosing an action target: Flow, Apex, or prompt templateAn action target is the piece of Salesforce logic that runs when the agent calls an action. This chapter helps you choose between a Flow, an Apex invocable method, and a prompt template. It also shows how that choice changes the inputs and outputs the agent sees.7 min read
03Chapter 3: Names, labels, and descriptions the agent readsThis chapter assumes you know what an Agentforce agent, topic, and action are. It also assumes you can read basic Apex or build a Flow with input and output variables. Here we look at the text you attach to an action and how the agent's language model uses it.6 min read
04Chapter 4: Designing inputs the agent can fillThis chapter assumes you know what an Agentforce agent, topic, and action are. It also assumes you can read basic Apex or build a Flow with input variables. An input is a value the agent must supply when it calls an action. The agent does not read your code. It reads the label, the description, and 6 min read
05Chapter 5: Required inputs and asking the userThis chapter covers how to mark action inputs as required, how that setting changes the agent's behavior, and how to decide which values the agent should ask the user for. It assumes you know what an Agentforce agent, topic, and action are. It also assumes you can work with Flow variables or Apex cl6 min read
06Chapter 6: Choosing data types and structureThis chapter covers how the type and shape of an action's inputs and outputs affect whether the agent can fill them and explain them. It assumes you can read basic Apex or build a Flow with variables. It also assumes you know what an Agentforce topic and action are, and that you've read the earlier 6 min read
07Chapter 7: Designing outputs the agent can explainThis chapter assumes you have read the earlier chapters on action metadata and input design. It also assumes you can read basic Apex or build Flow variables. You should know that an Agentforce agent uses a large language model (LLM) to decide what to say after an action runs.7 min read
08Chapter 8: Controlling what the agent and user seeThis chapter assumes you can already define an action with inputs and outputs in Agentforce Builder. You should also know the difference between an Apex invocable method and a Flow. Here you will learn how each output of an action reaches the agent, the user, or both, and how to choose the right des6 min read
09Chapter 9: Implementing an action with ApexYou should know what an Agentforce agent, topic, and action are, and you should be comfortable writing Apex classes and tests. The earlier chapters covered how the agent reads names, labels, and descriptions. This chapter applies that to one concrete target: an Apex class with an invocable method.5 min read
10Chapter 10: Implementing an action with FlowThis chapter assumes you can build an autolaunched flow, you know how Flow variables work, and you have added an action to a topic in Agentforce Builder. It builds the Flow version of the order-status action from the Apex example in the previous chapter. The two versions should behave the same from 7 min read
11Chapter 11: Returning errors and empty results clearlyThis chapter covers what an action should return when something goes wrong or when nothing matches. It assumes you can read Apex and build a basic Flow, and that you know the agent reads the labels and descriptions you write. It builds on the earlier chapters on output design and on Apex and Flow im7 min read
12Chapter 12: Aligning actions with topic instructionsThis chapter assumes you have read the earlier chapters on action metadata, required inputs, output design, output visibility, and error reporting. It also assumes you can open a topic in Agentforce Builder and edit its instructions. The chapter covers how the topic's instructions and the action def6 min read
13Chapter 13: Testing and refining your action definitionsThis chapter assumes you can already build an action in Agentforce Builder, that you know the difference between a topic and an action, and that you can read Apex or Flow variables. You have written the names, labels, descriptions, inputs, and outputs. Now you check whether the agent reads them the 6 min read