# Custom Commands

Using the Tabnine Chat functionality, you can create custom commands to generate tests with comprehensive or specific instructions.

Go to the cog in the upper righthand corner and click.

Scroll down to where it says **Define custom commands**.

Press <mark style="background-color:blue;">**Add**</mark>**.**

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

At this point, you can type in or paste your instructions for Tabnine within the **Define new Command** window, specifically in the **Enter the prompt template** text box.

When you're ready, hit <mark style="background-color:blue;">**Save**</mark>.

<figure><img src="/files/YTALjOBqKWtsYhZdl0Y2" alt="Paste your instructions in the &#x27;Enter the prompt template&#x27; box, then hit Save for custom commands in Tabnine"><figcaption><p>Paste your instructions in the 'Enter the prompt template' box, then hit Save for custom commands in Tabnine</p></figcaption></figure>

Save this code in your current, or a new, test file.


---

# 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.tabnine.com/main/getting-started/tabnine-testing/custom-commands.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.
