squads
# support
d
How can I start a web call with a squad? I've succeeded in creating one via postman but when I try to do vapi.start("SQUAD-ID"); it gives me a 400 and says assistant not found. https://cdn.discordapp.com/attachments/1248212984518672435/1248212984694571139/Screenshot_2024-06-06_at_5.51.47_AM.png?ex=6662d86e&is=666186ee&hm=67b27dfe97599b62ca0f873b44308b4a79b9e05cd6c1b180ecc725677ba0ac3e&
v
@danemyers It sounds like you're trying to initiate a web call with a squad using VAPI, but you're encountering an error with the
assistant not found
message. This typically indicates that the identifier you're using to reference the assistant within the
vapi.start
function is incorrect or not recognized by the system. To help you resolve this issue, I'll need a bit more information: 1. Can you confirm that the "SQUAD-ID" you're using is the correct and valid identifier for the squad you're trying to call? 2. Are you including any additional parameters or headers that might be required for authentication or to specify the assistant when making the call through Postman? Once I have this information, I can provide you with more accurate guidance on how to proceed. If there's a specific function within VAPI that you need to call, please provide the correct function name and parameters, and I'll be happy to assist you further.
You can continue this conversation by mentioning me in the message.
@danemyers It sounds like you're trying to initiate a web call with a squad using the VAPI, but you're encountering an error. The error message "assistant not found" suggests that the identifier you're using for the squad may not be correct or that the assistant associated with the squad is not properly configured. To help you resolve this issue, I'll need a bit more information: 1. Can you confirm that the "SQUAD-ID" you're using is the correct identifier for the squad you want to start a call with? 2. Have you ensured that the assistant linked to the squad is correctly set up and available? 3. Are there any additional parameters or authentication details that you might be missing when making the call through your code, compared to the successful attempt you made with Postman? Please double-check these details, and if you're still facing issues, provide me with any additional context or error messages you're receiving so I can assist you further.
You can continue this conversation by mentioning me in the message.
d
This is the correct ID returned by the squad creation endpoint The assistant ID inside the squad is for an existing individual agent which works if I just use their ID N/A
v
@danemyers Great, thanks for confirming that the squad ID and the assistant ID are correct. If you're able to start a call with the individual agent's ID but not with the squad ID, it's possible that there might be an issue with how the squad is being referenced in the
vapi.start
function. Here are a few steps you can take to troubleshoot the issue: 1. **Check Squad Configuration**: Ensure that the squad is properly configured with the correct assistant ID and that the squad itself is active. 2. **Review API Documentation**: Double-check the VAPI documentation to ensure that you're using the correct syntax and parameters for starting a call with a squad. 3. **Error Details**: Examine the details of the 400 error message you're receiving. It might contain clues about what's going wrong. 4. **API Version**: Verify that you're using the correct version of the VAPI that supports starting calls with squads. 5. **Code Review**: Compare the successful Postman request with your code to spot any discrepancies in headers, parameters, or request body. If you've checked all of the above and the issue persists, it might be helpful to see the exact code snippet you're using to call
vapi.start
with the squad ID (without revealing any sensitive information). This way, I can help you debug the issue more effectively. If you'd like, you can also provide me with the exact error message you're receiving, and I can offer more targeted advice.
@danemyers Great, it's helpful to know that the squad ID is correct and that the assistant ID within the squad corresponds to an existing individual agent that works independently. Given this information, it seems like the issue might be with how the
vapi.start
function is being called or with the parameters being passed to it. Here are a few steps you can take to troubleshoot the issue: 1. **Check the Function Call**: Ensure that the function call syntax is correct. The
vapi.start
function might require specific parameters or a particular structure. If you have documentation or an API reference for the VAPI, please refer to it to confirm the correct usage. 2. **Verify Parameters**: Double-check that all required parameters are being passed correctly in the function call. There might be additional parameters needed when starting a call with a squad compared to an individual agent. 3. **Error Handling**: Look at the error response in detail. A 400 error usually comes with a message that can give more insight into what's going wrong. Since you mentioned "assistant not found," it could be related to how the assistant is referenced within the squad. 4. **Compare with Postman Request**: Since the call works in Postman, compare the successful Postman request with the code you're using to call
vapi.start
. Ensure that all headers, body content, and method types match. 5. **Check for Updates**: If there have been any recent updates to the VAPI, there might be changes to how squads are handled. Check for any changelogs or update notes. If you're still unable to resolve the issue after these steps, please provide the exact function call you're making (with any sensitive information redacted), and I'll do my best to assist you further. If there's a specific error message or code, please include that as well.
s
Currently Squads is supported in outbound call you can checkout the sample curl request https://dump.sahilsuman.me/squad-phonecall.txt
d
This sample is what I used for the Create squad endpoint to successfully create the squad. 1. Is calling a squad available for web calls? This sample contains a phone number 2. Is this available through vapi.start?
s
It is supported but the web-sdk is not updated for it. We need to update it.
j
I know there’s a lot in the pipeline, but how far off would you say this update to web calling is? I have a use case for squads in a web call and would be good if I could plan ahead.
s
It is updated.
YOu can use it.
t
@Sahil Could you please tell me how to use squad for web calls, also share documentation if any.
t
same.
s
What’s the issue that you guys are facing?
t
I am not able to find the documentation for the squad webcall, I can only see inbound and outbound calls in the squad section of the documentation.
s
@Thuglife
t
@Sahil I am implementing Squads for outbound call how can I use my knowledge base file in that like there is only json file and js file?Do I need to write anything in json file to use knowledge base?
s
You can directly do it via dashboard now.
Just make a normal assistant with knowledge base and use it via Squad UI
t
@Sahil I have made the squad flow but when I ask the agent to tranfer the call it is not able to tranfer the call could you provide me steps or any documentation on how to use the squad ui properly?
s
It will be updated in few days.
t
The documentation or the squad ui working?
s
Documentation
t
ok
is there any video on how this feature works?
s
Yup.
t
could you share it?
s

https://www.youtube.com/watch?v=uT7mW61H0nw

j
Awesome. On that, would you also be able to update the web snippet documentation for how to get squads working via the snippet? If it’s working already (but without documentation), would love to give it a try if you have any tips.
s
Sure.
5 Views