set_exit_fillers

View as MarkdownOpen in Claude

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

Parameters

exit_fillers
dict[str, list[str]]Required

Dictionary mapping language codes (or "default") to lists of filler phrases.

Returns

Context — Self for method chaining.

Example

1from signalwire import AgentBase
2
3agent = AgentBase(name="my-agent", route="/agent")
4
5contexts = agent.define_contexts()
6contexts.add_context("default").add_step("menu").set_text("Ask what the caller needs.")
7
8support = contexts.add_context("support")
9support.set_exit_fillers({
10 "en-US": ["Thank you for contacting support.", "Glad I could help."],
11 "default": ["Thank you."]
12})
13support.add_step("diagnose").set_text("Understand the customer's issue.")
14
15agent.serve()