https://retellai.com/?utm_source=discord&utm_medium=seo logo
End call method?
# ❓・bug-report
a
If we make a web call, how do we then end it? My code is below and I don't want to initate a call unless I know how to end it. from retell import Retell client = Retell( api_key="key_xxxxxxxx", ) web_call_response = client.call.create_web_call( agent_id="agent_yyyyyyyy", ) print(web_call_response.agent_id)
n
So the first option you have is to use the stopCall method in the web client sdk https://docs.retellai.com/make-calls/web-call#stop-the-call Another option you have is to set the max call duration at the agent level: check
max_call_duration_ms
in the create agent API
a
amaziing thank you, I figured it out by using the demo you have for python in your github thanks