Skip to content
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

Responsiveness and end_call parameter for AsyncRetell? #159

Open
minor opened this issue Aug 9, 2024 · 0 comments
Open

Responsiveness and end_call parameter for AsyncRetell? #159

minor opened this issue Aug 9, 2024 · 0 comments

Comments

@minor
Copy link

minor commented Aug 9, 2024

I have the following to send a call through Retell to another outbound number:

retell_client = AsyncRetell(api_key=os.getenv("OPPENHEIMER_RETELL_API_KEY", ""))

await retell_client.llm.update(
        llm_id=RETELL_BOOK_APPT_LLM_ID,
        general_prompt=CUSTOM_PROMPT,
        model="gpt-4o-mini",
    )

response = await retell_client.call.create(
        from_number=RETELL_AGENT_NUMBER,
        to_number=CUSTOM_OUTBOUND_AGENT,
        override_agent_id=RETELL_BOOK_APPT_AGENT_ID,
    )

Two questions:

  1. Is there a way to set this call/agent up with a responsiveness parameter: (

    end_call_after_silence_ms: int
    )

  2. Is there a way to add an "end_call" parameter that will automatically end the call if it exceeds a certain amount of time (i.e. 10 minutes)?

Thanks in advance.

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

1 participant