couldn't get assistant
# support
t
The first json previously worked but now can't get assistant. A ticket showed a member resolve it saying It was the JSON, everything had to be inside an "assistant" object So have done that but still didn't work, also added assistant name, same error. Please advise. Thank you { "squad": { "members": [ { "assistantId": "b36ee28d-e78f-4174-8c09-2b10928cffc8", "assistantDestinations": [ { "type": "assistant", "assistantName": "Customer Service Assistant", "message": "Please hold.", "description": "If the user needs help with an auto glass replacement or repair for their vehicle.'" } ] }, { "assistantId": "845fc321-fcaa-4859-815a-c1a231b7e0fb" } ] } } { "squad": { "members": [ { "assistant": { "assistantId": "b36ee28d-e78f-4174-8c09-2b10928cffc8", "assistantDestinations": [ { "type": "assistant", "assistantName": "Customer Service Assistant", "message": "Please hold.", "description": "If the user needs help with an auto glass replacement or repair for their vehicle." } ] } }, { "assistant": { "assistantId": "845fc321-fcaa-4859-815a-c1a231b7e0fb" } } ] } }
Copy code
{
  "squad": {
    "members": [
      {
        "assistant": {
          "assistantId": "b36ee28d-e78f-4174-8c09-2b10928cffc8",
          "name": "Receptionist Agent",
          "assistantDestinations": [
            {
              "type": "assistant",
              "assistantName": "Customer Service Assistant",
              "message": "Please hold.",
              "description": "Transferring to Customer Service Assistant for further help with auto glass replacement or repair."
            }
          ]
        }
      },
      {
        "assistant": {
          "assistantId": "845fc321-fcaa-4859-815a-c1a231b7e0fb",
          "name": "Customer Service Assistant"
        }
      }
    ]
  }
}
v
@Tarek Maximus It seems like you've made the correct adjustments by placing the relevant information inside an "assistant" object and adding an assistant name. However, if you're still encountering errors, it could be due to a few different reasons. Here are some steps you can take to troubleshoot the issue: 1. **Validate JSON Format**: Ensure that the JSON is properly formatted with no missing commas, brackets, or braces. Use a JSON validator to check for syntax errors. 2. **Check API Documentation**: Review the API documentation to ensure that the JSON structure aligns with the expected schema. There might be additional required fields or specific data formats that you need to adhere to. 3. **API Version**: Make sure that you are using the correct version of the API. If the API has been updated since your last successful request, you may need to adjust your JSON structure to match the new requirements. 4. **Error Messages**: Look at the error messages you are receiving in detail. They often contain clues about what is wrong with the request. 5. **Consult Support**: If you've gone through these steps and are still facing issues, it might be best to reach out to the support team with the error details. They can provide specific guidance based on the system's requirements and your particular use case. If you need further assistance or have more details about the error message, please let me know, and I'll do my best to help you resolve the issue.
You can continue this conversation by mentioning me in the message.
t
@Shubham Bajaj @Sahil Ask for help button not working
s
Hey @Tarek Maximus can you please describe what issue your are facing and steps to reproduce it?
t
Thank you @Shubham Bajaj missed this notification, resolved the issue 10 minutes ago after countless tests. The API reference is missing the “type” key so based on the json Vapi AI generated I added “type”: “assistant” above “assistant name” and it worked but there isn’t the option to add it from the dropdown selection. { "message": [ "members.0.assistantDestinations.0.type must be one of the following values: assistant" ], "error": "Bad Request", "statusCode": 400 } Greatly appreciate your prompt response. 🫡
2 Views