# Averroes.ai

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQpuAMflVJ295bSgp2Z%2F-MQqSoLLvjLWmlHFaE6D%2FAsset%201.svg?alt=media\&token=99885065-aa7e-4faf-960e-5a1fa9a8d95b)

###

### **What is** [**Averroes.ai**](https://averroes.ai)**?**

Averroes.ai is an AI platform that enables industrial companies to quickly create large-scale, accurate AI applications for manufacturing operations such as predictive maintenance, quality checks, and churn analysis using their data and deploy it at scale. Averroes.ai aims to accelerate the adoption of IoT and AI capabilities by introducing a generalized engine that auto-generates accurate predictive models. The utilization of these models would allow manufacturers to increase up-time, boost performance, reduce over-maintenance, and improve planning.


# Averroes user account

Averroes account for UiPath

To use Averroes activities on UiPath marketplace, users need to create an Averroes.ai account (username and password). You can sign up with Averroes.ai [here](https://stg.averroes.ai/signup/uipath-user/uipath).

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQqU0toaEx3V0ExNWxg%2F-MQqVhntAQ8JG5zXAmdm%2Fimage.png?alt=media\&token=ffa24e8d-713a-4581-a7be-b1793b5e0b03)

Through this account, you can train your data either on Averroes directly, or via UiPath activities. Initially, our focus is to direct you on how to train a model based on your data and predict new data using the generated model via UiPath.


# Customer Churn Package

Averroes.ai Customer Churn package on UiPath

Detect who's likely to churn and anticipate how many users are at risk to leave your business using the AI-powered activities provided by Averroes.ai. Automate the entire process from training to prediction using your own data.

You can get Averroes.ai Customer Churn Prediction package in two ways:

* Download it directly from the UiPath marketplace:

  After downloading the package, move it to the packages' path you prefer to find it later easily.

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQwmgwADN-TyqftcYeb%2F-MQwml7vujWZ5Htsne5b%2Fimage.png?alt=media\&token=d7f52ea6-49dd-4e6b-9b1e-67e77e9c05f5)

* Search for it via Go\* while adding a new package:

{% hint style="info" %}
Downloadable packages on UiPath marketplace are automatically listed in UiPath Studio "Go" source.\
In the Community edition, you will find it under "Connect" source.\
If you don't find either "Go" or "Connect", you can add it by yourself: \
from settings ->Manage sources -> Add  <https://gallery.uipath.com/api/v2> as a source; as shown in the following figure.
{% endhint %}

<div align="center"><img src="https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQqblQXh9Y8Kmb6jz-R%2F-MQqcKNyrshGe0bjRopu%2Fimage.png?alt=media&amp;token=3dd9d1d1-7271-4dfc-88d6-c73a66814568" alt=""></div>

In both methods, search for the package in the appropriate source or in all packages.

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQqdSlJh2cAIf1MdsXX%2F-MQqdh8V_6kj9jPzWKBX%2Fimage.png?alt=media\&token=22d0770d-a670-4352-b5de-ae80854cb79b)

Now you can use the two activities under Averroes Customer Churn Package, [Customer churn training](/averroes-uipath-integration/customer-churn-package/customer_churn_train), and [customer churn prediction](/averroes-uipath-integration/customer-churn-package/customer_churn_predict).


# Customer Churn Training Activity

Averroes Customer Churn training activity on UiPath

Averroes customer churn training activity enables you to train a churn model based on your data directly from UiPath without any required coding.

In this tutorial, we will go with detailed steps on how to use this activity:

* Assuming you already have a project, create a new sequence:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQqhYGsDwi4NTO4jjHB%2F-MQqi7HZpOrk68vumwvT%2Fimage.png?alt=media\&token=edb636dd-d670-4a37-8eeb-fa10015a0d5b)

