# Build a Data model

## The Template method

<figure><img src="/files/ge6uV4JhQ0hasplY8jPd" alt=""><figcaption></figcaption></figure>

* To begin click on the + Build a data model button, then click on the Template option.

<figure><img src="/files/9WG6MtpElAAR0fgrYBwx" alt=""><figcaption></figcaption></figure>

* You can also click on the ⋯ icon at the top right, then click on the Template option.

### Step 1 - Choose a Template

<figure><img src="/files/QIh0epUd7YEVzNYcJEI8" alt=""><figcaption></figcaption></figure>

* The template setup pop-up will appear.
* All the most relevant templates that contain your [Connection sources](/docs/connect/list-of-your-connections.md) will be displayed in the default list.&#x20;

<figure><img src="/files/5wJOUoZxZyj33ViCROcR" alt=""><figcaption></figcaption></figure>

* Click on the dropdown box and click All templates to see more available templates.

{% hint style="info" %}
Check the [Data Templates](https://cigro-guidance-docs.gitbook.io/cigro-data-templates/) for the template you want that suits your needs.
{% endhint %}

### Step 2 - Check the details&#x20;

<figure><img src="/files/6JqRwkGVc1qdO0PoUJOu" alt=""><figcaption></figcaption></figure>

* In Step 2 you can check which Data source supports in this template
* What kind of Type and Column Name for the Data source
* Click the Next button to continue.

### Step 3 - Select the Connections

<figure><img src="/files/slkLhTCpGev915qvSVHA" alt=""><figcaption></figcaption></figure>

* All your Connections available for this template will be displayed for you to select or unselect.

<figure><img src="/files/YjUECVVEQJoeVUF8Pfq6" alt=""><figcaption></figcaption></figure>

* You can preview your data model before building.
* Click the Done button to finish.
* Click Previous to go back to the previous step.

***

<figure><img src="/files/zELueRgf0u783KF3krhd" alt=""><figcaption></figcaption></figure>

* Your data model will be displayed after the build is successful.

***

## The Query method

<figure><img src="/files/6pq5bHScIf2MfGGAXDB3" alt=""><figcaption></figcaption></figure>

* To begin click on the + Build a data model button, then click on the Query option.

<figure><img src="/files/KhKotdFDLteVgJQXCu1g" alt=""><figcaption></figcaption></figure>

* You can also click on the ⋯ icon at the top right, then click on the Query option.

<figure><img src="/files/qFVvqn1PHsNb5xZ4UNBm" alt=""><figcaption></figcaption></figure>

* A Build tab of the data model will be displayed.
* All other tabs will be disabled.

<figure><img src="/files/Mu6JYjoBhD0AKO2wFPhi" alt=""><figcaption></figcaption></figure>

* You can begin to query the same as in [Build - Data model](/docs/data/data-model-details/build-data-model.md).

{% hint style="info" %}
You can use our [AI query](/docs/data/build-and-modify-a-data-model-with-our-ai-query.md) to help you with the query.
{% endhint %}

<figure><img src="/files/kIO9sOWwxcdy9S5ztxfD" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
You have to save your query when leaving or that newly created data model will be deleted.
{% endhint %}

<figure><img src="/files/7qvKXumtbzphPTvqK3Xy" alt=""><figcaption></figcaption></figure>

* After querying and saving successfully, your newly constructed data mode will be ready to use.


---

# 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://endash-guidance-docs.gitbook.io/docs/data/build-a-data-model.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.
