# Set up integration with UiPath Automation Hub

> Different UiPath products work together to discover, investigate and build automation and communicate process improvements. **UiPath Automation Hub** is used to turn ideas for automation that are discovered from **UiPath Process Mining** into real automated implementations. If **UiPath Process Mining** is set up for integration with **UiPath Automation Hub** it is possible to submit ideas for process improvements that are subject for automation directly from **UiPath Process Mining** to **UiPath Automation Hub**.

## Introduction

Different UiPath products work together to discover, investigate and build automation and communicate process improvements. **UiPath Automation Hub** is used to turn ideas for automation that are discovered from **UiPath Process Mining** into real automated implementations. If **UiPath Process Mining** is set up for integration with **UiPath Automation Hub** it is possible to submit ideas for process improvements that are subject for automation directly from **UiPath Process Mining** to **UiPath Automation Hub**.

This page describes how to set up **UiPath Process Mining** to enable end-users to send automation ideas directly from the Process Graph to **UiPath Automation Hub**.

## Step 1: Generate a token from UiPath Automation Hub

:::note
When generating a token, make sure that you have selected a user in the **User** field to generate a *User Assigned Token*. This user will be assigned as the **Submitter** when sending the automation idea to **UiPath Automation Hub**.
:::

Follow the steps below to generate your Token from **UiPath Automation Hub**.

| Step | Action |
| --- | --- |
| 1 | Go to **UiPath Automation Hub** and log in to your account. |
| 2 | Go to **Admin Console - Platform Setup - Open API**. |
| 3 | Click on **Generate Token**.  The **Add Token** dialog is displayed. |
| 4 | Enter a name for the Token in the **Token Name** field, for example *Process mining*. |
| 5 | Make sure the **App Key** field is left blank. |
| 6 | In the **User** field, search for the user that will be used as the service account to connect with **UiPath Automation Hub**. |
| 7 | Click on **Save**.  The new Token is displayed in the list. |
| 8 | Click on the **Copy to Clipboard** icon to copy the Token. It includes both Tenant ID and Token generated. See the illustration below. |

:::note
Do not set up an **App Key**, so make sure the **App Key** field is left blank in the **Add Token** dialog.
:::

![docs image](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-docs-image-54080-e5d8cb51-9f3bfde1.webp)

For a detailed description on how to generate your Token from Automation Hub refer to the [Automation Hub API guide](https://docs.uipath.com/automation-hub/reference#generate-your-token-from-automation-hub)

## Step 2: Adapt the Process Mining Server Settings

To enable end users to send automation ideas you must specify the `AutomationHubAppToken` setting in the **Server Settings**.

Follow these steps to adapt the Server Settings.

 <colgroup>
  <col/>
  <col/>
 </colgroup>
 
  
     Step  
     Action  
  
 
 
  
     1  
     Go to the Settings tab of the Superadmin page of your UiPath Process Mining installation.  
  
  
     2  
     Enter the following line: <code>,"AutomationHubAppToken": "[token]",</code>Note: <code>[token]</code> is the token pasted from the Clipboard. See illustration below for an example. 
  
  
     3  
     Click on SAVE to save the changes to the Server Settings .  
  
 

![docs image](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-docs-image-58821-be87c141-f80ea912.webp)

:::note
For security reasons, you may not want to display the actual token value in the **Server Settings**. If you have set up Azure Key Vault for password storage, you can store the actual token in Azure Key Vault and refer to it from the **Server Settings**. For example: `"AutomationHubAppToken": {"credential": "AhAppToken"}` See: [Use a Credential Store](https://docs.uipath.com/process-mining/standalone/2021.10/user-guide/using-the-credential-store#use-a-credential-store).
:::

### Automation Hub on-premises

By default, a connection is set up to **Automation Hub** in UiPath Automation Cloud]. If you want to connect to an on-premises version of Automation Hub, you must specify the URL to the desired Automation Hub instance in the `AutomationHubUrl` Server Setting. (See [The Settings Tab](https://docs.uipath.com/process-mining/standalone/2021.10/user-guide/the-settings-tab#the-settings-tab)).

The URL is of the following format:

`https://[fully qualified domain name (fqdn)]/[organization]/[tenant]/[service]`

See the illustration below for an example.

![docs image](https://dev-assets.cms.uipath.com/assets/images/process-mining/process-mining-docs-image-53956-025c0083-ba44f5e2.webp)

Below is a description of the elements of the URL.

 <colgroup>
  <col/>
  <col/>
  <col/>
 </colgroup>
 
  
     Nr.  
     Element  
     Description  
  
 
 
  
     1.  
     fully qualified domain name (fqdn)  
     The cluster URL as specified during the installation of UiPath Automation Suite . Note: for a multi-node installation, this is the DNS hostname or load balancer url. For a single-node installation, this is the DNS hostname or machine domain name. 
  
  
     2.  
     [organization]/[tenant]/[service[  
     Similar to Automation Cloud] the URL contains the name of the organization, the tenant name, and the service.  
  
  
    &nbsp; 
     Login redirect (optional)  
     An optional (API) redirect.  
  
 

## Step 3: Configure the Process graph for sending automation ideas

If **UiPath Process Mining** is set up for integration with **UiPath Automation Hub** the Process Graph must be configured to enable end-users to send ideas for process improvements that are subject for automation directly from the Process Graph to **UiPath Automation Hub**.

## Related Information

See [Sending Automation Ideas to UiPath Automation Hub](https://docs.uipath.com/process-mining/standalone/2021.10/user-guide/sending-automation-ideas-to-uipath-automation-hub#sending-automation-ideas-to-uipath-automation-hub).

See [Setting up an Azure Key Vault Credential Store](https://docs.uipath.com/process-mining/standalone/2021.10/user-guide/setting-up-an-azure-key-vault-credential-store#setting-up-an-azure-key-vault-credential-store).

See [Configure the Process Graph for Sending Automation Ideas](https://docs.uipath.com/process-mining/standalone/2021.10/user-guide/configure-the-process-graph-for-sending-automation-ideas#configure-the-process-graph-for-sending-automation-ideas).
