setExitFillers

View as MarkdownOpen in Claude

Set all exit fillers at once. Exit fillers are spoken when the AI navigates away from this context.

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.setExitFillers({
'en-US': ['Thank you for contacting support.', 'Glad I could help.'],
'default': ['Thank you.'],
});
support.addStep('diagnose').setText('Understand the customer\'s issue.');