Skip to content
LogoLogo

Actions

An action is a side effect that starts when the flow reaches it. Use an action to track an event, to send data to an external service, or to call a webhook.

The actions list for a workspace on the Picked dashboard

Set up an action

Name: The name that the dashboard shows. Your visitors do not see it.

Key: The identifier that your application uses for this action. Your visitors do not see it.

Success field: Optional. The field that stores the value your handler returns when the action runs in a flow.

Failure field: Optional. The field that stores the code and message of the error when the action fails in a flow. It cannot be the same field as the success field.

The SDK changes each value to the type of its field. See SDK actions.

Register in your application

A published action that starts a workflow needs no code in your application. The SDK sends the request to Picked, and the workflow runs there.

To run your own code, pass a handler under the action key in createClient(). That handler replaces the workflow for this key. See How to register an action handler for the code, and SDK actions for what the handler receives and returns.

Use actions in flows

In the flow builder, drag an action from the library onto the canvas. Connect it to the point in the flow where you want it to start.

An action runs when the flow reaches its node. It does not interrupt your visitor. By default the flow continues to the next connected node.

An action node can carry a success branch and a failure branch. Which one the flow takes depends on whether your handler throws, and a returned false is a success. See How an action decides which way to go.

Reuse actions

An action belongs to the project. Use the same action in more than one experience flow. A change to the options of an action applies at every place that uses it.

API and MCP

You can also do this task with the Management API, the MCP server, or code that you send to picked_run.

TaskGraphQLMCP toolRun
Create an actionactionCreate, experienceFlowUpdateupdate_experience_flowtools.update_experience_flow({ experience_id, workspace_id, create_actions, create_nodes })
Add an action to a flowexperienceFlowUpdateupdate_experience_flowtools.update_experience_flow({ experience_id, workspace_id, create_nodes, create_edges })