--- title: Create an action as an activity automation plan description: Create an example action to configure and run as an activity from Playbooks. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/build-workflows/workflow-studio/create-automation-plan.html release: australia product: Workflow Studio classification: workflow-studio topic_type: task last_updated: "2026-03-12" reading_time_minutes: 3 breadcrumb: [Activity definitions, Stages and activities, Understanding the playbook components, Build Playbooks, Playbooks, Workflow Studio, Build workflows] --- # Create an action as an activity automation plan Create an example action to configure and run as an activity from Playbooks. ## Before you begin Role required: - This task requires some knowledge of creating flows in Workflow Studio environment. For more information, see [Building flows](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/flows.md). - This task requires some knowledge of server-side scripting. For more information, see [Server-side scripting](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/scripts/c_ServerScripting.md). - admin ## About this task Each activity definition requires an automation plan to run Workflow Studio content. The automation plan tells the Workflow Studio Playbooks builder what input values to use when running an action or subflow. An automation plan can specify static default values or can prompt playbook owners to provide dynamic values when they add an activity to a playbook. In this example, you create a reusable Workflow Studio action to use as an activity's automation plan. The action you create associates a Task \[task\] record with a parent record. ## Procedure 1. Navigate to **All** > **Process Automation** > **Flow Designer**. 2. In the main header, click **+ New** > **Action**. The Action Properties screen appears. 3. In the Action Properties screen, fill in the following fields: |Field|Action| |-----|------| |Name|Enter `Associate Record with Parent`.| |Application|Leave **Global** selected.| |Accessible From|Leave **All application scopes** selected.| 4. Click **Submit**. The Workflow Studio design environment appears. 5. Under the Action Outline, click **Inputs**. 6. In the Action Input header, click **+ Create Input**, and then fill in the following fields: |Field|Action| |-----|------| |Label|Enter `Record`.| |Name|Enter `record`.| |Type|Select **Reference.Task\[task\]**| 7. In the Action Input header, click **+ Create Input**, and then fill in the following fields: |Field|Description| |-----|-----------| |Label|Enter `Parent Record`.| |Name|Enter `record`.| |Type|Select **Reference.Task\[task\]**| 8. Click the add a new step icon \(\[Omitted image "add-new-step-icon.png"\] Alt text: Add a new step icon\). The Select Step to add screen appears. 9. Under ServiceNow Data, select the **Update Record** step. The **Update Record** step appears in the Action Outline under Inputs. 10. In the **Record** field, click the data pill picker icon \(\[Omitted image "data-pill-picker-icon.png"\] Alt text: Data pill picker icon\), and then dot-walk to **Inputs** > **Record**. 11. Under Field Values, click **+Add Field Value**, and then select **Parent** from the list. 12. Next to the **Parent** field, click the data pill picker icon \(\[Omitted image "data-pill-picker-icon.png"\] Alt text: Data pill picker icon\), and then dot-walk to **Inputs** > **Parent Record**. 13. Under the Action Outline, click **Outputs**. 14. Under Action Output, click **+ Create Output**, and then fill in the following fields: |Field|Action| |-----|------| |Label|Enter `Record`.| |Name|Enter `record`.| |Type|Select **Reference.Task\[task\]**| 15. In the Action Output header, click **+ Create Output**, and then fill in the following fields: |Field|Action| |-----|------| |Label|Enter `Parent Record`.| |Name|Enter `record`.| |Type|Select **Reference.Task\[task\]**| 16. In the Action Output header, click **Exit Edit Mode**. 17. Next to the **Record** output's Value column, click the data pill picker icon \(\[Omitted image "data-pill-picker-icon.png"\] Alt text: Data pill picker icon\), and then dot-walk to **Inputs** > **Record** 18. Next to the **Parent Record** output's Value column, click the data pill picker icon \(\[Omitted image "data-pill-picker-icon.png"\] Alt text: Data pill picker icon\), and then dot-walk to **Inputs** > **Parent Record**. 19. In the main header, click **Save** > **Publish** to make your action available to add to an activity definition's automation plan. ## Result You can now add your custom Workflow Studio action to an automation plan for your custom activity definition. ## What to do next Add your custom action to an automation plan when you [Create an activity definition](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/create-activity-definition.md). **Parent Topic:**[Activity definitions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/activity-definitions.md) **Related topics** [Create an activity definition]() [UI Layouts]()