# 您的第一個 flow

> 建立您的第一個 flow，使用 templates 重複利用提示詞，在 agents 運作時追蹤並引導它們，最後下載 report。

**Flow** 是指 PentAGI 的一次執行：包含一個目標、從您的訊息建立的 [tasks](https://pentagi.com/zh-tw/docs/glossary/#task)，以及 [agents](https://pentagi.com/zh-tw/docs/glossary/#agent) 在過程中執行的所有操作。

## [建立 flow](https://pentagi.com/zh-tw/docs/getting-started/first-flow/#create-a-flow)

![新 flow 表單](https://pentagi.com/images/product/new-flow.webp)

1. 在側邊欄中開啟 **Flows**，並點擊 **New Flow**。
2. 選擇模式：

   * **Automation** — PentAGI 會全程自動執行以達成目標。
   * **Assistant** — 由您逐步引導的互動式對話。啟用 **Use Agents** 可讓 [assistant](https://pentagi.com/zh-tw/docs/glossary/#assistant) 將 [subtasks](https://pentagi.com/zh-tw/docs/glossary/#subtask) 委派給專門的 agents。
3. 為此 [flow](https://pentagi.com/zh-tw/docs/glossary/#flow) 選擇 LLM [provider](https://pentagi.com/zh-tw/docs/glossary/#provider)。
4. 以自然語言描述目標與目的。

良好的初始提示詞應包含目標名稱、評估類型、範圍限制以及您預期的結果：

```text
Assess https://target.example for common web application vulnerabilities.
Focus on authentication, file handling, and injection issues. Stay within the
provided target only and summarize confirmed findings with reproduction steps.
```

> [!WARNING]
> 請僅測試您擁有或已獲明確授權評估的系統。

## [使用 templates 重複利用提示詞](https://pentagi.com/zh-tw/docs/getting-started/first-flow/#reuse-prompts-with-templates)

新 flow 表單提供 [template](https://pentagi.com/zh-tw/docs/glossary/#template) 選擇器，可從 **Templates** 中已儲存的 template 預填訊息。Templates 為純自然語言，無需特殊語法。

## [追蹤工作進度](https://pentagi.com/zh-tw/docs/getting-started/first-flow/#follow-the-work)

Flow 啟動後，PentAGI 會立即開啟 flow 頁面：

* **Automation** 顯示 agents 的訊息與進度；**Assistant** 則是具備相同 [tools](https://pentagi.com/zh-tw/docs/glossary/#tool) 的對話介面，而 **Dashboard** 會依模型、[agent type](https://pentagi.com/zh-tw/docs/glossary/#agent-type) 與功能細分使用情況。
* **Tasks** 列出計畫——包含 tasks 與 subtasks 及其狀態。
* **Terminal** 即時串流來自 [sandbox](https://pentagi.com/zh-tw/docs/glossary/#sandbox) 的每個指令及其輸出。
* **Agents**、**Searches** 與 **Vector Store** 顯示委派、網路研究與 [memory](https://pentagi.com/zh-tw/docs/glossary/#memory) 檢索。
* **Files** 存放上傳檔案、附加資源及從容器提取的檔案，而 **Screenshots** 則保存 agents 所開啟頁面的截圖。

![執行中的 flow：左側為 agent 訊息，右側為 tasks 與 subtasks 計畫](https://pentagi.com/images/product/flow-tasks.webp)

![Terminal 分頁中來自 sandbox 的每個指令及其輸出](https://pentagi.com/images/product/flow-terminal.webp)

## [引導執行中的 flow](https://pentagi.com/zh-tw/docs/getting-started/first-flow/#steer-a-running-flow)

開啟同一 flow 的 **Assistant** 檢視畫面，即可檢查其狀態、停止目前 task、傳送後續指示或調整剩餘的規劃 subtasks——無需重新啟動 flow。

## [取得 report](https://pentagi.com/zh-tw/docs/getting-started/first-flow/#get-the-report)

使用 flow 頁面上的 **Report** 選單，即可在網頁上開啟 [report](https://pentagi.com/zh-tw/docs/glossary/#report)、複製內容，或將其下載為 Markdown 或 PDF 格式。

> [!NOTE]
> 建議從狹窄的目標與單一明確的目的開始。簡短且專注的 flows 更易於審查，並有助於您在執行較大規模的 flows 前優化提示詞。