> For the complete documentation index, see [llms.txt](https://glint-analytics.gitbook.io/glint-analytics/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://glint-analytics.gitbook.io/glint-analytics/querying-and-data-analysis/writing-queries/using-the-ai-assistant.md).

# Using the AI Assistant

### **Writing Queries with the AI Assistant**

<figure><img src="https://544419862-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA6yhE6HfjtfdPqgvKNnu%2Fuploads%2FXajSxrxOmT6GBdz5xLQm%2FGlint%20QSG%2033.png?alt=media&amp;token=ed1713a6-788a-41f9-b7b4-19b96e6d18c0" alt=""><figcaption></figcaption></figure>

1. **Open the Query Panel**\
   Click Open Configuration or the pencil icon on your chart (or any portlet that supports queries). Select the Query tab and Chat Bubble icon.
2. **Enter a Natural Language Request**\
   In the text box, type a descriptive query in plain English, such as Solana Price Evolution from January 2023 to December 2024
3. **Click Send**

   Press Send to let the AI Assistant convert your natural language request into a valid SQL query behind the scenes. No SQL knowledge is required.
4. **AI-Generated Query**\
   The AI Assistant will automatically translate your request into a valid SQL query behind the scenes. You don’t need to know any SQL syntax for this step.
5. **Preview and Run**\
   Once the AI completes your query, the results will appear in the chart or data view immediately.
6. **Refine as Needed**\
   If you want to adjust the time frame, add filters, or modify the data, simply update your natural language request. The AI Assistant will generate a new query for you.

This approach makes retrieving blockchain data both quick and user-friendly, allowing you to focus on insights rather than query syntax.
