Yearly Pay yearly and get 2 months free on every paid plan. See plans
登录 免费开始

无代码工作流(DAG 自动化)

最后更新于 8 11月 2026

概述

工作流让你无需编写代码即可将各个步骤串联成自动化流水线——一个由节点构成的 DAG(有向无环图)。工作流可以生成内容、调用 AI 能力、访问外部 API、分支、循环、等待、获取审批以及发布结果。每个步骤都以各自的超时、预算和错误策略运行,因此单个不稳定的步骤无法失控,也不会拖垮整个运行。

节点种类

工作流支持以下步骤类型:

  1. Capability — 调用 AI 能力(聊天、图像、TTS、翻译等)
  2. Tool — 调用已注册的工具/函数
  3. HttpRequest — 调用外部 HTTP 端点
  4. Branch — 根据条件进行路由
  5. Loop — 遍历集合
  6. FanOut / FanIn — 并行化并重新汇合
  7. Transform — 设置/重塑变量
  8. ArtifactSave — 将临时资产持久化到你的 CDN
  9. Publish — 推送到通道(webhook、markdown 工件等)
  10. SubWorkflow — 将另一个工作流作为一个步骤调用
  11. HumanApproval — 暂停以等待审批
  12. Wait — 延迟
  13. 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.

此视频为英文。

在其专属页面观看

章节
  1. 0:00 What a workflow is
  2. 0:17 Pick a template
  3. 0:35 Fill in the form, see the cost
  4. 0:53 Preview cheaply, then run
  5. 1:14 Your result and run history

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.

此视频为英文。

在其专属页面观看

章节
  1. 0:00 Steps, arrows and one job per step
  2. 0:26 How your answers flow
  3. 0:39 Watching it run: checks and retries
  4. 0:55 Steps that wait for your approval
  5. 1:06 Every AI call, recorded
  6. 1:18 Done, and shareable

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.

此视频为英文。

在其专属页面观看

章节
  1. 0:00 Built from blocks: the AI step
  2. 0:20 Knowledge: facts, with sources
  3. 0:30 Quality: checks and approvals
  4. 0:43 Logic: branches and loops
  5. 0:53 Output: put it together, keep the result
遇到问题? 论坛通常几小时内就有回复;支持团队会在 24 小时内回复。 在论坛提问 联系支持