addExitFiller

View as MarkdownOpen in Claude

Add exit 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

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