Custom Action Step
Used to execute any custom code as a step in the workflow.
A custom steps allows to execute any custom logic and persist in the durable execution context. The result of this step can be used in subsequent steps.
Common usecases
- Making an API call to 3rd party service
- Fetch data from a database to be used in subsequent steps
- Execute a custom logic to transform data
- Custom provider implementation
Custom Step Interface
Output Schema Definition
This JSON Schema definition is used to validate the output of the custom step. If the output does not match the schema, the workflow will fail. Novu Framework will infer the Typescript interface from the JSON Schema definition.
Return Value
The Custom Step function should return a valid serializable object. The return value will be persisted in the durable execution context.
Using the Custom Step Result
The result can only be used in the resolver
of the step/providers/skip functions of subsequent steps.
To read more about the full list of parameters, check out the full SDK reference.
Was this page helpful?