* If you haven’t downloaded the packages, download them. Afterwards, search for customer churn training activity.

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQqhYGsDwi4NTO4jjHB%2F-MQqiU6Q5Aujzq8MYI5C%2Fimage.png?alt=media\&token=8edd80d0-a885-4273-852a-1b14b31bd701)

First, let's explore the details of this activity:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQqhYGsDwi4NTO4jjHB%2F-MQqkDC04RUNW2BvBLvC%2Fimage.png?alt=media\&token=44eaff78-e960-4a43-befa-90de608475cc)

**Authentication:** On the right-hand side (properties panel); you should fill in your Averroes account info: **Email** and **Password&#x20;*****without quotations.***

**Input:**

* **Dataset File:** path of the file contains the data you want to train the churn model on it; data should be in Tabular (structured in CSV format).
* **Churn Column:** column name that presents the customer churn status in your dataset file; should encapsulate in double quotations.
* **Training Time:** in minutes; as an integer.

**Output:**

* **Message**: a message that indicates the status of the training; success, failure, etc.
* **Performance Results:** a message contains the performance metrics of the generated model (accuracy, f1-score, precision, and recall).

### Now, how to use the activity?!

* Fill the email and the password in the authentication section
* To prevent errors that may be produced from using an absolute path, it's better to use the built-in UiPath activity "Select File" which is more user friendly.&#x20;
* As a UiPath user, it's assumed that creating new variables to store output values is familiar to you. Otherwise, follow these steps:
  * Add the "Select File" activity, and select it.
  * From its properties window, click on the **"+"** icon beside **selectedFile** in Output section, then choose **"Create Variable".** Write a unique variable name (ex; trainingFilePath) to store the selected file path, in order to use as input to the Dataset File in Customer churn training activity.

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQqnMKSfYceU_3MSBqd%2F-MQqopBRjKHg45havIxe%2Fimage.png?alt=media\&token=82d1af5d-08eb-4f56-b5c2-712705348e7d)

* Fill in the other inputs.
* Store the customer churn activity output messages in variables, in the same way we did previously.
* Use the built-in UiPath activity "Message Box" to show each message of the churn training activity.

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUJHT3ITlJw9rUwtmwv%2F-MUJKtD1C84vPreq2RAA%2Fimage.png?alt=media\&token=09a365c8-543d-43d1-91f7-04b6a67ce511)

* Once you hit Run, the sequence will start execution by showing a pop-up window asking you to select the dataset file:&#x20;

<div align="center"><img src="https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQqu1Hd8WIvGPbypjov%2F-MQqv2Bvl3NuViPA-Lvg%2Fimage.png?alt=media&amp;token=b4871d43-4958-443b-9984-f13a8aa267f4" alt=""></div>

* If you're in Debug mode, log messages will appear on the right-hand side panel during the execution.&#x20;

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQqu1Hd8WIvGPbypjov%2F-MQqv9wFI7CQiQjA1CSe%2Fimage.png?alt=media\&token=e156ab9d-418b-4477-b43e-4ba25703a175)

* After the execution is completed successfully, the following two messages will be shown:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQqu1Hd8WIvGPbypjov%2F-MQqvkvEWpgNGpGPemhF%2Fimage.png?alt=media\&token=69e18b1c-2ee2-45f4-b914-272be23301d4)

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQqvoqyntkd2iM0fhvf%2F-MQqvq7turTX2_EoOkPB%2Fimage.png?alt=media\&token=24e302b5-ca03-42d8-8934-592b8708463e)

* That's great, now you are aware of your generated model performance, but check your email (which was used to create your Averroes account) to find more details.
* Sample email:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQwspjhI-VH4ojeynsg%2F-MQx2KDgqk4uppj4et4G%2Fimage.png?alt=media\&token=3ce98a48-40d5-4422-8121-ad1bbff3c255)

