Issue with Advanced and Analysis - not updating in...
# support
i
Can someone please help? we are building an app and building it via API. See attached the curl request and response for both Advance and Analysis features. You can see that the the request and response matches in API but the Dashboard is not updating. This is causing our app not to work as intended. @Gilang https://cdn.discordapp.com/attachments/1358762650028347555/1358762650330206228/Agent-Analysisjs?ex=67f505d4&is=67f3b454&hm=df1baed6e461997906d464addd88ad28491cb099a38168bc8ef65e2267337710& https://cdn.discordapp.com/attachments/1358762650028347555/1358762650640842954/Agent-Advanced.js?ex=67f505d4&is=67f3b454&hm=42827c53c98ed72e62069d36809f01335b2747f03bb67434f9be6777a7f532b9&
s
Hey Ivy, could you change your organization channel from daily to weekly? After that, recreate your assistant. All of your assistant-related issues will be resolved. What's happening is you're on the daily channel, and it gets daily updates and new features which we just pushed out. Because of this, sometimes you get broken updates, and things don't work for you as expected. Changing the channel from daily to weekly and recreating your assistant will resolve your issue.
g
Hi @Subham I already change organization channel from daily to weekly and recreate new assistant. When i fetch the data its already showing same results. But in dashboard value is empty. Refresh, clear cache, go incognito, change browser not change everything. https://cdn.discordapp.com/attachments/1358762650028347555/1359004169502986320/Screenshot_from_2025-04-08_10-11-41.png?ex=67f5e6c3&is=67f49543&hm=9fa0676d7ef6c0bd3b1c8252bbe2b11b36a619e939ecea55ea1e48ae4d4eb36e&
s
@Gilang Could you record a Loom video so I could share it with the team and help you get unlocked?
i
Hi @Shubham Bajaj can you please confirm
s
@ivy @Gilang Hey guys, we have made new changes recently. Now you can see your updates on the dashboard. In case it fails, too, then it will give you an button to force update the changes. Give it a try and let me know. I have kept your ticket open
s
Hey, the team is on vacation until Monday. Please wait for some time.
@gilangmnssb Could you share your assistant ID? I'll take a look at the logs to see why the CURL request update is not reflecting in the dashboard. cc: @sparkling_kiwi_77407
g
Copy code
curl --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: @ivy
s
I found two main issues with your curl request: 1\. **Incorrect string escaping**: The
content
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:
Copy code
{
  "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"
        ]
      }
    }
  }
}
g
Hi @Shubham Bajaj . I think the problem is not JSON Format. as you can see, the return is success and similar, when i try to get data it also similar. But in dashboard Vapi, is empty https://cdn.discordapp.com/attachments/1358762650028347555/1361589621259243581/Screencast_from_2025-04-15_13-28-02.webm?ex=67ff4ea6&is=67fdfd26&hm=461fb5a3dd19703b02965ab5c5b3597d2a282d70a935ae3fd1ce31a8d9ff2007&
cc @ivy
i
Hi @Shubham Bajaj Appreciate if you can look into this as we have POC currently in flight and is blocked because of this
s
Hey, I was out of office for a couple of days. Checking in on how it's going for you if you're still blocked.
@Gilang I don't have access to the same logs again, but if I had, I could've shown you that I've seen the same in the logs. Sometimes these API clients behave oddly - even after you make a change, they won't show you any error. According to Postman, it was correct, but when the body was sent and stringified to us, it was incorrect due to the special characters which I shared above with you.
g
Thanks for your reply @Shubham Bajaj . About the string issues that you mention before, of course i already try to adjust it, and it still not work. moreover i already try using force sync button but its not working also. I am wondering why the fetch get return correct value but not showing in UI. Should i pick the fetch data with value as valid or the empty value in dashboard as valid?
Cc @ivy
s
The API is the source of truth. Now coming to the dashboard. Within the dashboard of the frontend there are many UI states and what happens is when you make an update it goes through the back-end updates in the DB and when you change the current page or switch to another system or to refresh still the frontend is in previous state and that's why you don't see the very changes And for us to fix it we have to rewrite our layout pattern.
Honestly, we are supporting our existing dashboard, creating a new layout pattern, and fixing them one-by-one. It takes most of the development effort and time, but things are a bit slow.
If you can record a Loom video, share an assistant ID, I can try to get it fixed for you.
k
@Gilang
g
Yes, i assume this issues in of UI or frontend sections because complicated state managements. I guess you can use any assistantId, but this is mine :726290fe-1cca-4c3e-9049-ab7585ce1d30. For us if we can get guarantee that fetch data is Valid value, i can built another validations in our side to match between our App and Vapi data. And we can move on and mark this as solved. @Subham @Kings_big💫 @ivy
s
@Gilang thanks for understanding.
4 Views