verbal-limeV
VAPI5mo ago
verbal-lime

Overriding squad variables in inbound calls

Hello, when an assistant is called in inbound calls, we can freely give the user's information in assistantOverrides with the assistant-selector webhook, as in the example:

response_data = {
                "assistantId": HOTEL_INBOUND_ASSISTANT_ID,
                "assistantOverrides": {
                    "variableValues": {
                        "name": user_full_name or "",
                        "phoneNumber": phone_number or "",
                        "meetings": meetings_list
                    }
                },
            }


In another scenario, the user calls the Squad we created and is transferred to different agents as needed. We use four agents in the relevant Squad. We'd like to know how we can assign assistantOverrides values that can be applied to each of these agents. thanks

response_data = {
                "squadId":"SQUAD_ID"
            }
Was this page helpful?