* Your model is identified by  "Config ID" and "Model ID" values sent in the email. These need to be provided in the prediction activity to make predictions. More details are available in the next section.
* From the dataset link sent in the email, you can reach the training dataset used for this model, which provides many features:
  * Understand and get more insight into your data via Preview and Visualization tabs.
  * Perform different training executions based on different settings.
  * Compare different results of the executions and choose the best to use in prediction.
  * From the Prediction tab, for the selected model, you can test the prediction of a single sample.
  * Generated Model-ID and Config-ID from the integration section in the Prediction tab; so you can copy them from there directly to use in UiPath customer churn prediction activity.

Following is a set of screenshots of these amazing features:

![Preview tab](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQwq8KtzHkXOFc4rnyr%2F-MQwr-wRPihvacANKFRx%2Fimage.png?alt=media\&token=ef462877-21bb-4fd8-b101-74dab340bc75)

![Visualization tab](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQwq8KtzHkXOFc4rnyr%2F-MQwrHHeDMNOk7SHF5kP%2Fimage.png?alt=media\&token=e3b536d6-55ee-4f93-b1af-5fc877d2ccd6)

![Train tab](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQwq8KtzHkXOFc4rnyr%2F-MQwrWpuLo7so_h476OZ%2Fimage.png?alt=media\&token=26cbe284-8957-4b9c-8aaf-1575396f4b74)

![Train tab - Test a model](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQwsHp7DcEG-Ptu9sfz%2F-MQwsXaCqpKkbKRaPqQi%2Fimage.png?alt=media\&token=59f24b8e-2150-4c93-ba9d-8c4e25e1b680)

![Preiction tab](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQwq8KtzHkXOFc4rnyr%2F-MQwrfmDLnLbDra8AXan%2Fimage.png?alt=media\&token=14fd1a8f-9308-4291-b2c7-e6a828b6b580)

![Prediction tab - UiPath integration section](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQwq8KtzHkXOFc4rnyr%2F-MQwrnZIW4l8BaBepBW5%2Fimage.png?alt=media\&token=07279aac-c180-4699-8999-67a6f367987b)


# Customer Churn Prediction Activity

Averroes Customer Churn prediction activity on UiPath

Averroes Customer churn prediction activity enables you to predict your customers' churn status using the churn model trained on your data directly from UiPath easily without any required coding.

In this tutorial, we will go with detailed steps on how to use this activity:

* Assuming you already have a project, create a new sequence:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQqydePNwd6Sr3v0E85%2F-MQrGfrD4x_u4EaSbMAO%2Fimage.png?alt=media\&token=bc14f307-39cb-4716-a2dc-fb3b1c07b2d4)

* If you haven’t downloaded the packages, download them. Afterwards, search for customer churn prediction activity

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQqydePNwd6Sr3v0E85%2F-MQrLyG0hiUjJjD728L4%2Fimage.png?alt=media\&token=1bd8ab43-4b0e-469b-bd4f-c44d99923bdc)

First, let's explore the details of this activity:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUIXasI2vW2oHmMcICE%2F-MUIXrpULDDyf9HozFBn%2Fimage.png?alt=media\&token=b0b9826c-eb28-402d-a3f8-65d051ebf6a6)

**Authentication:** On the right-hand side (properties panel); you should fill in your Averroes account info: **Email** and **Password&#x20;*****without quotations.***

**Input:**

* **Data  File:** path of the file contains the data you want to predict its churn status.
  * Data should be in Tabular (structured in CSV format)&#x20;
  * In the same format of the dataset file used in training the model. The only exception is, that the prediction file doesn't contain the churn status column.
* **Config ID:** Config ID generated from training the churn model on your data.
* **Model ID:** Model ID generated from training the churn model on your data.

**From where to get Conig ID and Model ID:**

* The email sent to you after your training completed successfully
* Your account on Averroes (link of the desired training will sent also in the email), as the following figure shows:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQrbj2IlWqCZ9CbLg2J%2F-MQrelZIB-cv_Q41OB0V%2Fimage.png?alt=media\&token=7f3922e8-d96a-41bd-847c-f56ccb128548)

