# Entity Configuration

Follow these steps to configure Next Best Action for an entity:

1\. Go to the Next Best Action App → Click on **Configuration** → Click **New**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FSrZUmazzUUH6vJ38SCFu%2F1.%20Config%20Page%20-%20New.png?alt=media&#x26;token=95382ed0-12f6-4c8d-ad44-c3f211e8748e" alt=""><figcaption></figcaption></figure>

2. Select the Entity where you want to display Next Best Actions (Example: Lead).

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F7wRsbnGVoJcJQO1zfMwj%2F2.Config%20page%20blank.png?alt=media&#x26;token=20513501-0b3a-4b0b-a48c-8c8820dc25b1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FgJY2WEjM8i7C1P8eQT4g%2F2.1%20-%20Select%20entity%20from%20list.png?alt=media&#x26;token=86ab7ae1-705a-4e9d-baee-c69565713246" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FQ68Ko7YTfHCEkkbyVzQ6%2F2.2%20Config%20page.png?alt=media&#x26;token=610a123c-9bb8-4ef0-b04d-5bd6cbc31bec" alt=""><figcaption></figcaption></figure>

3. Select the View and define the number of past months (3–24 months) for historical data analysis. The system will analyze records in the selected view and period to learn successful patterns.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FRx4nP9zjwxoQdSz40OVX%2F4.%20Proivde%20input%20for%20no%20of%20months%203-24.png?alt=media&#x26;token=c1666673-b14e-40e0-abb3-c566e4c8d62a" alt=""><figcaption></figcaption></figure>

4. Select fields from the main entity and related entities that should be included for model training.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FzYRPmT1Y7j0Ol1vlUiXH%2F5.%20Select%20the%20fields.png?alt=media&#x26;token=82f3c3bc-ccc8-476a-945e-f70682b57243" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FCKMXR5L09Up9K8y9Zhqp%2F6.%20Select%20the%20main%20entity%20field.png?alt=media&#x26;token=08d5d9da-f63e-4f1d-82aa-16e88c77f075" alt=""><figcaption></figcaption></figure>

5. Define the Success Criteria by selecting the field and specific value that represents success (Example: Lead Status = Qualified).
6. Select Activity Types to track (Example: Email, Phone Call, Meeting). On creation or update of these activities, the system will generate a new Next Best Action.
7. Click Save and Publish.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fp3TpYdaQBOL23Uj8IZRj%2F7.%20Publish%20the%20config.png?alt=media&#x26;token=9cea87f9-b972-4e0a-b965-c9dfc33c43f8" alt=""><figcaption></figcaption></figure>

8. Once published:

* A model training job is automatically triggered, and a new Next Best Action job is created.
* Data is sent securely to Azure for training. &#x20;
* A training record is created with status updates.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F2KWa6yv2uShF4u4bBLen%2F8.%20Publishing.png?alt=media&#x26;token=02e7c336-03f7-4596-ab3e-7e7616f2c34d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F2iJ2WcHusmw5Z5EDtVcJ%2F10.Published.png?alt=media&#x26;token=80d84f72-56ed-4603-8ea0-791a0a155122" alt=""><figcaption></figcaption></figure>
