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

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