---
title: Adding a PingIntelligence policy
description: To add a PingIntelligence policy to the Akana API Gateway:
component: pingintelligence
version: 5.2
page_id: pingintelligence:pingintelligence_integrations:pingintelligence_akana_add_policy
canonical_url: https://docs.pingidentity.com/pingintelligence/5.2/pingintelligence_integrations/pingintelligence_akana_add_policy.html
revdate: April 3, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Adding a PingIntelligence policy

## About this task

To add a PingIntelligence policy to the Akana API Gateway:

## Steps

1. Sign on to **Akana Policy Manager**, navigate to the **Tenant**, and click **Operational Policies** under **Policies**.

2. Select **Add Policy**.

3. For **Type**, select **Private Operational Script Policy** from the drop-down list, and click **Next**.

![A screenshot of the Select Policy Creation Option page in Akana Policy Manager.](../_images/mfl1579954034176.png)

1. Enter **Policy Name** and **Description**, click **Finish**, and then click **Close**.

![A screenshot of the Specify Policy Details page in Akana Policy Manager.](../_images/rze1579954203473.png)

1. Navigate to **Workbench**.

2. In the **Private Operational Script Policy** section, select the policy name and click **Modify**.

![A screenshot of the Workbench tab in Akana Policy Manager.](../_images/vxr1579954340568.png)

1. Click on **Imports**. Select the script added in [Adding an input script](pingintelligence_akana_input_script.html) and import it by clicking **<<**.

2. Select **JavaScript** for **Language** from the list.

3. Copy the contents of the `pi_policy.js` script and paste them into **Expression** under **Source**.

![A screenshot of the Modify Script Policy page in Akana Policy Manager.](../_images/vio1579954532678.png)

1. Click **Finish** and then click **Close**.

2. In the **WorkFlow Actions**, click **Activate Policy** to activate the PingIntelligence policy.
