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

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