# How to use the Ask AI feature on the docs

The **Ask AI** feature helps you get instant answers, explanations, or translations directly from the documentation, without needing to search manually. Whether you want to understand a concept, explore examples, or translate content into another language, **Ask AI** makes it simple and efficient.

There are **three ways** you can access **Ask AI** on the documentation portal:

<figure><img src="/files/95fA1HDqyPDJ0vsxqPHz" alt=""><figcaption></figcaption></figure>

1. **Search bar** – Ask questions directly as you search the entire documentation.
2. **Ask AI button (top right)** – Open the Ask AI panel to query the whole documentation.
3. **Ask AI on individual pages** – Interact with AI specific to the content of the page you’re currently viewing.

#### Translating a Page (Option 3)

If you’d like to **translate a specific page** into another language, use the **Ask AI button** located on that page.

**Steps:**

1. Go to the page you want to translate.
2. In the top-right corner, click the **Ask AI** button (with a dropdown).
3. This will open the **Ask AI panel**.
4. In the prompt box, type:

   ```
   Translate this page to [Your Language]
   ```

   For example:

   ```
   Translate this page to German
   ```

The AI will automatically generate the complete translation of that page in your selected language.

<mark style="color:red;">**Click through the demo to experience how to translate a page to any language in just a few minutes. (For this example, German was used.)**</mark> &#x20;

{% @storylane/embed subdomain="app" linkValue="reyd8byfyps3" url="<https://app.storylane.io/share/reyd8byfyps3>" %}

**Result:**

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

#### Translating Content Across the Entire Docs (Option 2)

If you want to **translate specific terms or explanations** from anywhere in the documentation, use the **Ask AI** button at the top right of the portal. This version of Ask AI searches the **entire documentation** for the most relevant answer.

**Example prompt:**

```
Translate what is UOF to Spanish
```

This will provide the translated explanation for “UOF” using context from across the documentation.

{% hint style="success" %}
Tips

* You can use Ask AI to **summarize**, **explain**, or **compare** topics, not just translate.
* Be specific in your prompts to get the most accurate responses.
* For best results, include the context (e.g., product name or topic) in your query.
  {% endhint %}

### Using Ask AI in the Search Bar (Option 1)

The **Ask AI** feature is also integrated directly into the **search bar**, allowing you to ask questions or request explanations without leaving your current view.\
This is ideal when you want quick answers pulled from across the documentation.

<figure><img src="/files/3Y3E3HpqOClvdmV5fcX4" alt=""><figcaption></figcaption></figure>

#### How It Works

1. Click on the **Search bar** at the top of the documentation site.
2. Type your question naturally, just like you would when chatting with AI.
3. Ask AI will search through the entire documentation and return the most relevant information.

#### Example Prompts

```
What is the Unified Odds SDK used for?
```

```
Explain how to initialize the SDK in Java
```

You can also use it for quick translations:

```
Translate odds recovery process into Spanish
```

#### When to Use This Option

* When you’re looking for **quick definitions or summaries**.
* When you want to **search across the entire documentation** instead of a single page.
* When you need to **translate or clarify** a concept instantly, without opening the Ask AI panel.


---

# 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.sportradar.com/uof/uof-guides/how-to-guides/how-to-use-the-ask-ai-feature-on-the-docs.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.
