> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-en/database.md).

# Database

- [Text to SQL Feature](https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-en/database/text2sql.md): This article introduces how to use the Text to SQL feature in the MaiAgent system, helping you easily query database information using everyday conversation
- [Create & Configure a Database](https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-en/database/create-database.md): This guide explains how to create and configure databases in MaiAgent, including uploading files to create data tables, connecting external databases, and setting column descriptions
- [Text to SQL with MaiAgent Database](https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-en/database/text-to-sql-maiagent.md): This guide explains how to upload spreadsheets such as Excel and CSV files to the MaiAgent Database, enabling the AI Assistant to query and analyze your data using natural language
- [Link AI Assistants & Group Permissions](https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-en/database/link-chatbots-groups.md): This article explains how to link databases to AI Assistants and how to control database access scope through group permissions


---

# 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.maiagent.ai/maiagent-user-guide/maiagent-user-guide-en/database.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.
