Skip to Content

Workflow.start()

The .start() method starts a workflow run with input data, allowing you to execute the workflow from the beginning.

Usage

const run = myWorkflow.createRun(); // Start the workflow with input data const result = await run.start({ inputData: { startValue: "initial data", }, });

Parameters

params:

object
Configuration object for starting the workflow run
z.infer<TInput>
RuntimeContext

Returns

result:

Promise<WorkflowResult<TOutput, TSteps>>
A promise that resolves to the result of the workflow run