Skip to content

Get it to hangup when done #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sibblegp opened this issue Jan 5, 2025 · 3 comments
Open

Get it to hangup when done #32

sibblegp opened this issue Jan 5, 2025 · 3 comments

Comments

@sibblegp
Copy link

sibblegp commented Jan 5, 2025

Hello! This is truly excellent code. I'm using it to schedule appointments. I'd like it to hang up when complete. I can probably figure it out on my own, but how would you do it? My system prompt goes through steps and I assume I need it to call a function when it's time to hangup. Thanks!

@MaximeDde
Copy link

Can't find a way to make this work, as the call_sid seems very troubling to get. Down for some help if possible !

@Felipegalind0
Copy link

Felipegalind0 commented Feb 7, 2025

Great suggestion, I will try to add some code to have the AI type a special bit of text that will allow it to execute code, like for example terminating the call.

When the python code detects that the last AI message contains the text "GOODBYE()" at the end, it will terminate the call

@Felipegalind0
Copy link

#35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants