set_end
set_end
Set whether the conversation should end after this step completes.
Parameters
end
Whether to end the conversation after this step.
Returns
Step — Self for method chaining.
set_end
Set whether the conversation should end after this step completes.
Whether to end the conversation after this step.
Step — 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 ctx = contexts.add_context("default") 7 ctx.add_step("greet").set_text("Welcome the caller.") 8 farewell = ctx.add_step("farewell") 9 farewell.set_text("Thank you for calling. Goodbye!") 10 farewell.set_end(True) 11 12 agent.serve()