> 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/database.md).

# 資料庫

- [Text to SQL 功能](https://docs.maiagent.ai/database/text2sql.md): 本篇將介紹如何在 MaiAgent 系統中使用 Text to SQL 功能，協助您使用日常對話輕鬆查詢資料庫內資訊
- [建立與設定資料庫](https://docs.maiagent.ai/database/create-database.md): 本篇將介紹如何在 MaiAgent 中建立與設定資料庫，包含上傳檔案建立資料表、連接外部資料庫、以及欄位描述設定
- [MaiAgent 資料庫進行 Text to SQL](https://docs.maiagent.ai/database/text-to-sql-maiagent.md): 本篇將介紹如何上傳 Excel、CSV 等試算表至 MaiAgent 資料庫，讓 AI 助理透過自然語言查詢與分析您的資料
- [關聯 AI 助理與群組權限](https://docs.maiagent.ai/database/link-chatbots-groups.md): 本篇將介紹如何將資料庫關聯至 AI 助理，以及如何透過群組權限控制資料庫的存取範圍


---

# 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/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.
