I dont know why you marked the other support thread as resolved. ITS NOT RESLOVED. Its still not working. here is our code:
You said to put : your_current_assistant_analysis
That does not exist as in your support page:
https://docs.vapi.ai/api-reference/assistants/update-assistant
It would be more helpful if you are more clear with you instructions.
Here is our current code that is sent using the PATCH. It gets a 200 response but when we test the call it is still NOT working.
{
"analysisPlan": {
"summaryPrompt": "You are an expert transcript evaluator. You will be given a Transcript of a call and you must determine if the call was a success. The most important details are the answers from the two questions the AI participant asks: ---QUESTIONS--- ~“And who do you process your credit card machine with?” and ~“What is the machine that you guys are using?” ---END QUESTIONS--- It is vital that you identify the answers to these two questions. if there is no answer then the call was a failure.",
"summaryRequestTimeoutSeconds": 20,
"structuredDataRequestTimeoutSeconds": 20,
"successEvaluationPrompt": "It is vital that you identify the answers to these two questions. if either question is not answered then the call was a failure. ---QUESTIONS--- ~“And who do you process your credit card machine with?” and ~“What is the machine that you guys are using?” ---END QUESTIONS---",
"successEvaluationRubric": "PassFail",
"successEvaluationRequestTimeoutSeconds": 20,
"structuredDataPrompt": "You are looking for the USER answers to the "CCMP" and the "MN" in the transcript. Find the user answers for the following questions: ---QUESTIONS--- ~“And who do you process your credit card machine with?” and ~“What is the machine that you guys are using?” ---END QUESTIONS--- ---STRUCTURE-- 1. The answer to: And who do you process your credit card machine with? is the "CCMP". 2. The answer What is the machine that you guys are using? is the "MN". ---END STRUCTURE-- --GOAL DATA-- - Credit Card Machine Processing (CCMP) - Machine Name (MN)",
"structuredDataSchema": {
"type": "object",
"properties": {
"CCMP": {
"type": "string",
"description": "The company or service used for processing credit card machines."
},
"MN": {
"type": "string",
"description": "The name of the machine that is used for credit card processing."
}
},
"required": ["CCMP", "MN"]
}
}
}