Using Squads with a transient assistant.
# support
n
I am trying to use Squads during the 'assistant-request' for a transient voice assistant. The Squad documentation states, "The first member is the assistant that will start the call, and assistants can be either persistent or transient." I have tried the JSON format in three ways: 1. In Option 1, the transient voice assistant is called using the existing format outside of the Squad object. The squad.members[0] is trying to reference the transient voice assistant which doesn't have an assistantId value. Running this instance and asking car recommender Mike to transfer me to either booking assistant X or finance specialist Y does not successfully result in a transfer action. 2. In Option 2, the transient voice assistant was integrated inside the squad.members[0]. However, that results in a "can not fetch assistant error" during the phone call. 3. In Option 3, the transient voice assistant was placed at the top level as well as inside the squad.members[0] object. However, this results in the same behavior as Option 1. Does the current Squad implementation support this type of scenario? https://cdn.discordapp.com/attachments/1248214911050317834/1248214911188865046/TransientAssistantWithSquad_1.txt?ex=6664d479&is=666382f9&hm=1bfba4f9fe17af067797739b94840194fef8a90d0dc1d947dc065b58c317bd5a& https://cdn.discordapp.com/attachments/1248214911050317834/1248214911557959792/TransientAssistantWithSquad_2.txt?ex=6664d479&is=666382f9&hm=a11a0d61587d1bd82c9e703d31af02b64615b51ef1391e13ec679b2ba17ba34d& https://cdn.discordapp.com/attachments/1248214911050317834/1248214911926931487/TransientAssistantWithSquad_3.txt?ex=6664d479&is=666382f9&hm=bf02b3c801c645f7a1ed92d9bf390b201df2127f6baa38d25f71f6bd0119b49f&
v
@nicksi0555 Yes, the current Squad implementation does support the use of transient voice assistants within a Squad. However, it's important to ensure that the JSON configuration is set up correctly. Transient assistants are designed to be ephemeral and do not have a persistent
assistantId
like regular assistants. Instead, they are instantiated on-the-fly during the call. Here are a few things to keep in mind when configuring your Squad with a transient assistant: 1. The transient assistant should be properly defined within the
squad.members
array. 2. Ensure that the transient assistant's configuration is correct and includes all necessary parameters for instantiation. 3. The reference to the transient assistant within the
squad.members
should not rely on an
assistantId
since it does not exist for transient assistants. If you're encountering issues with the transfer action not being successful, it's possible that there may be a misconfiguration in the way the transient assistant is referenced or instantiated within the Squad. It's also important to check that the logic for transferring the call to another assistant is correctly implemented. To assist you further, I would need to see the exact JSON configuration you're using for each option. This would allow me to provide more specific guidance on how to adjust your setup for a successful transfer action within a Squad that includes a transient voice assistant. If you can provide the JSON or more details about your configuration, I'd be happy to help you troubleshoot the issue.
You can continue this conversation by mentioning me in the message.
@nicksi0555 The Squad feature is designed to allow multiple voice assistants to work together in a single session, with the ability to transfer control between them. However, the implementation of transient voice assistants within a Squad can be tricky, as transient assistants are not persistent entities with a fixed
assistantId
. To address your scenario, it's important to ensure that the transient voice assistant is correctly referenced within the Squad configuration. Here are some general guidelines that might help: 1. Ensure that the transient voice assistant is properly defined and instantiated before it is referenced in the Squad configuration. 2. When referencing the transient voice assistant within the
squad.members
array, you may need to use a unique identifier or a temporary
assistantId
that is generated for the duration of the call. 3. Verify that the API or system you are using to manage Squads and voice assistants supports transient assistants and understand how they should be referenced within the Squad. If you are still encountering issues, it would be beneficial to review the documentation specific to the API or system you are using, as there may be particular nuances or requirements for integrating transient voice assistants into a Squad. Since you are experiencing difficulties with all three options you've tried, it seems there might be a need for further clarification or assistance from the developers or support team of the API or system you are using. They would be able to provide more specific guidance on how to properly configure and use transient voice assistants within a Squad. If you have any more details or specific questions about the implementation, feel free to share, and I'll do my best to assist you further.
You can continue this conversation by mentioning me in the message.
n
Yes, the scenario here is for the Squad configuration to link the first member to my transient assistant. I tried to assign a temporary assistantId value in the transient assistant and first member Squad configuration, but received "invalid assistant" during the phone call.
For some reason clicking 'Ask for help' is stating 'interaction failed' so manually tagged @User for additional help. Thanks!
s
Currently, Squad is supported in Outbound calls and you can checkout this sample curl payload https://dump.sahilsuman.me/squad-phonecall.txt
If this doesn't work then lmk we will schedule a meet and look over it.
n
I see. Thanks for confirming as I was trying to see if I could use the Squad configuration for Inbound calling as well. I had two follow up questions: - 1. Does Vapi provide the ability to dynamically change the voice after the call has already started? A use case for this for me is say I wanted to transition the voice from car recommender Mark to car recommender Mary for each subsequent recommendation. Is that possible using the current Vapi features? - 2. Also, I was able to get some additional voices to play through the call (just for a couple secs to avert any server timeouts) by using the twilio command, "await twilioClient.calls(reqBody.callSid).update({ twiml:
<Response><Play>https://[myserver]/[voice.mp3]</Play></Response>
})". However, the call immediately ends as soon as I leave the make.com webhook response. I tested by bringing the associated make.com module for playing this command to the beginning of the make.com workflow and checked the call status right before it went into the webhook response and the call shows it to be still 'In Progress'. Interestingly, that voice never makes it into the Call Log either. Any ideas why that could be occurring?
s
1. You can achieve it via Squads. 2. Send me the latest call_id pls
n
1. Ok. However, since based on my understanding, since Squads are not configurable for Inbound calling using either a transient or persistant assistant, not sure my use case would work. Unless maybe I get the Inbound call, then create another phone call using Squads and merge it into the live Inbound call, or something similar, correct? 2. I will test this again today and provide a call log as I tested many calls and not sure which one's are valid. I will also try to provide a recording from my phone so you can hear the voices coming through the phone but not showing in the call log and the call ending immediately.
s
1. It is currently available for outbound calls but yeah it will be available for inbound calls as well 2. Okay
n
Ok cool. Here is the call log for an Inbound call I just did that generated voice from someone else but not being picked up in the call log and ending reason 'customer-ended-call': - 603e688d-5619-4f29-ae75-4e7f80cb0927 I also provided the call as recorded through a call recorder for reference via DM. I'm not seeing any errors in the call log.
@Sahil were we able to take a look? Thanks!
s
You need to wait until squads are supported for inbound assistant.
32 Views