> ## Documentation Index
> Fetch the complete documentation index at: https://koreai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring the Bitly Action

[Back to Actions Integrations](https://koreai.mintlify.site/ai-for-service/integrations/overview.md#actions)

Connect the Platform to Bitly to shorten long URLs. See [Bitly documentation](https://dev.bitly.com/docs/getting-started/authentication/) for details.

***

## Supported Authorization Types

The platform supports API key authentication for Bitly integration. See [App Authorization Overview](https://koreai.mintlify.site/ai-for-service/app-settings.md#authorization-profiles) for details.

| Authorization Type | Supported |
| - | - |
| Pre-Authorize the Integration | Yes |
| Allow Users to Authorize the Integration | Yes |

***

## Prerequisites

Before enabling the Bitly action:

* Create a [Bitly Developer](https://dev.bitly.com/) account.
* Create a custom app on the Bitly admin page.
* Copy your Bitly personal access token.

***

## Enable the Bitly Action

Go to **App Settings > Integrations > Actions** and select **Bitly** from the Available actions list.

### Pre-authorize the Integration (Basic Auth)

1. In the **Configurations** dialog, select the **Authorization** tab.

2. Set **Authorization Type** to **Pre-authorize the Integration** > **Basic Auth**.

   ![Auth type](https://mintcdn.com/koreai/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bitly-action-img2.png?fit=max\&auto=format\&n=7TeKpNFD7QJEMcMu\&q=85\&s=8f34dd78ffdfcf4500fa67667e025149)

3. Enter your **Personal Access Token**.

   ![Enter access token](https://mintcdn.com/koreai/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bitly-action-img3.png?fit=max\&auto=format\&n=7TeKpNFD7QJEMcMu\&q=85\&s=3513641bc9ec1a1040a0d77646447ea3)

4. Click **Save**. On first configuration, the Integration Successful pop-up appears.

> [!NOTE]
>
> The Bitly action moves from Available to Configured.

5. Click **Skip for Now** to install templates later.

   ![Skip for now](https://mintcdn.com/koreai/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bitly-action-img5.png?fit=max\&auto=format\&n=7TeKpNFD7QJEMcMu\&q=85\&s=8834a0cf2a5acaa90b70bcd56f99376a)

### Allow End Users to Authorize (Basic Auth)

1. In the **Configurations** dialog, select the **Authorization** tab.

2. Set **Authorization Type** to **Allow Users to Authorize the Integration** > **Basic Auth**.

   ![Auth type](https://mintcdn.com/koreai/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bitly-action-img6.png?fit=max\&auto=format\&n=7TeKpNFD7QJEMcMu\&q=85\&s=837033ac1c3a50bb41e26b8ba1b3031a)

3. Click **Select Authorization** > **Create New**.

4. Select the authorization mechanism (for example, **API Key**).

   ![API Key](https://mintcdn.com/koreai/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bitly-action-img7.png?fit=max\&auto=format\&n=7TeKpNFD7QJEMcMu\&q=85\&s=e48ee3fa7b675abd576d1887dc126e0e)

   See [App Authorization Overview](https://koreai.mintlify.site/ai-for-service/app-settings.md#authorization-profiles) for creating Basic Auth profiles.

5. Enter the following credentials:

   | Field | Description |
   | - | - |
   | Name | Name for the Basic Auth profile |
   | Tenancy URLs | Select Yes if tasks require tenancy URLs |
   | Base URL | Base tenant URL for the Bitly instance |
   | Authorization Check URL | Auth check URL |
   | Description | Description of the auth profile |

   ![Basic auth credentials](https://mintcdn.com/koreai/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bitly-action-img8.png?fit=max\&auto=format\&n=7TeKpNFD7QJEMcMu\&q=85\&s=95e00b4c78f719690fa554ca8a5346ec)

6. Click **Save Auth**, then select the new profile.

7. Click **Save**. The Integration Successful pop-up appears.

***

## Install Bitly Action Templates

1. On the Integration Successful dialog, click **Explore Templates**.

   ![Explore Templates](https://mintcdn.com/koreai/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bitly-action-img9.png?fit=max\&auto=format\&n=7TeKpNFD7QJEMcMu\&q=85\&s=d031ec974e0d754d918db51e7fbc4488)

2. Click **Install** for the desired template.

   ![Install Template](https://mintcdn.com/koreai/7TeKpNFD7QJEMcMu/ai-for-service/integrations/actions/images/bitly-action-img10.png?fit=max\&auto=format\&n=7TeKpNFD7QJEMcMu\&q=85\&s=4de5546d5734fa44ca0358f45cb6e8df)

3. The associated dialog task is auto-created. Click **Go to Dialog** or navigate to **Automation AI > Use Cases > Dialogs**.

4. To use the templates, see [Using Bitly Action Templates](https://koreai.mintlify.site/ai-for-service/integrations/actions/using-the-bitly-action-template).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.