Create an activity definition
Specify the action or subflow you want an activity to run. Configure the inputs you want playbook designers to set when adding the activity to a playbook. Select the experience you want end users to have when the activity runs.
Before you begin
- Create a Workflow Studio subflow or action that you want to use as the automation plan for your activity. For example, see Create an action as an activity automation plan.
- Make sure to set your current application to the application that you want your activity to run in. For more information, see Application picker.
- Role required: admin, playbook.admin, or pd_content_author
Procedure
-
To start creating a new activity definition, do one of the following:
- Navigate to Process Automation > Process Automation Administration > Activity Definitions. Then in the context header, click New.
- Follow the steps to Create a playbook. Then in the Playbooks activity design space, click Add an activity > Create a new activity.
The Activity Definition form view appears. -
Fill in the Activity Definition form fields.
Field Action Label Enter a unique name for your activity.
This name appears in the playbook in both the Workflow Studio Playbooks builder as well as during playbook runtime.
Table Select a table whose records the activity can access as inputs. When adding inputs to your activity in the Workflow Studio Playbooks builder, you can dot-walk to dynamic record data from this table. See Dot-walking to data in related tables.
Note:The table specified for a playbook's triggering input record overrides the activity definition table at design time. See TriggersDescription Optionally, enter some descriptive details about your activity. Accessible From Choose one of the following options: - All application scopes - You can add this activity to a playbook in any application scope.
- This application scope only - You can only add this activity to playbooks within the same application scope specified in the Application field.
Required Roles Add roles that are allowed to access activities that use this activity definition. Note:Users who can view the playbook but who do not have the required role to access activities with this activity definition will have a read-only view of these activities. -
Configure the Automation Plan.
-
Next to the Flow or Action field, click the lookup documents using list icon (
).
The Select the document screen appears. -
In the Table Name list, select one of the following options:
- To use a Workflow Studio subflow to automate your activity, select Flow.
- To use a Workflow Studio action to automate your activity, select Action Type.
Note:You can only use published actions or subflows for an activity definition's automation plan. -
Next to the Document field, select the lookup documents using list icon (
).
The Flows or Action Types screen appears. - From the list, select the subflow or action that you want to use to automate your activity.
- Select OK.
-
Right-click in the header of the activity definition, and select Save.
The system displays the available variables for the action or subflow. The Workflow Studio Playbooks builder displays a variable for each action or subflow input.
-
For each variable, configure the default value you want each variable to have.
Leave a variable blank when you want a playbook designer to configure the value when adding the activity to a playbook.
-
Next to the Flow or Action field, click the lookup documents using list icon (
-
For each variable, select where it is visible.
Visibility Description Always show Displays the input in the properties panel. Show as additional property Displays the input in the properties panel only when playbook authors select Show additional options. Show as additional property for Playbook admins only Displays the input in the properties panel when users with the playbook.admin role select Show additional option. The input is hidden for any other users. Playbook designers can only set values for variables that they have access to. -
Configure the Activity Experience.
-
In the Activity Experience tab, next to the UI Layout field, select the list icon (
).
The Activity UI Layouts list appears. - Select the UI Layout you want to use.
- Right-click in the header of the activity definition, and select Save.
-
Under the Associated Record section, select values for the Associated table and Associated record fields.
These values are typically Record and Table Name outputs for the Workflow Studio subflow or action specified in your activity's automation plan. For example, you can click the data pill picker icon (
) next to the Associated record field and dot-walk to the Table Name output by selecting VL > Add Comment > Outputs > task > Approval.
The system associates a record with your activity so that, when the activity runs, it knows which record's data to output. - Optional:
To set up the default activity data that renders in your playbook during runtime, enter the values for that data in the other sections under Activity Experience.
The sections and fields that appear under Activity Experience vary depending on the UI Layout that you select. For more information, see UI Layouts.
-
In the Activity Experience tab, next to the UI Layout field, select the list icon (
-
In the AI Agents tab, select On to enable AI agents for the activity.
AI Agents are supported for form-based activities. If you enable AI Agents for an activity, complete the following fields to configure the AI Agents.
Table 1. AI Agents configurations Field Description Child Agents Provides the option to add custom agents to the activity. To add custom agents to your activity, select the lock icon
.
Run as Lets you select the user on whose behalf the activity runs - the user that triggered the playbook or the user who completed a previous activity. AI agent instructions Adds default instructions for the AI Agents in the activity. The playbook author can update these instructions. Autonomous support Enables you to configure the AI Agents to complete actions autonomously, without human intervention. Use the Supported actions field to define the autonomous actions. Supported actions Specifies the actions that the AI Agents can perform autonomously in the activity. Select the lock iconand choose the actions to enable for autonomous support.
- Update Record: The AI Agents can update records autonomously.
- Create Record: The AI Agents can create records autonomously.
- Mark Complete: The AI Agents can autonomously mark the record complete. The playbook then proceeds to the next activity.
AI agent autonomous instructions Adds default instructions for the autonomous AI Agents in the activity. The playbook author can update these instructions. - Select Submit to finish creating your activity definition.