Skip to main content
Run a pre-defined workflow in the context of the current page.
result = await page.agent.run_workflow(
    "wpid_abc123",
    parameters={"company_name": "Acme Corp"},
)
print(result.output)
ParameterTypeRequiredDescription
workflow_id / workflowIdstr / stringYesThe workflow permanent ID.
parametersdict / Record<string, unknown>NoWorkflow input parameters.
templatebool / booleanNoWhether it’s a template.
titlestr / stringNoRun display name.
timeoutfloat / numberNoMax wait time in seconds. Default: 1800.
Returns WorkflowRunResponse.