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

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