Call not having assistantId parameter
# support
h
I am able to see a latest call (call id: 0b680d90-8f87-4a8b-907d-1f1f7821c04a) with get call list api: https://api.vapi.ai/call. However, when I am adding assistantId (3ee7e5fc-65f8-46a9-94d6-b441c917a267) parameter, that call is not fetched. In fact the call in question has no assistantId attached to it and perhaps thats the reason that its not getting fetched. This is causing an issue in a webpage where I want to show all the calls that have happened through the assistant and some calls like these are not being retrieved
v
message has been deleted
@himanshu2344 It sounds like you're encountering an issue where calls without an associated
assistantId
are not being displayed on your webpage when you filter by a specific
assistantId
. To ensure that all calls, including those without an
assistantId
, are retrieved and displayed, you may need to modify your webpage logic to fetch and show calls both with and without an
assistantId
. Here's what you can do: 1. Fetch all calls without filtering by
assistantId
to ensure you get the complete list, including those without an
assistantId
. 2. Filter the calls on the client-side or server-side based on the
assistantId
if needed, but also include calls with a missing or null
assistantId
in your display logic. If you need to automatically assign an
assistantId
to calls that don't have one, you can set up a server-side logic that listens for an
assistant-request
message and responds with the appropriate
assistantId
based on the caller's phone number or other criteria. If you need further assistance with setting up this logic or have any other questions, please let me know!
You can continue this conversation by mentioning me in the message.
h
Sharing the curl requests here: One without assistantId filter: curl --request GET \ --url https://api.vapi.ai/call \ --header 'Authorization: Bearer XXXX' One with assistantId filter: curl --request GET \ --url 'https://api.vapi.ai/call?assistantId=3ee7e5fc-65f8-46a9-94d6-b441c917a267' \ --header 'Authorization: Bearer XXXX' The Call Id 0b680d90-8f87-4a8b-907d-1f1f7821c04a happened with this assistantId but the call log shows the assistantId itlsef is missing from that call id log (Attaching Screenshots) https://cdn.discordapp.com/attachments/1286160188297969755/1286233591457517620/Screenshot_2024-09-19_at_1.20.58_PM.png?ex=66ed29e1&is=66ebd861&hm=63d8a046ce8a6f2dc0d103942e9ca09bf4ea3b6a3ded1d7785bacf82551b250f& https://cdn.discordapp.com/attachments/1286160188297969755/1286233591847718932/Screenshot_2024-09-19_at_1.21.40_PM.png?ex=66ed29e1&is=66ebd861&hm=25a3f1ccf9e2ba63a7fc029ceaa4612e773414c4919fc8767b9769b2552ac6a1& https://cdn.discordapp.com/attachments/1286160188297969755/1286233592363487292/Screenshot_2024-09-19_at_1.21.48_PM.png?ex=66ed29e1&is=66ebd861&hm=69355abc62681efa050a05f27a751001fddfc82aafd3ee845d91216dee566868&
s
@himanshu2344 your using transient assistant.
h
Ok. How do I make it a non transient assistant then? Couldnt find any documentation on that
s
go to vapi dashboard and create an assistant from there.
2 Views