swmlChangeStep

View as MarkdownOpen in Claude

Transition to a different step within the current conversation context. Steps are defined using ContextBuilder and represent discrete stages in a workflow (e.g., “greeting”, “verification”, “checkout”).

Parameters

stepName
stringRequired

Name of the step to transition to.

Returns

FunctionResultthis, for chaining.

Example

1import { FunctionResult } from '@signalwire/sdk';
2
3const result = new FunctionResult()
4 .swmlChangeStep('confirm_order');