setEnterFillers

View as MarkdownOpen in Claude

Set all enter fillers at once. Fillers are short phrases the AI speaks when entering a context, providing a natural transition for the caller.

Parameters

fillers
Record<string, string[]>Required

Dictionary mapping language codes (or "default") to lists 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.setEnterFillers({
8 'en-US': ['Let me transfer you...', 'One moment please...'],
9 'es': ['Un momento por favor...'],
10});
11support.addStep('diagnose').setText('Understand the customer\'s issue.');