addEnterFiller

View as MarkdownOpen in Claude

Add enter fillers for a specific language.

Parameters

languageCode
stringRequired

Language code (e.g., "en-US", "es") or "default" for a catch-all.

fillers
string[]Required

List of filler phrases.

Returns

Context — Self for method chaining.

Example

1import { ContextBuilder } from '@signalwire/sdk';
2
3const builder = new ContextBuilder();
4builder.addContext('default').addStep('menu').setText('Ask what the caller needs.');
5
6const support = builder.addContext('support');
7support.addEnterFiller('en-US', [
8 'Let me connect you with support...',
9 'Transferring you now...',
10]);
11support.addStep('diagnose').setText('Understand the customer\'s issue.');