Learn how to locate and add your Agentforce Context Protocol (ACP) backed Invocable Actions to a Salesforce Flow using Flow Builder.
@InvocableMethod
that wraps an Agentforce Context Protocol (ACP) tool, this method becomes available as an “Action” element within Salesforce Flow Builder. This guide will show you how to find and add these ACP-backed actions to your Flows.
@InvocableMethod
. This method should be designed to call an ACP tool.
ACPSlackActions
with a method sendMessage
annotated with @InvocableMethod(label='ACP Slack: Send Message' description='Sends a message to a Slack channel via ACP.')
.label
you specified in the @InvocableMethod
annotation in your Apex class.
category
in the @InvocableMethod
annotation (e.g., @InvocableMethod(label='...' category='ACP Tools')
), you can filter by that category on the left side of the Action selection dialog.@InvocableVariable
in your Apex method, a field will appear here.ACPSlackActions.sendMessage
method expects channelId
and messageText
, you’ll see input fields for these. You might map messageText
to a Flow variable called varWelcomeMessageText
.@InvocableVariable
), you can store these outputs in Flow variables for use in subsequent Flow elements.success
boolean or a responseId
, you can create Flow variables to store these and use them for decision logic later in the Flow.label
of all your ACP-related Invocable Actions (e.g., “ACP [Connector Name]: [Action]”). This makes them easier to find and identify.category
Attribute: Group related ACP actions using the category
attribute in the @InvocableMethod
annotation. This helps organize them in the Flow Builder action selection dialog.label
and description
in your @InvocableMethod
and @InvocableVariable
annotations are clear and accurately reflect what the action and its parameters do. These are displayed in Flow Builder and help users understand how to use the action.