add_exit_filler
add_exit_filler
Add exit fillers for a specific language.
Parameters
language_code
Language code (e.g., "en-US", "es") or "default" for a catch-all.
fillers
List of filler phrases.
Returns
Context — Self for method chaining.
add_exit_filler
Add exit fillers for a specific language.
Language code (e.g., "en-US", "es") or "default" for a catch-all.
List of filler phrases.
Context — Self for method chaining.
1 from signalwire import AgentBase 2 3 agent = AgentBase(name="my-agent", route="/agent") 4 5 contexts = agent.define_contexts() 6 contexts.add_context("default").add_step("menu").set_text("Ask what the caller needs.") 7 8 support = contexts.add_context("support") 9 support.add_exit_filler("en-US", [ 10 "Thank you for contacting support.", 11 "Glad I could help." 12 ]) 13 support.add_step("diagnose").set_text("Understand the customer's issue.") 14 15 agent.serve()