Skip to main content
The custom step allows you to execute arbitrary code within your workflow and persist the results for use in subsequent steps. This is useful for integrating with external services, performing complex calculations, or implementing custom business logic.

Example Usage

Custom Step Options

The output schema is used to validate the step’s return value and provide TypeScript type inference. If not provided, the return type will be unknown.

Custom Step Result

The custom step returns whatever value your code returns, validated against the outputSchema if provided. This result can be used in subsequent steps within the same workflow.