無程式碼工作流程(DAG 自動化)
最後更新於 8 11月 2026
概述
工作流程讓你無需撰寫程式碼即可將各個步驟串連成自動化管線——一個由節點構成的 DAG(有向無環圖)。工作流程可以產生內容、呼叫 AI 功能、存取外部 API、分支、迴圈、等待、取得核准以及發佈結果。每個步驟都以各自的逾時、預算與錯誤原則執行,因此單一不穩定的步驟無法失控,也不會拖垮整個執行。
節點種類
工作流程支援以下步驟類型:
- Capability — 呼叫 AI 功能(聊天、影像、TTS、翻譯等)
- Tool — 呼叫已註冊的工具/函式
- HttpRequest — 呼叫外部 HTTP 端點
- Branch — 根據條件進行路由
- Loop — 走訪集合
- FanOut / FanIn — 平行化並重新匯合
- Transform — 設定/重塑變數
- ArtifactSave — 將暫時性資產持久化至你的 CDN
- Publish — 推送至通道(webhook、markdown 成品等)
- SubWorkflow — 將另一個工作流程作為一個步驟呼叫
- HumanApproval — 暫停以等待核准
- Wait — 延遲
- Webhook — 向外部掛鉤發送 POST
逐步控制
每個節點都帶有:
- Timeout — 步驟在被中止前可執行的時間長度。
- Error policy — 失敗時的處理方式:使執行失敗、重試或繼續/忽略。例如,將通知步驟設定為忽略,這樣該處發生中斷也不會使整個執行失敗;將擷取步驟設定為重試,以因應上游的暫時性抖動。
變數與成品
- Variables 在步驟之間傳遞資料。步驟使用
{{vars.name}}內插讀取先前的輸出。 - Artifacts 是你持久化的輸出——ArtifactSave 會將暫時性的供應商 URL 重新代管為永久的 Bunny CDN URL,使連結不會過期。
費用
沒有單獨的工作流程執行費。 一次執行按每個步驟 BillingRecord 的總和計費——與手動逐一執行每個步驟的按呼叫計費完全相同。不發起 AI 呼叫的步驟(HTTP、transform、wait、webhook)不產生費用。子工作流程的費用會彙總計入父執行的總額。
執行與監控
啟動一次執行,然後在工作流程執行頁面檢視。每次執行都會記錄其步驟、結果與總費用。失敗的步驟會依照該步驟的錯誤原則顯示其錯誤。
提示
- 為外部/通知步驟設定寬鬆的錯誤原則(重試或繼續),為核心步驟設定嚴格的原則。
- 對任何你想保留的產生媒體使用 ArtifactSave——供應商 URL 會過期。
- 將可重複使用的子圖擷取為 SubWorkflow,並從多個父工作流程中呼叫它。
- 在接入昂貴的 AI capability 步驟之前,先用廉價的 echo/transform 步驟測試流程。
觀看使用方式
How AI workflows work: one form in, a finished video out
A workflow is a ready-made recipe of AI steps. You pick a template, fill in a short form, and every step runs on its own until a finished video comes out. Here we follow one bedtime story video from the form to the result.
此影片為英文。
What happens when you press Run? The anatomy of an AI workflow
Let's open one workflow and look inside. A workflow is a graph: each box is a step, the arrows set the order, and steps that don't depend on each other run side by side. Your answers flow into the steps, some steps check their own work and run again, some wait for your approval, and every AI call is recorded with its own cost.
此影片為英文。
The building blocks of an AI workflow
Every workflow, from a bedtime story to a research report, is built from the same few blocks. The AI step sends a prompt to a model and gets back text, an image, a voice, music or a video. Knowledge blocks bring in facts with their sources. Quality blocks check the work, and a human approval waits for you. Logic blocks shape the flow with branches and loops. Output blocks join everything into one video and save the result.
此影片為英文。