> For the complete documentation index, see [llms.txt](https://docs.knowbase.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.knowbase.ai/getting-started/your-first-chat.md).

# Your First Chat

## Chat with a single file

1. Go to the **Library** tab
2. Click on any file to open it
3. Type a question in the chat input at the bottom
4. Hit Enter or click the send button

Knowbase will return an answer with **source citations** — clickable references that take you to the exact section of the document.

## Chat with your entire library

1. Go to the **Chat** tab in the top navigation
2. Type any question — Knowbase searches across **all your files** at once
3. The answer will include citations from whichever files are most relevant

{% hint style="info" %}
**Tip:** You can also drop specific files into the chat to narrow the search to just those documents.
{% endhint %}

## Follow-up questions

Knowbase remembers the conversation context. Ask follow-up questions naturally — no need to repeat yourself.

## Next steps

* Learn about [Chat All](/chat/chat-all.md) for library-wide search
* Try [Thinking Mode](/chat/thinking-mode.md) for complex questions
* Organize your files with [Channels](/knowledge-base/channels.md)


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.knowbase.ai/getting-started/your-first-chat.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
