What determines if `Assistant` shows up here?
# support
g
v
The presence of an assistant with a JSON object during calls in Vapi is determined by several criteria: 1. **Caller Identification**: When handling inbound calls, Vapi specifies the assistant based on the caller's phone number. If the phone number does not have an
assistantId
, Vapi will attempt to retrieve the relevant assistant configuration from the server. 2. **Assistant ID Retrieval**: The
assistantId
can be found in different properties, such as
call.assistantId
or
assistant.parentId
. If the
assistantId
is in
call.assistantId
, it indicates direct involvement of the assistant. If it's in
assistant.parentId
, it suggests that a subprocess (child assistant) is handling the call. 3. **Dynamic Variables**: Calls that require dynamic content or specific configurations will utilize JSON objects. For example, if you need to pass dynamic variables or customize the assistant's responses, a JSON payload is necessary. 4. **Server Configuration**: Your server must be set up to construct and return the appropriate JSON objects when requested by Vapi. If the server is not configured correctly, it may lead to calls without a JSON object. In summary, whether a call has an assistant with a JSON object depends on the caller's identification, the presence of an
assistantId
, the need for dynamic content, and the server's configuration. If you have any specific scenarios or further questions, feel free to ask! 😊 Sources: - [Vapi Server URL Events Documentation](https://docs.vapi.ai/server-url/events) - [Dynamic Variables in Vapi](https://docs.vapi.ai/assistants/dynamic-variables) - [Vapi Tools Calling Documentation](https://docs.vapi.ai/tools/custom-tools)
g
If the
Assistant
part doesn't show up, does that mean my assistant isn't using it's knowledge base? / Any advice on fixing that?
s
@ghughes13 Could you please record a loom video showing the assistant appearing for a few calls and not for all calls? Also share the call IDs with a clear separation for showing and not showing the assistant.
g
https://www.loom.com/share/6adb25a51586479480e31dc55d0d5f59?sid=d5bee943-17f8-45a3-b1f5-6fff89dfac2c With Assistant Tab: -
2fdcb643-8c9f-47de-a66e-4fa72e1fbcaf
-
c495b5c8-1d0d-4dd9-ab97-8f70e3cbd1df
-
ee6aa8d9-fce1-4bc4-8356-b355b5401e8c
Without Assistant Tab: -
cd1a096b-3069-4206-8b28-7bf1c3d43a35
-
93d3d0a8-2f68-4850-a351-f11e0c4053f3
-
9e5b7bab-b8d3-43f0-932e-001e347b8755
@Shubham Bajaj
Let me know if I can give you anything else helpful
s
@ghughes13 Thanks for the video, let me check with the team.
@ghughes13 Thanks for the video but the assistant tab appears only for transient assistants. In the following call IDs the assistant tab doesn't shows up because the assistant ID was used for the call. cd1a096b-3069-4206-8b28-7bf1c3d43a35 93d3d0a8-2f68-4850-a351-f11e0c4053f3 9e5b7bab-b8d3-43f0-932e-001e347b8755
g
@Vapi Support Bot What's a transient assistant?
Awee can I not ask duckie questions?
s
@ghughes13 Feel Free to ask duckie, even blast the it out.