Playbooks in Workflow Studio

  • Release version: Washingtondc
  • Updated February 1, 2024
  • 2 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Process Automation Designer in Workflow Studio

    The Process Automation Designer within Workflow Studio allows ServiceNow customers to build and manage cross-enterprise workflows efficiently. It enables the creation and activation of playbooks that automate business processes using the ServiceNow AI Platform. Users can easily navigate to their playbooks and create new ones as needed.

    Show full answer Show less

    Key Features

    • Playbook Creation: Users can create a playbook by selecting the "New" option and defining triggers, stages, and activities.
    • Properties Management: After creating a playbook, users can edit its properties such as label, description, and conditions for execution.
    • Trigger Options: Various trigger options allow customization, including running once, for each unique change, or every update. Extended triggers can also be set for related tables.
    • Design Considerations: Avoid duplicating existing business logic from other ServiceNow components, and ensure records affected by imports are ignored in triggers.
    • Testing and Restarting: Playbooks can be tested with trigger data, and agents can restart playbooks, stages, or activities as needed.
    • Duplication: Existing playbooks can be duplicated for quick modifications, preserving the original configurations.

    Key Outcomes

    By utilizing the Process Automation Designer, ServiceNow customers can streamline their business processes, enhance operational efficiency, and minimize errors through effective automation. The ability to test and modify playbooks ensures that workflows are optimized before activation, leading to improved overall performance in service delivery.

    Playbooks are ServiceNow AI Platform® representations of cross-enterprise processes for your organization. Create and activate a playbook to run your digitized business process on the ServiceNow AI Platform.

    Each playbook that you design in Workflow Studio has a trigger, a sequence of stages, and a sequence of activities.

    You can view your list of Playbooks by navigating Process Automation > Workflow Studio > Playbooks. Opening a playbook allows you to edit it. If there are no playbooks in the list, you can create a new one by clicking New and selecting Playbook. For more information on creating a playbook, see create a process definition.

    Properties

    After you create a playbook, access its properties by opening it, and selecting Properties in the More actions menu in the upper right corner of the header. In the Additional properties modal, you can edit the following information:
    Field Description
    Label Name of the playbook to display in Workflow Studio and in a Playbook Experience.
    Description Description of what your playbook does.
    Conditions Conditions that must be met to run your playbook.
    Run my trigger Option that defines how many times your trigger can run for your playbook. Choices include:
    • Once: Triggers the playbook once for the life of the triggering input record.
    • For each unique change: Triggers the playbook for every unique update to a non-system field even if the flow is currently running. The system stores a history of every change to a record and determines whether the change is unique. For example, if an incident record's State field changes from In Progress to On Hold, the playbook runs. However, if the State field then changes back to In Progress, the playbook doesn't run.
      Note:
      Playbooks that have a trigger that runs For each unique change can produce recursions when run in a non-interactive session. When such playbooks make a change to the trigger record, the change meets the playbook's trigger conditions and causes a recursion.
    • Only if not currently running: Triggers the playbook for every unique change if a process execution is not currently running.
    • For every update: Triggers the playbook every time the input record is updated, regardless of whether there has already been or there currently are any running process executions.
    Run on extended Option to trigger your playbook when record operations occur on tables that extend the input table. For example, if your selected table is the Task [task] table and you select this option, your playbook triggers when a Problem [problem] record is created or updated. For more information, see Table extension and classes.
    Note:
    After you create a playbook, you can't change the trigger's input table or trigger type. For more information, see Triggers.

    Design considerations

    Refer to these design considerations when working with playbooks:
    Avoid duplicating business logic used in Flow Designer, Workflow, and business rules
    Replace separate business logic such as business rules, flows, and workflows with a consolidated playbook. Make sure that you deactivate any external business logic you replace to avoid duplication of effort.
    Ignore records added or updated by import and update sets
    Record triggers ignore records added or updated by applying an update set or importing an XML file. These operations apply to the entire application or table rather than an individual record.