SDK Reference
Workflows
Schedule and trigger multi-step automations.
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.
Schedule and trigger multi-step automations.
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",
});
Was this page helpful?
