# Create New Model

#### Configure AI Model(s) in Predict4Dynamics

Go to **Predict AI Models** in the Predict4Dynamics app. Either **create a new model record** or select ready-to-use sample models. &#x20;

### 1. Model Name

Enter a unique Model Name for identification. This name helps distinguish different predictive models you create for various CRM scenarios.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FLpSp16M0sFjE5rXjStv5%2Fimg1.png?alt=media&#x26;token=c958e687-840c-426a-835a-49209c97cd87" alt=""><figcaption></figcaption></figure></div>

### 2. Select a Table to Predict

From the Select a Table to Predict dropdown, choose the Dynamics 365 table (entity) you want the model to run predictions on.

* Supports both OOB (out-of-box) and Custom entities
* Once configured, predictions will automatically appear in the Predict4Dynamics side panel for each respective record.

This step ensures the prediction engine understands which dataset to analyze.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FOVUhw3YQQDc93QD4aQi2%2Fimg2.png?alt=media&#x26;token=adda5cee-afa3-4c59-adfe-c214d1b5e0db" alt=""><figcaption></figcaption></figure></div>

### 3. Select Existing Data to Train Your Model On

In this field, enter a FetchXML query that retrieves the historical data needed for model training.

* The FetchXML should match the entity chosen in the previous step.
* The system uses this dataset to learn from past records and generate more accurate predictions.

Optimizing your FetchXML ensures cleaner data and better model accuracy.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fzn75fPay3Ox0tQUcMI2E%2Fimg3.png?alt=media&#x26;token=87a12630-cef3-4e2b-95e6-c80120aa7e38" alt=""><figcaption></figcaption></figure></div>

### 4. Select Columns That Influence the Prediction

Choose the fields (columns) from the selected entity that directly impact the prediction outcome.

* These selected fields become the input features for model training.
* Predict4Dynamics uses these column values from the FetchXML results to understand patterns and behaviors.

Selecting high-quality influencing fields significantly improves prediction performance.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F7qoKdPz3PkbCbRvIgbUg%2Fimg4.png?alt=media&#x26;token=933ebcf1-a778-4348-b81e-b5176f754cba" alt=""><figcaption></figcaption></figure></div>

### 5. Select a Column to Predict

Pick the target column whose value you want the model to forecast.

* Example (Lead entity):
* Status → Predict whether a Lead will be *Qualified* or *Disqualified*
* Rating → Predict whether a Lead is *Hot*, *Warm*, or *Cold*

This helps automate decision-making by predicting real-time outcomes for CRM records.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F3tqQftlprnJF6Pn4Llgo%2Fimg5.png?alt=media&#x26;token=aeac0b8b-f1fc-42b6-93d5-db095b47759a" alt=""><figcaption></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FCQ4nAEUtg3PydGFP2kwD%2Fimg6.png?alt=media&#x26;token=b37a6c06-d600-46ae-87c9-5ec53740dd3e" alt=""><figcaption></figcaption></figure></div>

### 6. Prediction Settings

Prediction Trigger On

By default, Create and Update are selected.

* On Create: Prediction runs when a new record is added.
* On Update: Prediction runs when a selected influencing column is modified.

Users can customize triggers based on business needs—only Create, only Update, or both.

This setting ensures predictions are always generated at the right moment.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FOFPTOnhEmsyCA8Q4ToPB%2Fimg7.png?alt=media&#x26;token=6905e916-549e-40b8-a1e8-0ab2b257aa70" alt=""><figcaption></figcaption></figure></div>

### 7. Prediction Explainability

Enable or disable Explainable AI (XAI) insights.

* Yes: The system provides a human-readable explanation of *why* the prediction was generated.
* No: Only the predicted value is shown, without explanation.

This feature increases transparency and makes predictions easier to trust and interpret.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fq0QgbJh9ws1Y3quMNvwM%2Fimg8.png?alt=media&#x26;token=f057b8d8-309a-4918-b3b2-fb65cedd2836" alt=""><figcaption></figcaption></figure></div>

### 8. Display Prediction on Form

Select the CRM Form where you want the prediction result to appear.\
This ensures users can see predictions directly on the record form without navigating elsewhere, improving workflow efficiency.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Ff87sEhqpxYWU8kFvcMxm%2Fimg9.png?alt=media&#x26;token=6aafca52-a152-4230-bac5-0c8e59743343" alt=""><figcaption></figcaption></figure></div>

### 9. OpenAI Settings

By default:

* Model Name: gpt-model
* API Version: 2025-01-01-preview

If your Azure portal uses a different deployed model:

* Set Yes in *OpenAI Configuration Settings*
* Enter your custom Azure OpenAI model name and API version

This allows Predict4Dynamics to integrate seamlessly with your existing Azure OpenAI setup.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FhNz2TV9TpCn2fSxp0zG9%2Fimg10.png?alt=media&#x26;token=49e0e601-04af-4d98-8374-e781dc35f4d9" alt=""><figcaption></figcaption></figure></div>

{% hint style="success" %}
For any queries, reach out to us at <crm@inogic.com>
{% endhint %}
