Create a Workflow
Trigger Types
| Type | Description |
|---|---|
schedule | Cron-based schedule |
event | Triggered by system events |
manual | Triggered via API call |
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.
Build multi-step automated workflows with schedules and event triggers.
const workflow = await theo.createWorkflow({
name: "Weekly Newsletter Draft",
triggerType: "schedule",
triggerConfig: { cron: "0 9 * * 1" },
steps: [
{
type: "ai_transform",
name: "Research trends",
config: { prompt: "Research top AI trends this week", skills: ["deep-research"] },
},
{
type: "ai_transform",
name: "Draft newsletter",
config: { prompt: "Draft a newsletter from the research above", skills: ["content-writer"] },
},
{
type: "notification",
name: "Send draft",
config: { channel: "email", to: "editor@acme.com" },
},
],
});
| Type | Description |
|---|---|
schedule | Cron-based schedule |
event | Triggered by system events |
manual | Triggered via API call |
Was this page helpful?
