# 我要做 X，該用什麼？

<figure><img src="https://1593648278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmzb5NG9GDzFP2YDKeYVl%2Fuploads%2Fgit-blob-0695ba80b9d4d71a69bbd96c467fbd04d14e69d0%2Fdecision-guide-infographic.png?alt=media" alt="決策指南"><figcaption><p>情境 → 模組對照：快速找到正確的起點</p></figcaption></figure>

不確定該用哪個模組？從你的需求出發，找到正確的起點。

## 情境對照表

### 讓 Agent 能回答問題

| 我想要...                | 該用           | 為什麼                      |
| --------------------- | ------------ | ------------------------ |
| 讓 Agent 回答產品相關問題      | **知識庫**      | 上傳產品手冊，Agent 能從中找答案      |
| 讓 Agent 回答常見問題        | **知識庫**（FAQ） | 建 FAQ 問答對，精準匹配常見問題       |
| 讓 Agent 查訂單狀態         | **資料庫**      | 訂單在結構化表格裡，需要 Text to SQL |
| 讓 Agent 查詢即時資訊（天氣、匯率） | **工具**       | 需要呼叫外部 API 取得即時數據        |

### 讓 Agent 能做事

| 我想要...              | 該用     | 為什麼                     |
| ------------------- | ------ | ----------------------- |
| 讓 Agent 寄通知信        | **工具** | 串接 Email API，Agent 觸發寄送 |
| 讓 Agent 在 CRM 建客戶資料 | **工具** | 串接 CRM API，Agent 執行建立動作 |
| 讓 Agent 按 SOP 處理客訴  | **技能** | 定義完整的處理流程，確保步驟不遺漏       |
| 讓 Agent 引導客戶完成預約    | **技能** | 多輪對話收集資訊，按流程走           |

### 讓 Agent 自動化

| 我想要...       | 該用       | 為什麼             |
| ------------ | -------- | --------------- |
| 每天早上自動產出報告   | **代理排程** | 設定定時執行，自動送出結果   |
| 每小時檢查系統狀態    | **代理排程** | 設定間隔執行，搭配工具查詢狀態 |
| 把官網內容自動匯入知識庫 | **爬蟲**   | 抓取網頁內容，匯入知識庫    |

## 常見的模組組合

大多數場景不會只用單一模組，以下是常見的組合方式：

### 智能客服

```
Agent + 知識庫 + FAQ
```

最基本也最常見的組合。Agent 靠知識庫回答產品問題，FAQ 處理高頻問題。

### 業務助手

```
Agent + 知識庫 + 資料庫 + 工具
```

既能查產品資料（知識庫），也能查庫存和報價（資料庫），還能幫客戶下單（工具）。

### 自動化報告

```
Agent + 工具 + 代理排程
```

Agent 透過工具取得數據，代理排程定時觸發，結果自動推送到 Slack 或 LINE。

### 流程引導機器人

```
Agent + 技能 + 工具 + 知識庫
```

技能定義完整 SOP，過程中查知識庫找參考資料，用工具執行動作。

## 還是不確定？

從最簡單的開始：**Agent + 知識庫**。先讓 Agent 能回答問題，上線後根據使用者實際反饋再決定要加什麼能力。


---

# 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/agent-builder/decision-guide.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.
