SDK 参考
工作流
调度并触发多步骤自动化任务。
此页面对您有帮助吗?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Welcome to Theo Docs — the AI orchestration API.
调度并触发多步骤自动化任务。
const workflows = await theo.workflows();
const workflow = await theo.createWorkflow({
name: "Weekly Pipeline Report",
triggerType: "schedule",
triggerConfig: { cron: "0 9 * * 1" }, // Every Monday at 9am
steps: [
{
type: "ai_transform",
name: "Generate report",
config: {
prompt: "Analyze this week's pipeline changes",
skills: ["data-extraction", "content-writer"],
},
},
{
type: "notification",
name: "Send to team",
config: { channel: "email", to: "team@acme.com" },
},
],
});
const run = await theo.triggerWorkflow(workflow.id, {
overridePrompt: "Focus on enterprise deals this week",
});
此页面对您有帮助吗?
