# Auto Territory Creation

Users can create territories automatically based on a shape/excel file and selected alignment criteria to get the desired number of balanced territories on the map. To do this, users can go to Territory Management and use the option of ‘By File’ to upload a Shapefile or an Excel file to get it plotted on the map. Users can also choose the option of ‘By Overlay’ to plot a saved shape/excel file on the map.

![](https://3017709171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPnKwzedQAh8ohtXMDq%2Fuploads%2FnCaPnIZLrKqqdtIjaeFQ%2FSS1%20w%20b.jpg?alt=media\&token=cd3b16be-a8a4-40b6-8ae6-ab527885e2e2)

User can go to the ‘Plot Records Card’ and select the required ‘DataSource’ and the respective ‘View’ to plot the same on the map. These records will be distributed among the territories that are to be created.

<figure><img src="https://3017709171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPnKwzedQAh8ohtXMDq%2Fuploads%2Fid3VjYrbVrQr3OOHSNp9%2Fimage.png?alt=media&#x26;token=9da55e65-14ec-4d23-87c2-68e622f7f574" alt=""><figcaption></figcaption></figure>

{% hint style="info" %} <mark style="color:blue;">**Note:**</mark> *Only those records that lie within the regions selected will be considered while creating multiple balanced territories.*
{% endhint %}

Using the options of ‘Select’ or ‘Multi-select’ from the ‘Alignment Tool’ user can choose the required regions and right click to select the option of ‘Create Territory’ to open the window. Here, user can select the option to ‘Create Multiple Territories’ and enter the number of territories they want to create out of the selected regions on the map. In the screenshot below, we have entered 4 for an instance.

<figure><img src="https://3017709171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPnKwzedQAh8ohtXMDq%2Fuploads%2FulJ2jcNZiAPlSjn91KaG%2Fimage.png?alt=media&#x26;token=d254e8f0-0e3b-4ae0-ab6d-e43cd14173d6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3017709171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPnKwzedQAh8ohtXMDq%2Fuploads%2FWgdFYwnhZ73GN4DswWQI%2Fimage.png?alt=media&#x26;token=67beaf9c-23d8-407c-ab1d-fb902ec1ca30" alt=""><figcaption></figcaption></figure>

This will calculate the number of records and divide the selected regions automatically to get 3 balanced territories. By default, territories will be named as Territory\_0, Territory\_1, Territory\_2 etc. User can change the names as per their requirement.

{% hint style="info" %}
***The count of records in the territories created automatically might vary slightly***
{% endhint %}

<figure><img src="https://3017709171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPnKwzedQAh8ohtXMDq%2Fuploads%2FVFe5fxm6jau3yO4ONY3P%2Fimage.png?alt=media&#x26;token=ad65a40c-a9ae-493e-876c-539c923c9e88" alt=""><figcaption></figcaption></figure>

Users can also specify a different ‘Alignment Criteria’ to divide the territories. Consider the following territories plotted by the user using a shape file.

<figure><img src="https://3017709171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPnKwzedQAh8ohtXMDq%2Fuploads%2FhOYvvbtQ7NzUaJK6TkVb%2Fimage.png?alt=media&#x26;token=f97f7d4f-c084-4d6f-807a-dc26969eabbf" alt=""><figcaption></figcaption></figure>

Using the ‘Select Multiple’ tool, the user checks on ‘Create Territory’.

<figure><img src="https://3017709171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPnKwzedQAh8ohtXMDq%2Fuploads%2Ftj2gY4pwEJ6ZnephyIIe%2Fimage.png?alt=media&#x26;token=2cc0bf93-a4df-4f3a-b453-91d76d942e94" alt=""><figcaption></figcaption></figure>

In the ‘Create Multiple Territories’ option, he specifies the number of territories to be created as 3 and selects the Alignment Criteria as Annual Revenue.

{% hint style="info" %} <mark style="color:blue;">**Note**</mark>*: The numeric column from the selected data source view will be displayed in the Alignment Criteria dropdown. Ensure that the required column is available in the selected view.*
{% endhint %}

<figure><img src="https://3017709171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPnKwzedQAh8ohtXMDq%2Fuploads%2FijRmS4hpRlxEE1nGnjLv%2Fimage.png?alt=media&#x26;token=2ff04e30-0d53-4303-a29e-52db40944a3c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3017709171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPnKwzedQAh8ohtXMDq%2Fuploads%2FollQxhoyzG7CfC8ovVzA%2Fimage.png?alt=media&#x26;token=3818d31f-6109-4c8d-ac8c-e567f42f7968" alt=""><figcaption></figcaption></figure>

Three territories are created based on the sum of annual revenue.

<figure><img src="https://3017709171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPnKwzedQAh8ohtXMDq%2Fuploads%2FFUPfs7t7D5JfC8hwIIXE%2Fimage.png?alt=media&#x26;token=e0c5a496-138f-480b-abeb-f16f068ca59e" alt=""><figcaption></figcaption></figure>

User can also set the required user as a manager for the territories processed, by clicking on the ‘Select manager’ icon.

<figure><img src="https://3017709171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPnKwzedQAh8ohtXMDq%2Fuploads%2FSOta5VucYmtOCJVtCnci%2Fimage.png?alt=media&#x26;token=a864cd43-6b75-4c39-96d1-f8dfedd8c202" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
***Users who have already been assigned as a manager for another territory will not be visible in the list of users to be selected as a manager of the territory.***
{% endhint %}

Users can also set the colors for the territories using the option of ‘Fill color’.

![](https://3017709171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPnKwzedQAh8ohtXMDq%2Fuploads%2FMXzr6YdWYbWPbOjPwdo1%2F7%20wb.jpg?alt=media\&token=64138101-e77a-43a3-ad50-12df8e243df0)

User can further choose to take an action on the territories processed on the map by using ‘Actions’. There are three Actions available

![](https://3017709171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPnKwzedQAh8ohtXMDq%2Fuploads%2FBqqe8s8AzkfneNP4v69R%2F8%20wb.jpg?alt=media\&token=35e83a3e-b681-44a9-9420-ec76aa00a9d2)

* **Create:** If the user is satisfied with the territories processed, then they can choose this option to create the territories processed on the map within the CRM.
* **Save:** If user needs to work on the territories processed to further make any changes or take an opinion on the same from a colleague, they can use this option to save the territories processed as Draft Territories within the CRM.
* **Realign:** User can further rework on the territories processed using this option. This will allow the user to revise the number of territories processed.

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


---

# Agent Instructions: 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:

```
GET https://docs.maplytics.com/features/territory-management/auto-territory-creation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
