---
title: "How to Add a Script to a Playbook"
url: "https://dm0bkdes5q7a2ls.productfruits.help/en/article/how-to-add-a-script-to-a-playbook"
language: "en"
last_updated: "2025-12-03T19:05:42.422Z"
---

# How to Add a Script to a Playbook

Use the steps here to add a script to your playbook logic.

## Overview

Playbooks can run a script (when certain conditions are met).

This article describes how run a script from a playbook.

## Before Getting Started

### Supported UTF-8 Scripts

-   If you are using a UTF-8 script, ensure you load a **UTF-8** script
-   Do NOT attempt to load a **UTF8-BOM** script. UTF8-BOM scripts are not supported.

## How to Add a Script to the Spirion Console

Use the following steps to add a script to the Spirion Console.

In Spirion Sensitive Data Platform:

1.  From the left side navigation menu, click **Settings** at the bottom of the menu.
2.  Select **Script Repository** from the navigation menu.
3.  Click the blue **Actions** button at the far right.
4.  Select **Add Script** from the drop-down menu that appears.  
    ![](https://cdn-assets.productfruits.com/fbf15623-5112-4ca4-bacc-45055c8a46ef)
5.  Fill in the Custom Script Details:
6.  -   Enter a **Script Name**
    -   Enter a **Script Description**
    -   -   What does the script do and when?
    -   Next to **Upload Script**, click the magnifying glass to select the script you want to upload  
        ![](https://cdn-assets.productfruits.com/5092af78-21e1-414e-9de3-091fb49ca9f4)
7.  Select **Save**.
8.  Toggle the switch under **Script Status** from grey to blue to activate it.

## How to Add a Script to the Playbook

Use the following steps to add a script to the Spirion Console.

From Spirion Sensitive Data Platform:

1.  Navigate to **Scans**.
2.  Select **Scan Playbooks**.
3.  Select the playbook you wish to add the script to, or select **Add Playbook**.
4.  In the Action box, click the drop-down menu and select **Execute Script**. See the screenshot below:  
    ![](https://cdn-assets.productfruits.com/dfed933a-8533-4a8c-b977-daa3565d8959)
5.  Select the script (saved from the above section) from the drop-down menu. See the screenshot below:  
    ![](https://cdn-assets.productfruits.com/806d367a-d84c-4e69-9b81-1f90cf3a4c48)