Where your training execution is listed here with its settings and performance results. If you click on the Test button, it will redirect you to the prediction tab, where you can test prediction of one sample, in addition to the integration section, which provides to you the Config ID and Model ID generated from this training execution.

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQrbj2IlWqCZ9CbLg2J%2F-MQrgkRGqc-vm3BCg0gB%2Fimage.png?alt=media\&token=4c4d1a6f-179c-4c80-8af6-77b54d412108)

**Output:**

* **Message**: a message that indicates the status of the prediction; success, failure, etc

### Now, how to use the activity?!

* Fill in the email and the password in the authentication section without quotations.
* To prevent errors that may be produced from using an absolute path, it's better to use the built-in UiPath activity "Select File" which is more user friendly.&#x20;
* As a UiPath user, it's assumed that creating new variables to store output values is familiar to you. Otherwise, follow these steps:
  * Add the "Select File" activity, and select it.
  * From its properties window, click on the **"+"** icon beside **selectedFile** in Output section, then choose **"Create Variable".** Write a unique variable name (ex; predictionFilePath) to store the selected file path, in order to use as input to the Data File in Customer churn prediction activity.
* Fill Config ID and Model ID.
* Store the customer churn prediction activity output message in a variable, in the same way we did previously.
* Use the built-in UiPath activity "Message Box" to show the message of the churn prediction activity.
* Once you hit Run, the sequence will start execution by showing a pop-up window asking you to select the data file:&#x20;

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQrhQADcJKCaO4pOXos%2F-MQrhqgC_lNzBJV3YjDq%2Fimage.png?alt=media\&token=7ea5a1ae-71c7-4f18-a8bf-5eff2cb593cc)

* If you're in Debug mode, log messages will appear on the right-hand side panel during the execution.
* After the execution is completed successfully, the following message will be shown:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQrhQADcJKCaO4pOXos%2F-MQrhv2dH73Vu1v4TVlW%2Fimage.png?alt=media\&token=61701281-9ab7-4e3d-b537-bde3ef37d8b3)

* That's great, lets check the created file:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQrhQADcJKCaO4pOXos%2F-MQrhyvpaw1UdEQtcn-f%2Fimage.png?alt=media\&token=58d8e867-07d3-4b55-a6b9-814cd1ae52b4)

If you open the file, you will notice the two columns:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MQrkQcZWWoKtW6NypD4%2F-MQroHff393dr4lbObM2%2Fimage.png?alt=media\&token=3da8a92f-b4c9-4eb4-9158-94f486b48923)


# Online Lead Scoring Package

Averroes.ai Online Lead Scoring package on UiPath

In business, not all leads are equal. Therefore, it is a necessity to build a ranking system that can prioritize the most willing customers from those who aren’t. So, sales teams do not lose time with unqualified leads and focus on qualified leads, hence, optimizing lead converting rate and revenue.

You can get Averroes.ai Online Lead Scoring package in two ways:

* Download it directly from the UiPath marketplace:

  After downloading the package, move it to the packages' path you prefer to find it later easily.

&#x20;         // here add screenshot of the package page on uipath marketplace

* Search for it via Go\* while adding a new package:

{% hint style="info" %}
Downloadable packages on UiPath marketplace are automatically listed in UiPath Studio "Go" source.\
In the Community edition, you will find it under "Connect" source.\
If you don't find either "Go" or "Connect", you can add it by yourself: \
from settings ->Manage sources -> Add  <https://gallery.uipath.com/api/v2> as a source; as shown in the following figure.
{% endhint %}

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUI3CsiknrrjEYtt15g%2F-MUIR3RpB8LwRYf24WbX%2Fimage.png?alt=media\&token=2347d7ff-862c-4088-b361-cd7c80718212)

In both methods, search for the package in the appropriate source or in all packages.

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUI3CsiknrrjEYtt15g%2F-MUIRq3kdwId2HGs5OHV%2Fimage.png?alt=media\&token=73152aab-8ab8-4c6c-874f-108de9cf50b3)

