add_exit_filler

View as MarkdownOpen in Claude

Add exit fillers for a specific language.

Parameters

language_code
strRequired

Language code (e.g., "en-US", "es") or "default" for a catch-all.

fillers
list[str]Required

List of filler phrases.

Returns

Context — Self for method chaining.

Example

from signalwire import AgentBase
agent = AgentBase(name="my-agent", route="/agent")
contexts = agent.define_contexts()
contexts.add_context("default").add_step("menu").set_text("Ask what the caller needs.")
support = contexts.add_context("support")
support.add_exit_filler("en-US", [
"Thank you for contacting support.",
"Glad I could help."
])
support.add_step("diagnose").set_text("Understand the customer's issue.")
agent.serve()