The difference from an agent is not what it can do but who is there. An agent runs while your process runs and asks you before anything irreversible. A workflow runs with nobody watching — so what it may do is decided when it is saved, not while it runs.
| الاستدعاء | الوظيفة |
|---|---|
| إنشاء( روف | الدالة و حفظه ترجع من. |
| )أ( | كل تدفق للحساب |
| &( id) | واحد منهم |
| تحصل علىRunR(RR(ed) | من وسيلة تعريفه وحدها |
const workflow = await api.workflows.create({
name: "Weekly digest",
trigger: { type: "cron", cron: "0 8 * * 1" },
steps: [
{ id: "read", type: "storage.query", config: { storage: "…", action: "find", collection: "posts" } },
{ id: "write", type: "model.generate", config: { model: "gemini-3.5-flash",
prompt: "Summarise these in five lines: {{steps.read.output.result}}" } },
],
});
const run = await workflow.run({ input: { since: "2026-10-01" } });
await run.wait();
console.log(run.data.status);workflow = api.workflows.create({
"name": "Weekly digest",
"trigger": {"type": "cron", "cron": "0 8 * * 1"},
"steps": [
{"id": "read", "type": "storage.query", "config": {"storage": "…", "action": "find", "collection": "posts"}},
{"id": "write", "type": "model.generate", "config": {"model": "gemini-3.5-flash",
"prompt": "Summarise these in five lines: {{steps.read.output.result}}"}},
],
})
run = workflow.run(input={"since": "2026-10-01"})
run.wait()
print(run.data["status"])A رسم، لا قائمة
edges يوصل الخطوات - الفروع، الموازى - الموازى - الموازِل. steps هي السلسلة، وهي القضية البسيطة وتبقى مدعومة
ما الذي يعمل خارج الحساب يحتاج إلى موافقة في الرسم البياني
في محادثة يُطلب هؤلاء الثلاثة كل مرة ولا يفتح لهم أي نمط. لا يوجد من يطلب منهم تدفق العمل - لذلك فإن الموافقة مطلوبة في الرسم البياني، ويُرفض وضع تعريف بدونه عندما تنقذه، حيث لا يزال بإمكانك قراءة الرسالة.
"الركض خارج الحياة كل شيء"
الدالة 01 ترجع معرفها و جاري التنفيذ على المنصة. عملية الخروج يمكن أن تتم أنتRunRun يلتقطه لاحقاً
القيود
| شيء | الحد |
|---|---|
| عدد السير | 30 |
| :: عمليات تكرار | 500 |
| عُقد | 10 |
| A إنتظار | ٨٦ ٤٠٠ ٨٦ ثانية - يوم واحد |
| م | 5 |