> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/create-content/searching-your-content/gitbook-ai.md).

# GitBook AI

GitBook uses AI to help you find the knowledge you need within your organization, faster

GitBook AI lets you ask questions or elaborate on specific requirements. This AI-driven tool reviews your documentation in real time and gives quick, direct answers.

{% hint style="info" %}
GitBook AI search is available both within the GitBook app to search internal content, and [in published content to search that specific docs site](https://gitbook.com/docs/ai-for-your-readers/gitbook-ai-assistant.md).
{% endhint %}

## GitBook AI helps you find answers in the GitBook app

You can enable GitBook AI for your organization’s internal content. It gives semantic answers about your internal knowledge base.

In **Organization settings**, open the **General** tab and turn on **Enable GitBook AI**.

### Using GitBook AI search <a href="#how-do-i-use-gitbook-ai" id="how-do-i-use-gitbook-ai"></a>

After GitBook AI is enabled, open the **Ask or search** <picture><source srcset="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-4bad982a5aec76351d7ee0281b44fe30bc066a33%2F25_07_16_quick_find_1.svg?alt=media" media="(prefers-color-scheme: dark)"><img src="https://1050631731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-d432fb3ac184a7af20aaa7b873c737a035c3a077%2F25_07_16_quick_find.svg?alt=media" alt=""></picture> menu from the left sidebar and type a question. GitBook AI takes a few seconds to scan your documentation and summarize the results.

### FAQs

#### How long does GitBook AI take to index changes?

When someone makes a change to your content — such as a merged [change request](https://gitbook.com/docs/collaborate/change-requests.md) — it can take **up to one hour** for GitBook to index the changes and reflect them in AI search results.

#### How does GitBook AI handle my data?

We pass your content to OpenAI to index and process data. OpenAI **does not** use this content for service improvements (including model training). You can find out more about how OpenAI handles data [here](https://openai.com/blog/introducing-chatgpt-and-whisper-apis#developer-focus).

#### How do I prevent hallucinations with GitBook AI search?

If you’re seeing GitBook produce answers that are incorrect, the best method for correcting this is to write explicit content around the topic so the AI does not have to guess.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gitbook.com/docs/create-content/searching-your-content/gitbook-ai.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
