# CRM Deal Prediction -------------------------------------------------------------------------------- title: "Introduction" description: "Create an ML pipeline that analyzes historic Zoho CRM data and predicts the likeliness of a successful deal using the Catalyst QuickML components." last_updated: "2026-11-04T10:10:44.000Z" source: "https://docs.catalyst.zoho.com/en/tutorials/crm-deal-prediction/introduction/" service: "All Services" -------------------------------------------------------------------------------- # CRM Deal Prediction # Introduction This tutorial will guide you through building a machine learning model using **[Catalyst QuickML](https://docs.catalyst.zoho.com/en/quickml/getting-started/introduction/)** to predict potential deals by analyzing data from Zoho CRM. A sample dataset is provided, which can be used as the data source for the model. **Stage 1: Preprocess the Dataset** Start by cleaning and **[preparing the dataset](https://docs.catalyst.zoho.com/en/quickml/help/data-preprocessing/data-cleaning/)** to ensure it is suitable for training. This involves handling missing values, encoding categorical fields, and applying any necessary data transformations. **Stage 2: Build the Data Pipeline** Create a **[data pipeline](https://docs.catalyst.zoho.com/en/quickml/help/create-data-pipeline/)** using Catalyst QuickML. Use **[node operations](https://docs.catalyst.zoho.com/en/quickml/help/data-preprocessing/data-cleaning/)** to manage tasks such as data cleaning, encoding, and feature engineering. This reusable pipeline ensures consistent preprocessing for all future model training. **Stage 3: Build the ML Pipeline** Construct the **[ML pipeline](https://docs.catalyst.zoho.com/en/quickml/help/create-ml-pipeline/)** by connecting the processed data from the data pipeline. Select an appropriate **[ML algorithms](https://docs.catalyst.zoho.com/en/quickml/help/ml-algorithms/classification-algorithms/)**, configure its parameters, and initiate the training process. QuickML automatically evaluates the model after training to validate its performance. **Stage 4: Deploy the Model via Endpoint** Once trained, generate an **[endpoint URL](https://docs.catalyst.zoho.com/en/quickml/help/pipeline-endpoints/)** within QuickML. This endpoint allows external applications to send input data and receive real-time predictions from the CRM Deal Prediction model. The final output, after creating all of the required data and ML pipelines in the **[Catalyst console](https://console.catalyst.zoho.com/baas/index)**, will look like this: ![crm-deal-1.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-1.webp) -------------------------------------------------------------------------------- title: "Prerequisites" description: "Create an ML pipeline that analyzes historic Zoho CRM data and predicts the likeliness of a successful deal using the Catalyst QuickML components." last_updated: "2026-11-04T10:10:44.000Z" source: "https://docs.catalyst.zoho.com/en/tutorials/crm-deal-prediction/prerequisites/" service: "All Services" related: - Machine Learning Algorithms (/en/quickml/help/ml-algorithms/classification-algorithms/) -------------------------------------------------------------------------------- # Prerequisites Because this tutorial is focused solely on **[Catalyst QuickML](https://docs.catalyst.zoho.com/en/quickml/getting-started/introduction/)**, all tasks—including building data and ML pipelines, creating models, and training them for predictions—will be performed within the **[Catalyst console](https://console.catalyst.zoho.com/baas/index)**. Before getting started, download the following dataset: **[CRM_Deal_Prediction_Sample_Dataset](https://workdrive.zohoexternal.com/external/32b8cbea341ba7a6789c6db1c1e8a58b58a05db3cb23c2ce04e3cd0b9ad4587a)** This tutorial walks you through cleaning, refining, and preprocessing the dataset, which will be uploaded later to Catalyst QuickML for model training. -------------------------------------------------------------------------------- title: "Create a project" description: "Create an ML pipeline that analyzes historic Zoho CRM data and predicts the likeliness of a successful deal using the Catalyst QuickML components." last_updated: "2026-11-04T10:10:44.000Z" source: "https://docs.catalyst.zoho.com/en/tutorials/crm-deal-prediction/create-a-project/" service: "All Services" related: - Catalyst Projects (/en/getting-started/catalyst-projects) -------------------------------------------------------------------------------- # Create a Project Let’s create a Catalyst project from the **[Catalyst console](https://console.catalyst.zoho.com/baas/index)**. 1. Log into the *Catalyst console* and click **Create new Project**. ![crm-deal-2.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-2.webp) 2. Enter the project’s name as “CRMDealPrediction” in the pop-up window that appears. ![crm-deal-3.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-3.webp) 3. Click **Create**. Your project will be created and opened. ![crm-deal-4.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-4.webp) -------------------------------------------------------------------------------- title: "Upload the dataset" description: "Create an ML pipeline that analyzes historic Zoho CRM data and predicts the likeliness of a successful deal using the Catalyst QuickML components." last_updated: "2026-11-04T10:10:44.000Z" source: "https://docs.catalyst.zoho.com/en/tutorials/crm-deal-prediction/upload-dataset/" service: "All Services" related: - Create Your First pipeline (/en/quickml/help/create-ml-pipeline) -------------------------------------------------------------------------------- # Upload the Dataset Begin by uploading the dataset in Catalyst QuickML using the available **[dataset connectors](https://docs.catalyst.zoho.com/en/quickml/help/data-connectors/zoho-apps/)**. 1. Navigate to the QuickML service in the Catalyst console and click **Start Exploring**. ![crm-deal-5.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-5.webp) 2. Navigate to the **Datasets** component and click **Import Dataset**. An Import Dataset pop-up will be displayed. ![crm-deal-6.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-6.webp) 3. In the *Import Dataset* pop-up window, scroll down to *Files* and click **Upload File**. ![crm-deal-7.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-7.webp) Upload the Zoho_CRM_Deal_Prediction_Sample dataset that you have downloaded already. Mention the Quotes Type as "Double Quotes (")" and Escape Character as "Backslash (\)" and click **Next**. ![crm-deal-8.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-8.webp) The name of the dataset will be auto-populated based on the uploaded file. You can edit it, if required, and click **Upload**. ![crm-deal-9.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-9.webp) The dataset is now uploaded successfully. ![crm-deal-10.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-10.webp) The dataset will be displayed in the *All Datasets* section. You can click on the dataset name to view the dataset's details. ![crm-deal-11.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-11.webp) On the dataset Details page, you can view the **[profile, preview](https://docs.catalyst.zoho.com/en/quickml/help/data-profiler-and-viewer/#what-is-data-profiling)** and visualization chart of the dataset. The dataset's details and its profile can be seen in the below screenshot. ![crm-deal-12.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-12.webp) ![crm-deal-13.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-13.webp) You can create a sample pie chart with stage as an X-axis. The data visualization with a sample pie chart and preview of the dataset can be seen below. -------------------------------------------------------------------------------- title: "Create a data pipeline" description: "Create an ML pipeline that analyzes historic Zoho CRM data and predicts the likeliness of a successful deal using the Catalyst QuickML components." last_updated: "2026-11-04T10:10:44.000Z" source: "https://docs.catalyst.zoho.com/en/tutorials/crm-deal-prediction/create-data-pipeline/" service: "All Services" related: - Data Cleaning (/en/quickml/help/data-preprocessing/data-cleaning) - Data Transformation (/en/quickml/help/data-preprocessing/data-transformation) - Data Profiler and Viewer (/en/quickml/help/data-profiler-and-viewer/) -------------------------------------------------------------------------------- # Create a data pipeline Since the dataset is uploaded, proceed with creating a data pipeline with the dataset. 1. Navigate to the **Datasets** component in the left menu and click the **Zoho_CRM_Deal_Prediction_Sample** dataset. ![crm-deal-14.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-14.webp) 2. In the *Dataset Details* page, click on **Create Pipeline** in the top-right corner of the page. ![crm-deal-15.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-15.webp) 3. Enter the pipeline name as "Deal Prediction Data Pipeline" and click **Create Pipeline**. ![crm-deal-16.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-16.webp) The **[pipeline builder interface](https://docs.catalyst.zoho.com/en/quickml/help/pipeline-builder-interface/walkthrough/#pipeline-builder-interface-1)** will be opened as shown in the screenshot below. ![crm-deal-17.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-17.webp) You will be performing the following set of data pre-processing operations in order to clean, refine, and transform the datasets, and then execute the data pipeline. Each of these operations involve individual **[data nodes](https://docs.catalyst.zoho.com/en/quickml/help/data-preprocessing/data-cleaning/)** that are used to construct the pipeline. ## Select fields for data pre-processing First, select the required fields in the dataset to modify them further. 1. Expand the **Data Cleaning** component in the *Operations* menu. Drag and drop the **Select/Drop** node in the pipeline builder and make a connection with the Source node. 2. In the *Select/Drop* section in the right panel, select the columns **"Record ID," " Closing Date", "Deal Name," "Currency," "Checkbox2"and "Created Time"**, and choose the operation **"Drop"** to drop the columns from the dataset, then click **Save**. In our case, these columns are generic, serving no purpose to be used further so we are removing them. ![crm-deal-18.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-18.webp) # Handle missing values To enhance the quality of the data used for training, you will filter out the non-empty data for the required columns using the **[Filter nodes](https://docs.catalyst.zoho.com/en/quickml/help/data-preprocessing/data-cleaning/#filter)** . This process eliminates irrelevant or incomplete data, ensuring that only valuable information is used for model development. Because the **Stage** is one of the key columns for our model training, you will be adding a filter to that column to avoid empty cells in it. If you want to process the unmatched data from the filter, choose **Show unmatched records** as a secondary output so you will get another output for unmatched data. ![crm-deal-19.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-19.webp) ## Fill columns As a part of data pre-processing, we will need to check if there are missing values in any of the columns in the datasets and fill them. We will be using the **[Fill Columns](https://docs.catalyst.zoho.com/en/quickml/help/data-preprocessing/data-cleaning/#fill-columns)** node for executing this operation. 1. Expand the **Data Cleaning** component in the *Operations* menu. Drag and drop the **Fill Columns** node into the pipeline builder and make a connection with the previous **Filter** node as shown below. ![crm-deal-20.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-20.webp) 2. From the drop-down named *Select Column*, choose **Stage**. In the Select Column Datatype field, choose **Text** Update the Fill with field as **Not mentioned**, and select the criteria as **Stage**, and **Contains** is **None** in the dropdown, then click **Save**. Likewise, fill the column for the " Pipeline" and Amount" field with "Is empty" criteria, then click Save. ![crm-deal-21.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-21.webp) As of now, the dataset is prepared, and we have configured the required nodes for this tutorial. Finally, make a connection between the last configured node **(Fill Columns)** and the **Destination** node. Click **Execute**. ![crm-deal-22.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-22.webp) The data pipeline will start the execution and the status of the execution will be displayed on the pipeline Details page as shown in the screenshot below. Once the pipeline has completed the execution, the execution status will display "**Success**". ![crm-deal-23.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-23.webp) Click on **Execution Stats** to view more details about each stage of the execution in detail. ![crm-deal-24.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-24.webp) Now, we have prepared our dataset, which can be used to develop the ML model. We will be discussing more about the ML pipeline creation in the next section. > **Note :** The data pipeline can be reused to create multiple ML experiments for varied use cases within your Catalyst project. -------------------------------------------------------------------------------- title: "Create an ML Pipeline" description: "Create an ML pipeline that analyzes historic Zoho CRM data and predicts the likeliness of a successful deal using the Catalyst QuickML components." last_updated: "2026-11-04T10:10:44.000Z" source: "https://docs.catalyst.zoho.com/en/tutorials/crm-deal-prediction/create-ml-pipeline/" service: "All Services" related: - ML Algorithms in QuickML (/en/quickml/help/ml-algorithms/classification-algorithms) - Operations in QuickML (/en/quickml/help/operations-in-quickml/encoding) -------------------------------------------------------------------------------- # Create an ML pipeline In this section, we will be building a prediction ML model using the preprocessed dataset from the previous section. This dataset will be the input to the **[ML pipeline builder](https://docs.catalyst.zoho.com/en/quickml/help/create-ml-pipeline/)**, which enables you to define the model's architecture and select a target column for prediction. **To create an ML pipeline, make sure to follow the steps below:** 1. Navigate to the *Pipelines* component in the left menu and click **Create Pipeline**. ![crm-deal-25.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-25.webp) ![crm-deal-26.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-26.webp) 2. In the pop-up that appears, select "**Prediction**" as the pipeline type, name the pipeline as "**Deal Prediction ML Pipeline**", and choose the input dataset as **Zoho_CRM_Deal_Prediction_Sampl**e. In our case, the target column should be "**Stage**". The model name will be auto-populated based on the pipeline name. Click **Create**. ![crm-deal-27.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-27.webp) 3. The *pipeline Details* page will be displayed as shown in the screenshot below. ![crm-deal-28.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-28.webp) Now that we have created our ML pipeline, we will proceed to configure the pipeline by defining the nodes in the ML pipeline builder interface. ## Encoding categorical columns Because our target column "**Stage**", contains categorical data of type String, we will encode them for further ML training standards. Please make sure to follow the below steps to encode the columns. 1. In the Operations menu, navigate to *ML tab > ML operations > Encoding > Label Encoder*. Drag and drop the **[Label Encoder](https://docs.catalyst.zoho.com/en/quickml/help/operations-in-quickml/encoding/#ordinal-encoder)** node to the ML pipeline builder interface. ![crm-deal-29.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-29.webp) 2. Navigate to *ML tab > ML operations > Encoding > One-Hot Encoder*. Drag and drop the **One-Hot encoder node** to the ML pipeline builder interface. In the configuration section on the right panel, choose the columns as "**Pipeline**" and click **Save**. ![crm-deal-30.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-30.webp) These encoding operations will convert the column values of type String to Integer, while maintaining the order and preserving data accuracy. ## Normalize the columns Because the values of all the features are in various ranges, we will use the **Mean-Std Normalization** component to scale down the values of the features to a common range, typically between 0 and 1. Navigate to *ML tab > ML operations > Normalization*. Drag and drop the **Mean-Std Normalization node** to the ML pipeline builder interface. In the configuration box on the right panel, choose "**Amount**" and click **Save**. Once normalization is applied, the ML pipeline builder page will be displayed as below: ![crm-deal-31.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-31.webp) ## ML algorithm and hyperparameter tuning For any ML model, it's necessary to implement an ML algorithm based on which the model will be trained. In this tutorial, we will be implementing the **Random-Forest Classification** algorithm to configure the tuning parameters for the ML model to ensure it is optimized for our pre-processed dataset. 1. In the Operations menu, navigate to* ML tab > ML operations > Algorithm > Classification*. Drag and drop the **Random-Forest Classification node** into the pipeline builder. The node will be automatically connected to the **Destination** node. Make an input connection with the **Mean-Std Normalization** and the **Random-Forest Classification** node. ![crm-deal-32.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-32.webp) 2. For the *Random-Forest Classification* node, we will go with the default configuration and click **Save**. Now, we have completed making the required node connections and configurations. Proceed to execute the pipeline by clicking **Execute** for further evaluation and deployment. ![crm-deal-33.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-33.webp) Click **Execution Stats** to view more details about each stage of the execution in detail. ![crm-deal-34.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-34.webp) Upon successful execution of the ML pipeline, the Deal Prediction model is created and will be displayed under the Models section. You can view the details of the model on the model's Details page by clicking on the model name. ![crm-deal-35.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-35.webp) -------------------------------------------------------------------------------- title: "Create an Endpoint" description: "Create an ML pipeline that analyzes historic Zoho CRM data and predicts the likeliness of a successful deal using the Catalyst QuickML components." last_updated: "2026-11-04T10:10:44.000Z" source: "https://docs.catalyst.zoho.com/en/tutorials/crm-deal-prediction/create-endpoint/" service: "All Services" related: - Pipeline Endpoints (/en/quickml/help/pipeline-endpoints) -------------------------------------------------------------------------------- # Create an endpoint We will now create an endpoint for the above Deal Prediction model to allow external applications to interact with the model seamlessly and get predictions. 1. Navigate to the *Endpoints* component in the left menu and click **Create Endpoint**. ![crm-deal-36.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-36.webp) 2. Name the endpoint as "**Deal prediction**", select the endpoint type as "**ML Model**", choose the model as **Deal Prediction ML pipeline model**, the ML model that we created in the previous step, and click **Create Endpoint**. ![crm-deal-37.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-37.webp) 3. On the endpoint's details page, you can test the model by providing a sample request and click **Get Result**. For the below request, the model predicts the stage of the deal as Closed Won. ![crm-deal-38.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-38.webp) 4. Click **Publish** and use the endpoint URL to integrate the ML model with any other applications. ![crm-deal-39.webp](https://catalyst-docs-development.zohostratus.in/images/tutorials/crm-deal-prediction/crm-deal-39.webp) > **Note:** You can also check out this document to implement pipeline authentication to ensure secured access to endpoints, the ML models, and datasets.