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

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