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

import { ContextBuilder } from '@signalwire/sdk';
const builder = new ContextBuilder();
builder.addContext('default').addStep('menu').setText('Ask what the caller needs.');
const support = builder.addContext('support');
support.setEnterFillers({
'en-US': ['Let me transfer you...', 'One moment please...'],
'es': ['Un momento por favor...'],
});
support.addStep('diagnose').setText('Understand the customer\'s issue.');