Now you can use the two activities under Averroes Online Lead Scoring Package, [Online Lead Scoring Training Activity](/averroes-uipath-integration/online-lead-scoring-package/online-lead-scoring-training-activity), and [Online Lead Scoring Prediction Activity](/averroes-uipath-integration/online-lead-scoring-package/online-lead-scoring-prediction-activity).[<br>](https://uipathlearn.averroes.ai/averroes-uipath-integration/signup)


# Online Lead Scoring Training Activity

Averroes online lead scoring training activity on UiPath

Averroes online lead scoring training activity enables you to train a lead scoring model based on your data directly from UiPath without any required coding.

In this tutorial, we will go with detailed steps on how to use this activity:

* Assuming you already have a project, create a new sequence:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUISLVYWt-FdOaXw5mI%2F-MUISrz9ChQtGcqGEZDW%2Fimage.png?alt=media\&token=9cace30f-9402-4993-a823-5a27851abc72)

* If you haven’t downloaded the packages, download them. Afterwards, search for online lead scoring training activity.

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUISLVYWt-FdOaXw5mI%2F-MUITPA3iHvkP7ljO8qj%2Fimage.png?alt=media\&token=0ee11195-7060-435d-9895-60563f6a4c50)

First, let's explore the details of this activity:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUISLVYWt-FdOaXw5mI%2F-MUITi_TB0lftZDF3QXr%2Fimage.png?alt=media\&token=1967c30c-9a3c-416e-8ca3-879202642412)

**Authentication:** On the right-hand side (properties panel); you should fill in your Averroes account info: **Email** and **Password&#x20;*****without quotations.***

**Input:**

* **Dataset File:** path of the file contains the data you want to train the online lead scoring model on it; data should be in Tabular (structured in CSV format).
* **Lead Status Column:** column name that presents the lead status in your dataset file; should encapsulate in double quotations.
* **Training Time:** in minutes; as an integer.

**Output:**

* **Message**: a message that indicates the status of the training; success, failure, etc.
* **Performance Results:** a message contains the performance metrics of the generated model (accuracy, f1-score, precision, and recall).

### Now, how to use the activity?!

* Fill the email and the password in the authentication section
* To prevent errors that may be produced from using an absolute path, it's better to use the built-in UiPath activity "Select File" which is more user friendly.&#x20;
* As a UiPath user, it's assumed that creating new variables to store output values is familiar to you. Otherwise, follow these steps:
  * Add the "Select File" activity, and select it.
  * From its properties window, click on the **"+"** icon beside **selectedFile** in Output section, then choose **"Create Variable".** Write a unique variable name (ex; trainingFilePath) to store the selected file path, in order to use as input to the Dataset File in online lead scoring training activity.&#x20;

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUISLVYWt-FdOaXw5mI%2F-MUIUzTJ3wes9o5o-rAj%2Fimage.png?alt=media\&token=eb0f6813-b8dd-46ad-b05a-fb83fd625a53)

* Fill in the other inputs.
* Store the online lead scoring activity output messages in variables, in the same way we did previously.
* Use the built-in UiPath activity "Message Box" to show each message of the online lead scoring training activity.

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUIXvEkzGVKnXYg6yMG%2F-MUIYPxuvFhrAONlYgqS%2Fimage.png?alt=media\&token=5f1de29c-d966-428d-b3c2-049ea75d0fef)

* Once you hit Run, the sequence will start execution by showing a pop-up window asking you to select the dataset file:&#x20;

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUIZFXjbZM29l_ItRQ-%2F-MUIei_dSlXyXPI-_kFy%2Fimage.png?alt=media\&token=e3164dee-f145-48ea-aeda-8f8f2a08f1dc)

* If you're in Debug mode, log messages will appear on the right-hand side panel during the execution.

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUIZFXjbZM29l_ItRQ-%2F-MUIfAPtdaW8EdmlrDJU%2Fimage.png?alt=media\&token=1e7f1123-d92d-4689-bdf0-769944a6788f)

* After the execution is completed successfully, the following two messages will be shown:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUIZFXjbZM29l_ItRQ-%2F-MUIg0pKJ-9Tt1L1uW49%2Fimage.png?alt=media\&token=e3c34325-b525-4f30-9bb9-bc893a0cd7c1)

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUIZFXjbZM29l_ItRQ-%2F-MUIg5bUF0VA7ROAHru3%2Fimage.png?alt=media\&token=c2c24244-b847-4f33-a44e-1e5a6f84a2a4)

* That's great, now you are aware of your generated model performance, but check your email (which was used to create your Averroes account) to find more details.
* Sample email:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUIgEWTkR6Mkfv0-PPA%2F-MUJ9NvJ0izd-L-_8Azi%2Fimage.png?alt=media\&token=581431b8-0fb6-4924-8af1-e83ecf2ca8ed)

* Your model is identified by  "Config ID" and "Model ID" values sent in the email. These need to be provided in the prediction activity to make predictions. More details are available in the next section.
* From the dataset link sent in the email, you can reach the training dataset used for this model, which provides many features:
  * Understand and get more insight into your data via Preview and Visualization tabs.
  * Perform different training executions based on different settings.
  * Compare different results of the executions and choose the best to use in prediction.
  * From the Prediction tab, for the selected model, you can test the prediction of a single sample.
  * Generated Model-ID and Config-ID from the integration section in the Prediction tab; so you can copy them from there directly to use in UiPath Online Lead Scoring prediction activity.

Following is a set of screenshots of these amazing features:

![Preview tab](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUIgEWTkR6Mkfv0-PPA%2F-MUJAJQR-jHvaG9k7eoD%2Fimage.png?alt=media\&token=569f1a20-dbb6-4377-9bb1-90ab9da216e9)

![Visualization tab](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUIgEWTkR6Mkfv0-PPA%2F-MUJATYPCAq8a4LauoUF%2Fimage.png?alt=media\&token=20d4976f-dedc-437f-bb08-378e41d21421)

![Train tab](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUIgEWTkR6Mkfv0-PPA%2F-MUJAfyszMZeiKr5b29B%2Fimage.png?alt=media\&token=a86e5955-6241-4753-840b-5aeb9d2d7ca2)

![Train tab - test model](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUIgEWTkR6Mkfv0-PPA%2F-MUJBRcz1UTQGLtCP_lv%2Fimage.png?alt=media\&token=87a0cbf6-1ea8-47ac-bdce-ed1cc87c91db)

![Prediction tab](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUIgEWTkR6Mkfv0-PPA%2F-MUJBlNRkELhwwB296Mq%2Fimage.png?alt=media\&token=aee31215-4979-48a8-93ed-022e3a795e63)

![Prediction tab - UiPath integration section](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUJBp2BVUcPkN-0IsXX%2F-MUJCAxpE_LULC7LfIHf%2Fimage.png?alt=media\&token=aa72ff5c-64b2-4d08-97bf-92cd34a56a05)


# Online Lead Scoring Prediction Activity

Averroes Online Lead Scoring prediction activity on UiPath

Averroes online lead scoring prediction activity enables you to predict your qualified leads and score them using the lead scoring model trained on your data directly from UiPath easily without any required coding.

In this tutorial, we will go with detailed steps on how to use this activity:

* Assuming you already have a project, create a new sequence:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUJCKaf_Pj8GHvNdltt%2F-MUJD40xZeRYcHZx7Z2h%2Fimage.png?alt=media\&token=5889f215-b7e8-43c4-a1c5-2d385f6199df)

