When Salesforce Automated Actions feature is enabled and configured, specific objects and fields become available or are populated.
AutomatedAction object: An AutomatedAction object is used when you use the Salesforce Automated Actions feature.
Use the following sample Apex code to find or check whether the Salesforce Automated Action feature is enabled or not using Salesforce Apex.
Sample Apex Code:
Map < String, Schema.SObjectType > globalDescription = Schema.getGlobalDescribe();
if ( globalDescription.containsKey( 'AutomatedAction' ) ) {
System.debug(
'Automated Actions is enabled.'
);
} else {
System.debug(
'Automated Actions is not enabled.'
);
}