# Using the Documentation with AI

{% hint style="info" %}
💡 **Save Time:** Get instant answers to your questions without waiting for support. The AI knows our entire documentation and can help you right away!
{% endhint %}

## Where to Find It

The AI Assistant button is located in the **top right** - look for the down arrow icon <i class="fa-angle-down">:angle-down:</i>. We recommend using **Open in ChatGPT**.

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

{% hint style="warning" %}
The button is available on every page - always ready to help!
{% endhint %}

## How It Works

{% stepper %}
{% step %}
**Click the AI Button**

The assistant opens with full context about the current page you're viewing - whether it's exports, API reference, or configuration guides.
{% endstep %}

{% step %}
**Ask Your Question**

The AI already understands which documentation section you're reading, so you can ask directly without explaining context.
{% endstep %}

{% step %}
**Get Instant Answers**

Receive detailed explanations, working code examples, and step-by-step clarifications tailored to your specific page.
{% endstep %}

{% step %}
**Continue the Conversation**

Ask follow-up questions, request variations, or dive deeper into related topics - the AI remembers your conversation context.
{% endstep %}
{% endstepper %}

## Example Questions

<table data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td align="center"><strong>Configuration Help</strong><br>"How do I configure the database settings for this script?"</td><td></td></tr><tr><td align="center"><strong>Code Examples</strong><br>"Can you show me how to use this export in my own script?"</td><td></td></tr><tr><td align="center"><strong>Troubleshooting</strong><br>"I'm getting an error with this feature, what could be wrong?"</td><td></td></tr></tbody></table>

{% hint style="success" %}
**Pro Tip:** Be specific in your questions! Instead of "This doesn't work", try "The notification export returns nil when I call it from client-side" - you'll get much better answers.
{% endhint %}

## Frequently Asked Questions

<details>

<summary>❓ Can the AI access my server files or configuration?</summary>

No, the AI only has access to our public documentation. It cannot see your server files, configuration, or any private information. It provides guidance based on our official docs.

</details>

<details>

<summary>❓ Is there an extra cost to use the AI Assistant?</summary>

No, the AI Assistant is completely free and included with our documentation. Use it as much as you need!

</details>

<details>

<summary>❓ When should I contact Discord support instead of using AI?</summary>

Use AI for questions about configuration, code examples, and understanding features. Contact [Discord support](https://discord.gg/gQQNdegvSm) for license issues, payment problems, or bugs that need direct investigation.

</details>

<details>

<summary>❓ What if the AI gives me an incorrect answer?</summary>

While the AI is trained on our documentation, it may occasionally make mistakes. Always test suggestions in a development environment first, and reach out to [Discord support](https://discord.gg/gQQNdegvSm) if something doesn't work as expected.

</details>


---

# 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://anxscripts.gitbook.io/docs/using-the-documentation-with-ai.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.
