Modifying the assistant.analysisPlan
# support
m
Where do I edit the assistant.analysisPlan in a static assistant?
v
Hi @MaxKnox, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Get Assistant]() * [Call Analysis]() * [Create Assistant]() * [Web Calling]() -----------------------------
### Answer To modify the
assistant.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:
Copy code
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)]() .
m
I see, I can use PATCH, got it thank you!
v
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
s
Marking it as solved.