Problem with tools

I have API to connect with assistant. I am creating call like that:
def create_call(): resp = requests.post( "https://api.vapi.ai/call", headers={"Authorization": API_KEY, "Content-Type": "application/json"}, json={ "assistantId": ASSISTANT_ID, "transport": { "provider": "vapi.websocket", "audioFormat": { "format": "pcm_s16le", "container": "raw", "sampleRate": SR } }, "assistantOverrides": { "variableValues": { "full_name": "", "phone": "", "date": "", "time": "", "appointment_type": "" } } } ) if not resp.ok: print("Failed to create call:", resp.text) return None return resp.json()["transport"]["websocketCallUrl"]

call id for example:

9cda111e-53f5-4fe6-97f6-da072adbde6c
Was this page helpful?