Build and Enhance Agentforce Actions

Actions are the building blocks that enable your Agentforce agents to perform tasks and interact with data. You can create custom actions to extend your agent's capabilities and enhance the user experience with rich interfaces and detailed responses.

Use these developer tools and techniques to build and enhance actions for your Agentforce agents:

  • Create Actions with Apex REST Agent Actions (Beta) - Use generative AI to quickly create an OpenAPI document for your Apex REST class and activate the API for use in Agentforce. Deploy the class, the OpenAPI document, and associated metadata to your org's API catalog. Then use Agentforce Builder to create an agent action based on the methods in the class.
  • Create Actions from Apex Controller Methods (Beta) - Use generative AI to quickly create an OpenAPI document for your Apex controller methods and activate the API for use in Agentforce. Deploy the class, the OpenAPI document, and associated metadata to your org’s API catalog. Then create an agent action in Agentforce Builder in your org that’s based on methods in the class.
  • Create Actions from Named Queries (Beta) - Create custom SOQL queries (named queries) in Setup, and then expose them as agent actions in Agent Creator.
  • Create Custom Actions Using Apex Invocable Method - Create custom actions for your agents using Apex classes with the @InvocableMethod annotation. This approach allows you to extend agent capabilities by integrating your custom Apex logic directly into Agentforce.