Prerequisites
Create Agent Actions
Use OpenAPI Extensions to Create Agent Actions
Limits
Create Actions from Named Queries
Create Custom Actions Using Apex InvocableMethod
Provide Global Copy to Action Responses
Cite Agent Responses with Apex
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.
Salesforce’s OpenAPI Specification (OAS) generation feature uses the Agentforce Vibes Extension. Agentforce Vibes Extension is an AI-powered extension built using CodeGen and xGen-Code, secure, custom AI models from Salesforce. This feature generates OpenAPI v3 Specifications for Apex classes that define controller methods annotated with @AuraEnabled. You can then deploy the generated OAS to add it to the Salesforce API catalog. The API then becomes available to create custom actions and can be used by Agentforce agents to enhance their capabilities.