02Chapter 2: Choosing an action target: Flow, Apex, or prompt templateThis chapter assumes you know the basics of Setup and Agentforce Builder, and that you can read a Flow variable or an Apex class. It helps you pick the kind of logic an action runs. The choice changes how you define inputs and outputs in later chapters.3 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 Apex or Flow variables. Here you will learn which text the agent sees for an action, and how to write it so the agent picks the right action and fills the right values.3 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 Flow variables or Apex classes. You will learn how the agent decides what value goes into each input, and how to write inputs so it gets that value right.2 min read
05Chapter 5: Required inputs and asking the userThis chapter assumes you know what an Agentforce agent, topic, and action are. It also assumes you can read Apex or Flow variables and have used Agentforce Builder. Here you will learn how the "required" setting on an input changes the agent's behavior, and how to write descriptions that make the ag3 min read
06Chapter 6: Choosing data types and structureThis chapter assumes you know what an Agentforce action is and can read basic Apex or Flow variable definitions. It covers how the data type of each input and output affects how reliably the agent fills in values and reads results.3 min read
07Chapter 7: Designing outputs the agent can explainThis chapter assumes you can read Apex or Flow, know what an Agentforce topic and action are, and have already written input descriptions for an action. Here you design the other half: what the action returns.3 min read
08Chapter 8: Controlling what the agent and user seeThis chapter assumes you can create an action in Agentforce Builder and know what an action output is. You should also know that an agent uses a large language model to write its replies.3 min read
09Chapter 9: Implementing an action with ApexThis chapter shows how to turn an Apex class into an action the agent can call. It assumes you know basic Apex and have seen what an Agentforce topic and action are. The agent reads the labels and descriptions you write, so the metadata matters as much as the logic.3 min read
10Chapter 10: Implementing an action with FlowThis chapter assumes you can build an autolaunched flow, know what a Flow variable is, and have seen Agentforce Builder. It shows how a flow's variables become the inputs and outputs the agent reads.3 min read
11Chapter 11: Returning errors and empty results clearlyThis chapter assumes you can write an Apex invocable method or a Flow, and that you know what an Agentforce topic and action are. It also assumes you have read the earlier chapters on output design. The agent only knows what your action returns. If a lookup finds nothing or fails, the agent needs a 3 min read
12Chapter 12: Aligning actions with topic instructionsThis chapter assumes you can write action names, labels, and descriptions, and that you have set required inputs and output visibility on an action. It also assumes you know that a topic groups related actions under natural-language instructions.3 min read
13Chapter 13: Testing and refining your action definitionsThis chapter assumes you have built an Agentforce action with a Flow or an Apex invocable method, that you know what a topic is, and that you can open Agentforce Builder. It covers how to test an action definition and how to change it based on what you see.3 min read