Skip to main content
Skip table of contents

Nested Playbooks

LAST UPDATED: APRIL 15, 2025

Frame 1 (14)-20250414-211201.png

Embedded within parent playbooks, a nested playbook (listed as Codeless Playbook in the platform) is one of two implementation types for custom integration commands and custom utility commands. Nested playbooks are identifiable and accessible through the image 1 (3)-20250415-173231.png (link) icon displayed on command task nodes.

Frame 2 (9)-20250415-021404.png
Why Build and Use Nested Playbooks

Nested playbook commands offer operational and maintenance benefits as compared to implementing all logic directly within a single parent playbook. Benefits include:

  • Reusability – Reduces repetitive configuration for common actions.

  • Standardization of Processes – Ensures consistent incident response procedures, particularly in high-pressure or time-sensitive situations.

  • Enhanced Readability – Makes it easier to understand and follow response logic during investigations.

  • Improved Maintainability – Makes it easier to manage and update common logic.

  • Easier Testing and Debugging – Enables troubleshooting and validation of specific actions without executing the entire parent playbook.

READER NOTE

While termed "codeless," some task nodes require Jinja expressions to perform dynamic logic.

Creating Nested Playbooks

Example 1 - Creating My First Nested Playbook (Custom Integration Command)
  1. Navigate to Configuration > Integration Command, then select an integration.

    Frame 9 (1)-20250415-190027.png
  2. Click on the button.

    Frame 10 (1)-20250415-190255.png
  3. Select the Codeless Playbook implementation type, name the custom command, then click on the button.

    Frame 11 (2)-20250415-190911.png
  4. Build the following sample nested playbook:

  5. Click on the root node (DemoNestedPlaybook), select the Command Task checkbox, then save the task configuration.

    Frame 12 (3)-20250415-191554.png
  6. Submit the nested playbook.

    Frame 13 (3)-20250415-191819.png

  7. Verify that the nested playbook is in mode.

    Frame 14 (3)-20250415-192332.png
Example 2 - Creating My Second Nested Playbook (Custom Utility Command)
  1. Navigate to Configuration > Utility Command, then click on the button.

    Frame 3 (9)-20250415-181341.png
  2. Select the Codeless Playbook implementation type, name the custom command, then click on the button.

    Frame 4 (8)-20250415-181617.png
  3. Build the following sample nested playbook:

  4. Click on the root node (DemoNestedPlaybook), select the Command Task checkbox, then save the task configuration.

    Frame 5 (9)-20250415-183314.png
  5. Submit the nested playbook.

    Frame 8 (1)-20250415-185442.png

  6. Verify that the nested playbook is in mode.

    Frame 7 (6)-20250415-184521.png

Testing Nested Playbooks

See Playbook Testing and Task Node Re-runs.

Adding Nested Playbooks to Parent Playbooks

Example 1 - Embedding My First Nested Playbook (Custom Integration Command)

1. Navigate to Configuration > Investigation Playbooks (or Preprocessing Playbooks), then find and select a playbook.

Frame 15 (4)-20250415-201350.png
  1. Search for the nested playbook command task, then drag and drop it onto the parent playbook editor.

    Searching and Dragging an Integration Nested Playbook Command.gif
  2. Verify that the nested playbook command task has been added to the parent playbook editor.

  3. View the nested playbook by clicking on the image 1 (3)-20250415-173231.png (link) icon.

    Frame 18 (2)-20250415-210652.png

Example 2 - Embedding My Second Nested Playbook (Custom Utility Command)
  1. Navigate to Configuration > Investigation Playbooks (or Preprocessing Playbooks), then find and select a playbook.

    Frame 15 (4)-20250415-201350.png
  1. Search for the nested playbook command task, then drag and drop it onto the parent playbook editor.

    Searching and Dragging a Nested Playbook Command.gif
  2. Verify that the nested playbook command task has been added to the parent playbook editor.

  3. View the nested playbook by clicking on the image 1 (3)-20250415-173231.png (link) icon.

    Frame 17 (3)-20250415-210904.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.