# SQL AI assistant

Writing SQL is now accessible for anyone who can sufficiently describe in language the data they would like to retrieve.&#x20;

The AI assistant understands your database schema so you can ask specific questions about your data and get the SQL output you want. The AI never reads your database data, only the database schema (table names, column names, column data types)

To access the AI assistant, open the SQL code editor from your SQL connection by pressing `/` and then open the AI assistant tab.&#x20;

<figure><img src="/files/u8pvYsd6aZTHF5nY5h43" 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/connections/sql-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.
