import type * as Extend from "../../../../index"; /** * @example * { * name: "Invoice Processing" * } * * @example * { * name: "Invoice Processing", * steps: [{ * type: "TRIGGER", * name: "name" * }, { * type: "PARSE", * name: "name" * }, { * type: "EXTRACT", * name: "name" * }, { * type: "HUMAN_REVIEW", * name: "name" * }] * } * * @example * { * name: "Document Routing", * steps: [{ * type: "TRIGGER", * name: "name" * }, { * type: "PARSE", * name: "name" * }, { * type: "CLASSIFY", * name: "name" * }, { * type: "EXTRACT", * name: "name" * }, { * type: "EXTRACT", * name: "name" * }, { * type: "HUMAN_REVIEW", * name: "name" * }] * } */ export interface WorkflowsCreateRequest { /** The name of the workflow. */ name: string; /** * The steps that define the workflow's processing graph. Each step has a `type`, a unique `name`, and optional `next` entries that define routing to downstream steps. * * When omitted, the workflow is created with default steps (`TRIGGER` → `PARSE`). The default steps may change in the future. * * See the [Configuring Workflows via API guide](https://docs.extend.ai/2026-02-09/product/workflows/configuring-workflows-via-api) for step definitions, branching patterns, and examples. */ steps?: Extend.WorkflowStepDefinition[]; }