Skip to main content
func (workflowClient) Create(
    ctx context.Context,
    name string,
    options ...workflows.WorkflowOption,
) (*workflows.Workflow, error)
Create a workflow.

Parameters

name
string
required
The workflow display name.
options
[]workflows.WorkflowOption
Options for creating the workflow.

Options

workflows.WithDescription(description string)
Set the workflow description.

Returns

The created workflow object.
workflow, err := client.Workflows.Create(ctx,
    "Scene processing",
    workflows.WithDescription("Process new scenes into analysis-ready outputs."),
)