MaxKnox
05/30/2024, 3:33 PMVapi Support
05/30/2024, 3:33 PMVapi Support
05/30/2024, 3:33 PMassistant.analysisPlan in a static assistant, you need to edit the attributes directly in your assistant's configuration through the API. You can set properties like summaryPrompt, successEvaluationPrompt, structuredDataPrompt, and their corresponding schemas using the API endpoint for updating an assistant's attributes. Here’s an example of how you might structure your API call to update these settings:
json
{
"analysisPlan": {
"summaryPrompt": "Provide a brief summary of the call.",
"successEvaluationPrompt": "Evaluate the success of the call.",
"structuredDataPrompt": "Extract structured data from the call."
}
}
To apply these changes, you would typically use the PATCH or POST methods provided by the Vapi API, depending on whether you are creating a new assistant or updating an existing one [(1)]() .MaxKnox
05/30/2024, 3:34 PMVapi Support
05/30/2024, 3:35 PMSahil
05/30/2024, 4:04 PM