# Ask questions about a document with AI

1. Open the document you want to explore.
2. Click the **Ask AI** button in the bottom right corner of your page.

<figure><img src="/files/0bw4zgJtO0CIrK2Yp4iX" alt=""><figcaption></figcaption></figure>

3. Type any question you want answered about the document.
4. **Ask AI** will analyze the document and respond. You can expand if the answer is long.

<div align="left"><figure><img src="/files/J6Up2gXskoD9L0R2iPRS" alt=""><figcaption></figcaption></figure></div>

5. Ask follow-up questions.
6. Remove a query by clicking the **trash/delete** icon next to it.
7. Click the **close icon** to collapse the dialog without deleting the conversation. You can pick up right where you left off when you return to that document.

<div align="left"><figure><img src="/files/atiVM7EX2S65Fh4UFQyJ" alt=""><figcaption></figcaption></figure></div>


---

# 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://help.kenyalaw.org/working-with-a-document/ask-questions-about-a-document-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.
