Salesforce Agentforce Apex Agent Action

@InvocableMethod annotation helps to invoke apex class and method from the Salesforce Agentforce Apex Action. @InvocableVariable annotation can be used to pass multiple parameters from the Salesforce Agent Action to the Apex Class. Sample Apex Class: Agentforce Apex Agent Action Configuration: Apex Test class: