> For the complete documentation index, see [llms.txt](https://uipathlearn.averroes.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://uipathlearn.averroes.ai/averroes-uipath-integration/online-lead-scoring-package/online-lead-scoring-prediction-activity.md).

# Online Lead Scoring Prediction Activity

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:

![](/files/-MUJD40xZeRYcHZx7Z2h)

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

![](/files/-MUJDP9i5nNAWj6a-Ec6)

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

![](/files/-MUJEARqs5Kw40_MJmVj)

**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:

![](/files/-MUJEigZY1UYTERBKeLm)

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.

![](/files/-MUJEvDMBSPAke-oeZR3)

**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;

![](/files/-MUJFNs3Pduytt53ttHV)

* 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:

![](/files/-MUJFe0FP6e7VVLt-_rQ)

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

![](/files/-MUJFuOC_EDYAzbiS_Af)

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

![](/files/-MUJGh9S0DIwOoBX8cSP)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://uipathlearn.averroes.ai/averroes-uipath-integration/online-lead-scoring-package/online-lead-scoring-prediction-activity.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
