# Creating investigations

After [creating an investigation](/platform/user-guide/investigations/getting-started-with-investigations.md#creating-investigations), switch between **Visual editor** and **NQL editor** using the toggle at the top-left corner of the investigation page—to build the investigation query:

* Select [Visual editor](/platform/user-guide/investigations/creating-investigations/visual-editor.md) to use a graphical tool to build investigation queries.
* Select [NQL editor](/platform/user-guide/investigations/creating-investigations/nql-editor.md) to write investigation queries in [Nexthink Query Language (NQL)](https://docs.nexthink.com/platform/user-guide/nexthink-query-language-nql).

Alternatively, with the support of [Nexthink Assist](https://docs.nexthink.com/platform/user-guide/search-and-nexthink-assist/using-nexthink-assist#query-data-with-assist), you may build investigation queries without any prior knowledge of **Visual editor** or NQL.

{% hint style="info" %}
Install the [Nexthink Library Investigations starter](https://docs.nexthink.com/platform/library-packs/it-operations/investigations-starter-pack) pack with predefined investigations to quickly gain insights on common issues without manually writing NQL queries, or using Nexthink Assist or Visual editor to query data.
{% endhint %}

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


---

# 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.nexthink.com/platform/user-guide/investigations/creating-investigations.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.
