setSkipUserTurn

View as MarkdownOpen in Claude

Skip waiting for user input when entering this step. The AI proceeds immediately without waiting for the caller to speak.

Parameters

skip
booleanRequired

Whether to skip the user turn.

Returns

Step — Self for method chaining.

Example

1import { ContextBuilder } from '@signalwire/sdk';
2
3const builder = new ContextBuilder();
4const ctx = builder.addContext('default');
5const intro = ctx.addStep('intro');
6intro.setText('Introduce yourself and immediately begin the intake process.');
7intro.setSkipUserTurn(true);
8ctx.addStep('intake').setText('Collect the caller\'s information.');