Vapi squad member not found
# support
t
v
@Tarek Maximus I'm sorry to hear you're experiencing issues with the assistant not being found. This could be due to a variety of reasons such as an incorrect assistant ID, a configuration issue, or the assistant service being temporarily unavailable. To help you resolve this, could you please provide me with the assistant ID you're using? Also, if you've made any recent changes to the configuration, it would be helpful to know what those were. Once I have this information, I'll be able to assist you more effectively.
You can continue this conversation by mentioning me in the message.
t
Account Management Assistant id 60a58778-b078-4f58-8375-38e2888ad9f9 After removal it now says: { "message": "Invalid Destination. Assistant \"Troubleshooting Assistant\" Not Found.", "error": "Bad Request", "statusCode": 400 } Troubleshooting Assistant id aee6c8ed-e45d-4634-8dd0-d1cb8805c5cf The assistants are published and id is copy pasted so there is no error there.
Ask for help button not working @Sahil @Shubham Bajaj
s
@Tarek Maximus can you please share your json/curl to make call.
t
{ "squad": { "members": [ { "assistantId": "95f52c41-cdd7-47a0-9e4e-235e6486a858", "assistantDestinations": [ { "type": "assistant", "assistantName": "Account Management Assistant", "message": "Please hold on while I transfer you to the account management department.", "description": "When the customer asks questions about their account information or would like to check or update their information." }, { "type": "assistant", "assistantName": "Troubleshooting Assistant", "message": "Please hold on while I transfer you to our live troubleshooting team.", "description": "If the customer needs help with any technical issues they are facing." } ] }, { "assistantId": "60a58778-b078-4f58-8375-38e2888ad9f9", "assistantDestinations": [ { "type": "assistant", "assistantName": "Router", "message": "Give me a moment to transfer you back to one of our live customer support agents.", "description": "If the customer has questions unrelated to booking an appointment for an in-person technician." } ] },
{ "assistantId": "aee6c8ed-e45d-4634-8dd0-d1cb8805c5cf", "assistantDestinations": [ { "type": "assistant", "assistantName": "Router", "message": "Give me a moment to transfer you back to one of our live customer support agents.", "description": "If the customer has questions unrelated to booking an appointment for an in-person technician." }, { "type": "assistant", "assistantName": "Appointment Booking Assistant", "message": "Give me a moment to transfer you back to the appointment booking team.", "description": "If no other steps can be taken to resolve the existing technical issue of the customer besides an in-person technician." } ] }, { "assistantId": "5ebe7b50-9c83-4f75-b748-a50b77c3976a", "assistantDestinations": [ { "type": "assistant", "assistantName": "Router", "message": "Give me a moment to transfer you back to one of our live customer support agents.", "description": "If the customer has questions unrelated to booking an appointment for an in-person technician." } ] } ] } }
Following this video, it's timestamped to the part where it was successful with 201 status. I typed it up in postman manually after being told that copy paste from google doc can cause issues

https://youtu.be/V308U_5syiA?si=UfAS3XHWr5kVelWx&t=2612

s
@Tarek Maximus to make call pass the json as:
Copy code
json
{
"squad": <squad>,
"customer": {"number": <number>},
"phoneNumberId": <phone_number_id>
}
s
1. Put squad json in squad key instead of separate json. 2. the number value can only be string the format shaared above was for reference only my bad
Copy code
json
{
"squad": {"members": [] },
"customer": {"number": "number"},
"phoneNumberId": "phone_number_id"
}
it has to be done something like this.
members array won't be empty but instead filled with squad members
t
Thank you. Below is the json Vapi AI gave me based on the context shared. Unfortunately I am now getting this error { "message": "Cannot POST /call%20%20%20%20", "error": "Not Found", "statusCode": 404 } Please advise { "squad": { "members": [ { "assistantId": "95f52c41-cdd7-47a0-9e4e-235e6486a858", "assistantDestinations": [ { "type": "assistant", "assistantName": "Account Management Assistant", "message": "Please hold on while I transfer you to the account management department.", "description": "When the customer asks questions about their account information or would like to check or update their information." }, { "type": "assistant", "assistantName": "Troubleshooting Assistant", "message": "Please hold on while I transfer you to our live troubleshooting team.", "description": "If the customer needs help with any technical issues they are facing." } ] }, { "assistantId": "60a58778-b078-4f58-8375-38e2888ad9f9", "assistantDestinations": [ { "type": "assistant", "assistantName": "Router", "message": "Give me a moment to transfer you back to one of our live customer support agents.", "description": "If the customer has questions unrelated to booking an appointment for an in-person technician." } ] },
{ "assistantId": "aee6c8ed-e45d-4634-8dd0-d1cb8805c5cf", "assistantDestinations": [ { "type": "assistant", "assistantName": "Router", "message": "Give me a moment to transfer you back to one of our live customer support agents.", "description": "If the customer has questions unrelated to booking an appointment for an in-person technician." }, { "type": "assistant", "assistantName": "Appointment Booking Assistant", "message": "Give me a moment to transfer you back to the appointment booking team.", "description": "If no other steps can be taken to resolve the existing technical issue of the customer besides an in-person technician." } ] }, { "assistantId": "5ebe7b50-9c83-4f75-b748-a50b77c3976a", "assistantDestinations": [ { "type": "assistant", "assistantName": "Router", "message": "Give me a moment to transfer you back to one of our live customer support agents.", "description": "If the customer has questions unrelated to booking an appointment for an in-person technician." } ] } ] }, "customer": { "number": "+12029371845"}, "phoneNumberId": "cea89209-e801-4221-ae52-1d008f080877"}
@Shubham Bajaj please advise
Postman GPT said to test this but results tab remains unchanged. Sending the Request Save the Request: Click "Save" to save your request with the JSON payload and test script. Send the Request: Click "Send" to send the request to your API endpoint. Viewing the Test Results After sending the request, check the "Test Results" tab at the bottom of the response section to see if the tests pass or fail. The results should indicate whether the response matches the expected error message and status code. pm.test("Check status code is 400", function () { pm.expect(pm.response.code).to.eql(400); }); pm.test("Check response message for invalid destination", function () { var jsonData = pm.response.json(); pm.expect(jsonData.message).to.eql("Invalid Destination. Assistant \"Account Management Assistant\" Not Found."); pm.expect(jsonData.error).to.eql("Bad Request"); pm.expect(jsonData.statusCode).to.eql(400); });
s
@Tarek Maximus can you please share the curl request. go to postman > right click on click icon > select cURL from code snippet drop down > click on paste icon > share the curl here please.
z
Status Code: 400 Response Body: {"message":["property squad should not exist","members must be an array"],"error":"Bad Request","statusCode":400}
s
create a new support ticket.
4 Views