# 爲 AI 助理配置工具

建立好的工具現在可以在 AI 助理設定中被選用，賦予您的 AI 助理更強大的能力。本指南將說明如何將您建立的工具配置給特定的 AI 助理。

## 配置工具 <a href="#configure-tools" id="configure-tools"></a>

### 1. 進入 AI 助理設定 <a href="#step-1-enter-ai-agent-settings" id="step-1-enter-ai-agent-settings"></a>

首先，請從左側導航欄進入「<mark style="color:blue;">AI 功能</mark>」區塊，然後點擊「<mark style="color:blue;">AI 助理</mark>」。這將顯示您帳戶中所有已建立的 AI 助理列表。

<figure><img src="/files/SNFDxW2Qo2qqyepe4VL5" alt="AI 助理列表頁面"><figcaption><p>找到您想要配置工具的 AI 助理</p></figcaption></figure>

### 2. 選擇要配置的 AI 助理 <a href="#step-2-select-ai-agent" id="step-2-select-ai-agent"></a>

在 AI 助理列表中，找到您想要為其配置工具的助理，並點擊「<mark style="color:blue;">編輯</mark>」按鈕，進入該助理的詳細設定頁面。

<figure><img src="/files/0K9HfFGd2XIvZSI8hV0F" alt="編輯 AI 助理按鈕"><figcaption><p>進入特定 AI 助理的設定頁面</p></figcaption></figure>

### 3. 切換 AI 助理的問答模式 <a href="#step-3-switch-qa-mode" id="step-3-switch-qa-mode"></a>

{% hint style="danger" %}
**重要前提：** 只有設定為 **Agent 模式** 的 AI 助理才能使用工具。如果您的 AI 助理處於其他模式（例如：一般(預設)問答模式），則無法為其配置或使用工具。
{% endhint %}

在 AI 助理的設定頁面中，切換到「<mark style="color:blue;">問答模式設定</mark>」頁面選項。

* **檢查**：確認當前選擇的模式是否為「<mark style="color:blue;">Agent 模式</mark>」
* **更改**：如果當前不是 Agent 模式，請將其**切換**為 Agent 模式。

<figure><img src="/files/A5VmOwtMh58knCsBme5N" alt="選擇 Agent 模式"><figcaption><p>確保 AI 助理已設定為 Agent 模式才能使用工具</p></figcaption></figure>

### 4. 切換到工具配置頁面 <a href="#step-4-go-to-tool-config-page" id="step-4-go-to-tool-config-page"></a>

在 AI 助理的設定頁面中，找到「<mark style="color:blue;">🔧 工具</mark>」的頁面選項。

<figure><img src="/files/oopDxMIwN8qAFvXbanIo" alt="AI 助理設定中的工具頁面"><figcaption><p>找到工具配置頁面</p></figcaption></figure>

### 5. 選擇啟用的工具 <a href="#step-5-select-enabled-tools" id="step-5-select-enabled-tools"></a>

在此工具配置頁面，點選右上角「<mark style="color:blue;">➕ 選擇工具</mark>」按鈕，會開啟預先建置好的工具清單列表，並進行以下操作。

* **操作**：
  1. 瀏覽列表，找到您希望此 AI 助理能夠使用的工具。
  2. 勾選您想要啟用的工具旁邊的複選框。
  3. 您可以根據 AI 助理的任務和需求，選擇任意數量的工具。

{% hint style="info" %}
您可以選擇 MaiAgent 內建工具或您自行定義之工具
{% endhint %}

<figure><img src="/files/nDpKJ7eB4ggb6nuDlyAW" alt="直接選擇工具介面"><figcaption><p>直接勾選希望此 AI 助理使用的工具</p></figcaption></figure>

{% hint style="info" %}
**提示：** 請確保只為 AI 助理配置它確實需要且被授權使用的工具。配置過多不相關的工具可能會影響 AI 的判斷準確性和回應效率。
{% endhint %}

### 6. 檢視已選工具 <a href="#step-6-review-selected-tools" id="step-6-review-selected-tools"></a>

在勾選完成後，您可以再次確認配置給 AI 助理的工具，確保為此 AI 助理配置了正確的工具。

<figure><img src="/files/zyOQ5bQT8b8YaJwsYhgy" alt="已選工具概覽"><figcaption><p>確認已為 AI 助理配置了正確的工具</p></figcaption></figure>

### 7. 💾 儲存 AI 助理設定 <a href="#step-7-save-ai-agent-settings" id="step-7-save-ai-agent-settings"></a>

完成工具的選擇後，**請務必記得**點擊「<mark style="color:blue;">儲存</mark>」按鈕，以保存您對 AI 助理設定所做的更改。

<figure><img src="/files/mrDKxOH05duthaLbpWOM" alt="儲存 AI 助理設定按鈕"><figcaption><p>點擊「儲存」以應用工具配置更改</p></figcaption></figure>

## 配置 MaiAgent 內建工具 <a href="#configure-maiagent-builtin-tools" id="configure-maiagent-builtin-tools"></a>

MaiAgent 內建四種 AI 圖像生成工具，您可以根據您的需求套用給 AI 助理使用，不需額外設置：

{% hint style="info" %}
四種工具比較請參考：[MaiAgent 內建 AI 圖像生成工具](/tools/ai-image-generation-guide.md)
{% endhint %}

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

***

現在，您選擇的 AI 助理已經擁有了使用這些已啟用工具的能力。在與該助理互動時，如果觸發了相關的場景，AI 就會嘗試呼叫這些工具來完成任務或獲取信息。


---

# 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.maiagent.ai/tools/configure_tools.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.
