Stages and activities
Summarize
Summary of Stages and Activities
In ServiceNow Playbooks,activitiesrepresent individual steps within your business processes, whilestagesgroup these activities logically in sequence to support cross-enterprise workflows. This structured approach allows you to design and automate complex processes effectively.
Show less
Key Features
- Stages: Group and sequence related activities. You can add stages in the Board or Diagram views by using the + Add stage button or the + icon on connectors.
- Activities: Represent single steps in the process. Add activities via the activity picker, accessible in Board or Diagram views, where you can search or select from common activities or custom applications.
- Activity Types:
- Interactive activities prompt users for input during playbook execution.
- Non-interactive activities run automatically without user input.
- Optional activities can be added by agents or fulfillers during a playbook run.
- Details and Configuration: Use the side panel to set names, descriptions, start rules, run conditions, and inputs for stages and activities.
- Start Rules: Define when stages or activities begin, such as at process start, after specific stages/activities, or when their containing stage starts.
- Inputs and Outputs: Configure activity inputs using static or dynamic values, including dot-walking to related data fields. Outputs from prior activities can serve as inputs for subsequent ones.
- Automation Assets: Add subflows, flows, or actions directly to playbooks without creating new activity definitions.
- Advanced Features: Support for delays before running activities, decision branches (activities and stages), parallel branches, questionnaires, and dynamic input fields based on other input values.
- AI Integration: Use AI agents or AI skills as activities to automate tasks and produce outputs for downstream activities.
- Playbook Activity State Mapping: Customize how activity statuses are reflected on playbook cards for clearer progress tracking.
Practical Considerations for ServiceNow Customers
- Design alignment: Align playbook stages and activities with existing ServiceNow AI Platform state models or business lifecycle models for consistency.
- Role requirements: Editing automation inputs and workflows requires specific user roles with access to Workflow Studio.
- Custom activity definitions: If predefined activities don’t meet your needs, create custom activity definitions to extend playbook functionality.
- User experience: Keep stage and activity names concise to avoid truncation during runtime, and provide descriptive details internally for clarity during design.
- Flexibility: Optional activities and dynamic inputs empower agents and fulfillers to adapt the playbook flow in real time to match evolving business conditions.
Expected Outcomes
By effectively using stages and activities in Playbooks, ServiceNow customers can:
- Visualize and automate complex workflows with clear step sequencing.
- Incorporate user interactions where needed and automate tasks in the background seamlessly.
- Improve process flexibility and adaptability with optional steps and dynamic inputs.
- Leverage AI capabilities to enhance automation and decision-making within workflows.
- Maintain clear control over when and how stages and activities start and run based on business rules and conditions.
In Playbook, an activity represents one step in your overall business process. You can sequence many activities together in the stages of your process.
Stages
Group activities by the stages of your business process, and sequence activities in an order that makes sense for your cross-enterprise workflow. A stage is made up of many sequenced activities that are grouped in a logical way. In the Playbooks Board view of the design environment, you can add a stage to your playbook by clicking + Add stage. In the Diagram view, select the + icon on connectors (lines) to add a stage.
Activities
In Playbooks, an activity represents one step in your overall business process. In the system, an activity is one instance of an activity definition. For more information on activity instances and activity definitions, see the Playbook Experience and activity definitions.
Adding an activity to your playbook
In the Playbooks Board view of the design environment, select + Add activity to open the activity picker. In the Diagram view, select the + icon on connectors (lines) to open the activity picker. In the activity picker, you can search for an activity to add or select one from the list of Common Activities. To choose an activity for a custom application, first select the application and then select the activity from the resulting list within the picker.
Additionally, you can add an activity just using an automation asset.
If there isn't an activity that fits your use case, you can create your own activity definition to add to the activity picker. For more information, see create an activity definition.
Interactive and Non-Interactive activities
Activity categories include:
- Interactive Activities
- When an interactive activity runs, it prompts a user for input in your playbook as it runs. For more information, see Interactive activities.
- Non-Interactive Activities
- When a non-interactive activity runs, it runs entirely behind-the-scenes and requires no user input. For more information, see Non-Interactive activities.
- Optional Activities
- An optional activity can be inserted by agents and fulfillers during a playbook run. For more information, see Optional activities.
Stage and activity details
When you select an activity, the side panel should open. Under the Details tab of the side panel, you can add names, descriptions, and start rules to the stages and activities in your playbook. Click the show or hide additional options button to show or hide additional properties for your currently selected stage or activity. The basic details for each stage and activity include:
- Label
- You can enter a display name for your stage or activity. This name appears during playbook runtime.Note:Keep your stage and activity names brief, as the system truncates long names.
- Description
- Optionally, enter a description for your activity or stage. This description only appears within Playbooks and isn't visible during playbook runtime.
- Start Rule
- Under , select a start rule for when your stage should start running:
- When process starts: Your stage starts running as soon as the playbook starts.
- After specific stages: Your stage starts running after specified stage(s) have finished running.
- Run condition
- Conditions that must be met to run an activity or stage. You can use data from prior activities to build conditions.
Activity inputs
To change default inputs and outputs for the activity, open and edit the source flow in Workflow Studio by selecting the Open link icon (
) next to the Automation field.
For more information on how to work with the default inputs and outputs for activities in Playbooks, see Create an action as an activity automation plan.Note:You must have the appropriate user roles to access Workflow Studio and Workflow Studio. For more information, see User access to Workflow Studio flows.- Inputs are data that you provide so that the activity runs and performs its function appropriately. For example, a Record activity that notifies a customer of an application rejection will have message inputs for the email address, subject, body, and more.
- Expected Outputs are displayed at the bottom of the Automation tab.
Creating static and dynamic values for activity inputs
You can add dynamic data to an activity input. Click the data pill picker icon () and navigate, or dot-walk, to the data pill whose dynamic value you want to use when your activity runs. You can select dynamic data from fields in the input record. If your activity has a start rule of
After specific activities, you can also select dynamic data from the outputs of other activities in your playbook. For more information on dot-walking to related fields and records on the ServiceNow AI Platform, see selecting fields on related tables using dot-walking.
The inputs for interactive activities typically provide data that renders in a playbook for an agent to interact with. The inputs for non-interactive activities can render in a playbook but don't require any user input in order to run. For more information, see Interactive activities and Non-Interactive activities.
Design considerations
- Keep ServiceNow AI Platform state models in mind when designing your playbook
- Some record types already have state models that describe their life cycle. Use any existing state model as a template for the design of your playbook. For more information, see State Management.