Elias
05/21/2025, 4:34 PMVapi Support Bot
05/21/2025, 4:35 PMTom
05/21/2025, 8:45 PMAniah
05/21/2025, 11:58 PMlendell_thenerd
05/22/2025, 4:27 AMlendell_thenerd
05/22/2025, 11:13 AMAniah
05/22/2025, 2:51 PMlendell_thenerd
05/22/2025, 8:45 PMVapi Support Bot
05/22/2025, 8:47 PM<assistant_id>
and <token>
with your actual values):
bash
curl -X PATCH https://api.vapi.ai/assistant/<assistant_id> \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"analysisPlan": {
"summaryPrompt": "You are an expert note-taker. You will be given a transcript of a call. Summarize the call in 2-3 sentences, if applicable.",
"structuredDataPrompt": "You are an expert data extractor. You will be given a transcript of a call. Extract structured data per the JSON Schema.",
"structuredDataSchema": {
"type": "object",
"properties": {
"field1": { "type": "string" },
"field2": { "type": "number" }
},
"required": ["field1", "field2"]
},
"successEvaluationPrompt": "You are an expert call evaluator. You will be given a transcript of a call and the system prompt of the AI participant. Determine if the call was successful based on the objectives inferred from the system prompt.",
"successEvaluationRubric": "NumericScale"
}
}'
This should restore analysis if it was disabled by a dashboard update. For more details, see the [API reference](https://docs.vapi.ai/api-reference/assistants/update?explorer=true).
Sources:
- [Update Assistant API Reference](https://docs.vapi.ai/api-reference/assistants/update?explorer=true)
- [Call Analysis Documentation](https://docs.vapi.ai/assistants/call-analysis)Aniah
05/23/2025, 1:58 PM