# Custom Expectations

**How to Create a Expectation Template**

Navigate to Template Tab to Create an Expectation Template

<figure><img src="/files/kBneRfVyxQEEa7lt2JbB" alt=""><figcaption><p>Expectation Template</p></figcaption></figure>

Click on the + sign at the bottom right corner

Add Expectation statement to generate SQL Query

Select the Template Type as Expectation Template&#x20;

Check the details once the SQL statement is generated

Click on Submit to Continue

<figure><img src="/files/NZU01GtCmUFdveNRfmwN" alt=""><figcaption><p>Expectation Statement</p></figcaption></figure>

Templated Expectation has been created


---

# 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.vdalive.com/how-to-guides/data-quality/expectations/custom-expectations.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.
