Skip to content

Responsiveness and end_call parameter for AsyncRetell? #159

@minor

Description

@minor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions