#Cannot get calls to work with dynamic variables

1 messages · Page 1 of 1 (latest)

trim leaf
#

Hey folks I cant seem to get calls to work when I start to use dynamic variables in my Python application. When I start my python application it starts fine and receives the call just fine. When I start to try and configure dynamic variables the call never reaches the agent and the call hangs up. There is no errors or anything in my account.
code attached

trim leaf
#

argh. My mistake was I had dynamic variables in my first prompt message. So me adding dynamic variables to the class "conversationconfig().extra_body" was not correct. New code:

        conversation_config_override={
            "agent": {
            "first_message": f"Hi there! How can I help you today? {call_sid} ,{from_number} ,{caller_name}"}
            }
        )
    conversation = None
trim leaf
#

So actually I was .1 version off for the eleven labs library. pip was not updating it to the most recent one and had to manually specify the version. It works now.