ivy
04/07/2025, 11:17 AMShubham Bajaj
04/07/2025, 10:24 PMGilang
04/08/2025, 3:17 AMShubham Bajaj
04/08/2025, 5:25 PMGilang
04/09/2025, 6:09 AMivy
04/10/2025, 7:55 AMShubham Bajaj
04/10/2025, 11:31 PMGilang
04/11/2025, 1:25 AMShubham Bajaj
04/11/2025, 9:28 PMShubham Bajaj
04/13/2025, 11:04 PMGilang
04/14/2025, 12:46 AMcurl --location --request PATCH 'https://api.vapi.ai/assistant/b4a602f6-c306-4da1-89e1-b8ac94f199a1' \
--header 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXX' \
--header 'Content-Type: application/json' \
--header 'Cookie: _cfuvid=XXXXXXXXXXXXXXXXXXXX' \
--data '{
"analysisPlan": {
"summaryPlan": {
"messages": [
{
"role": "system",
"content": "This is the prompt that'\''s used to summarize the call. The output is stored in call.analysis.summary. You can also find the summary in the Call Logs Page.test"
}
],
"enabled": true,
"timeoutSeconds": 4
},
"successEvaluationPlan": {
"messages": [
{
"role": "system",
"content": "Evaluate if your call was successful. You can use Rubric standalone or with Success Evaluation Prompt. If both are provided, they are concatenated into appropriate instructions.test"
}
],
"enabled": true,
"rubric": "Checklist",
"timeoutSeconds": 4
},
"structuredDataPlan": {
"messages": [
{
"role": "system",
"content": "This is the prompt that'\''s used to extract structured data from the call.test"
}
],
"enabled": true,
"timeoutSeconds": 4,
"schema": {
"type": "object",
"properties": {
"field_1": {
"type": "string",
"enum": [
"String",
"Number",
"Boolean",
"Object",
"Array"
]
},
"field_2": {
"type": "boolean"
}
},
"required": [
"field_2"
]
}
}
}
}'
This is the curl request @Shubham Bajaj
cc: @ivyShubham Bajaj
04/14/2025, 11:07 PMcontent
fields contain improperly escaped single quotes using '\''
which is not valid JSON. The correct way to escape single quotes in JSON is just '
(no escaping needed) or \'
if needed.
2\. **Test suffix in content**: All of your prompt content fields end with the word "test" which appears unintentional and would be included in your actual prompts.
Here's the corrected JSON for the request body:
{
"analysisPlan": {
"summaryPlan": {
"messages": [
{
"role": "system",
"content": "This is the prompt that's used to summarize the call. The output is stored in call.analysis.summary. You can also find the summary in the Call Logs Page."
}
],
"enabled": true,
"timeoutSeconds": 4
},
"successEvaluationPlan": {
"messages": [
{
"role": "system",
"content": "Evaluate if your call was successful. You can use Rubric standalone or with Success Evaluation Prompt. If both are provided, they are concatenated into appropriate instructions."
}
],
"enabled": true,
"rubric": "Checklist",
"timeoutSeconds": 4
},
"structuredDataPlan": {
"messages": [
{
"role": "system",
"content": "This is the prompt that's used to extract structured data from the call."
}
],
"enabled": true,
"timeoutSeconds": 4,
"schema": {
"type": "object",
"properties": {
"field_1": {
"type": "string",
"enum": [
"String",
"Number",
"Boolean",
"Object",
"Array"
]
},
"field_2": {
"type": "boolean"
}
},
"required": [
"field_2"
]
}
}
}
}
Gilang
04/15/2025, 6:31 AMGilang
04/15/2025, 6:31 AMivy
04/16/2025, 12:18 PMShubham Bajaj
04/21/2025, 12:15 PMShubham Bajaj
04/21/2025, 12:23 PMGilang
04/21/2025, 1:31 PMGilang
04/21/2025, 1:31 PMShubham Bajaj
04/21/2025, 8:21 PMShubham Bajaj
04/21/2025, 8:21 PMShubham Bajaj
04/21/2025, 8:22 PMKings_big💫
04/21/2025, 11:00 PMGilang
04/22/2025, 1:17 AMShubham Bajaj
04/22/2025, 5:06 PM