* If you haven’t downloaded the packages, download them. Afterward, search for online lead scoring prediction activity:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUJCKaf_Pj8GHvNdltt%2F-MUJDP9i5nNAWj6a-Ec6%2Fimage.png?alt=media\&token=61ef0938-378d-44c8-95d7-8263c57e8a94)

First, let's explore the details of this activity:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUJCKaf_Pj8GHvNdltt%2F-MUJEARqs5Kw40_MJmVj%2Fimage.png?alt=media\&token=75508b13-80ce-48a4-89af-0ae1e74864ba)

**Authentication:** On the right-hand side (properties panel); you should fill in your Averroes account info: **Email** and **Password** ***without quotations.***

**Input:**

* **Data File:** path of the file contains the data you want to predict its lead status and it's score.
  * Data should be in Tabular (structured in CSV format)
  * In the same format of the dataset file used in training the model. The only exception is, that the prediction file doesn't contain the lead status column.
* **Config ID:** Config ID generated from training the lead scoring model on your data.
* **Model ID:** Model ID generated from training the lead scoring model on your data.

**From where to get Conig ID and Model ID:**

* The email sent to you after your training completed successfully
* Your account on Averroes (link of the desired training will sent also in the email), as the following figure shows:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUJE_ev18FrXDirYCPo%2F-MUJEigZY1UYTERBKeLm%2Fimage.png?alt=media\&token=40284678-2245-43e5-8580-13fa61673c41)

Where your training execution is listed here with its settings and performance results. If you click on the Test button, it will redirect you to the prediction tab, where you can test prediction of one sample, in addition to the integration section, which provides to you the Config ID and Model ID generated from this training execution.

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUJE_ev18FrXDirYCPo%2F-MUJEvDMBSPAke-oeZR3%2Fimage.png?alt=media\&token=c4408082-c414-4398-88fd-d97a43f20643)

**Output:**

* **Message**: a message that indicates the status of the prediction; success, failure, etc

### Now, how to use the activity?!

* Fill in the email and the password in the authentication section without quotations.
* To prevent errors that may be produced from using an absolute path, it's better to use the built-in UiPath activity "Select File" which is more user friendly.&#x20;
* As a UiPath user, it's assumed that creating new variables to store output values is familiar to you. Otherwise, follow these steps:
  * Add the "Select File" activity, and select it.
  * From its properties window, click on the **"+"** icon beside **selectedFile** in Output section, then choose **"Create Variable".** Write a unique variable name (ex; predictionFilePath) to store the selected file path, in order to use as input to the Data File in online lead scoring prediction activity.
* Fill Config ID and Model ID.
* Store the online lead scoring prediction activity output message in a variable, in the same way we did previously.
* Use the built-in UiPath activity "Message Box" to show the message of the online lead scoring&#x20;

  &#x20;prediction activity.
* Once you hit Run, the sequence will start execution by showing a pop-up window asking you to select the data file:&#x20;

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUJE_ev18FrXDirYCPo%2F-MUJFNs3Pduytt53ttHV%2Fimage.png?alt=media\&token=3be0bd05-6699-4744-a942-b1ca9a4f2810)

* If you're in Debug mode, log messages will appear on the right-hand side panel during the execution.
* After the execution is completed successfully, the following message will be shown:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUJE_ev18FrXDirYCPo%2F-MUJFe0FP6e7VVLt-_rQ%2Fimage.png?alt=media\&token=215aecfe-df21-4592-b9c6-dbce627020ac)

* That's great, lets check the created file:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUJE_ev18FrXDirYCPo%2F-MUJFuOC_EDYAzbiS_Af%2Fimage.png?alt=media\&token=34e2616d-a702-4aec-a4c1-11daacdebad2)

If you open the file, you will notice the two new added columns:

![](https://2456159211-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQpjNEf_Aoh1McW8mau%2F-MUJE_ev18FrXDirYCPo%2F-MUJGh9S0DIwOoBX8cSP%2Fimage.png?alt=media\&token=5120949a-2d90-4201-99bf-e63737265d3a)


