# AI assistant

Formula generation is one AI question away.&#x20;

To generate Formulas with AI, simply ask your question in natural language to the AI assistant located in the multi-line Formula editor.&#x20;

To enter the multi-line editor, click the multi-line Formula editor button.

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

Once you're in the multi-line Formula editor open the AI assistant and start asking your questions to generate Formulas.

<figure><img src="/files/RVVbXnSMocGOcoyQBj9c" 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.quadratichq.com/formulas/ai-assistant.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.
