Custom Action Step
Learn how to use the custom step to execute arbitrary code in your workflow
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
Property | Type | Required | Description |
---|---|---|---|
outputSchema | JSONSchema | No | JSON Schema definition for validating the step's output |
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.