setSkipToNextStep

View as MarkdownOpen in Claude

Automatically advance to the next step without evaluating step criteria. Useful for steps that should always flow through sequentially.

Parameters

skip
booleanRequired

Whether to skip to the next step automatically.

Returns

Step — Self for method chaining.

Example

import { ContextBuilder } from '@signalwire/sdk';
const builder = new ContextBuilder();
const ctx = builder.addContext('default');
const preamble = ctx.addStep('preamble');
preamble.setText('Read the disclaimer to the caller.');
preamble.setSkipToNextStep(true);
ctx.addStep('main').setText('Help the caller with their request.');