Unable to get Structured Message
# support
v
Hi there! πŸ‘‹ I see you're having trouble with structured messages in your end-of-call reports. Based on the documentation, there are several common reasons why you might be seeing zeros in your structured data fields: 1. **Configuration issues**: Your structured data schema or prompt might not be correctly defined. Make sure you've properly set up your schema using JSON format [like this example](https://docs.vapi.ai/assistants/call-analysis):
Copy code
json
{
  "structuredDataPrompt": "Extract all of the information needed for the desired properties of the call.",
  "structuredDataSchema": {
    "type": "object",
    "properties": {
      "name": {"type": "string"},
      "email": {"type": "string"}
    },
    "required": ["name", "email"]
  }
}
2. **Transcript accuracy problems**: The AI assistant relies on call transcripts to generate structured data. If transcripts are inaccurate, structured data might be missing or incorrect. 3. **System glitches**: There have been reports of structured data schemas that were working suddenly stopping, possibly due to temporary glitches or updates. 4. **Webhook configuration**: If you're using webhooks, make sure they're correctly configured with the proper endpoint URL. 5. **Server message settings**: Ensure you've enabled server messages in your assistant configuration for it to send the reports to your webhook. Could you share more details about your setup and configuration? That would help me provide more specific troubleshooting steps for your situation! πŸ™‚ Sources: - [Discord conversation about structured data issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1265637856383078461) - [Documentation on call analysis](https://docs.vapi.ai/assistants/call-analysis) - [Discord conversation about transcript accuracy](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333710576609787986)
f
I have added everything including the schema. But unable to get the structured data.
Hi @Shubham Bajaj , can you please help me out here?
k
Hey! To help track down this issue, could you share: - The call ID - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!
I expected to get the outcome with structured data having the field Prequalification Status
Call id : 8ee5b903-15bc-4039-8663-79f7888546b1
k
@FareshAmed I don't see any structured data plan assigned to your assistant that's result into no structure output. Assign it to your assistant and then it will work.
Copy code
"analysis": { "summary": "Ivana from Fidu Properties called Fares to follow up on his interest in a project from a social media ad. Fares confirmed he has a budget of 2 million, is primarily interested in the specific project as an investment, and wants to proceed immediately. A meeting with a senior property consultant was scheduled for the following day at 3 PM.", "successEvaluation": "true" },
f
I assigned it via the dashboard.( Please refer to the screenshot sent earlier)
s
@FaresAhmed You forgot to attach the structure data plan with this assistant in this call ID. I've removed the private data from the log below.
Copy code
json
πŸ”΅ 09:04:19:230 Updated Call {
  "id": "8ee5b903-15bc-4039-8663-79f7888546b1",
  "assistantId": null,
  "customerId": null,
  "type": "outboundPhoneCall",
  "startedAt": "2025-03-11T09:01:28.522Z",
  "endedAt": "2025-03-11T09:04:10.873Z",
  "assistant": {
    "name": "Lead_Prequalifying_Agent",
    "model": {
      "model": "gpt-4o",
    },
  },
  "phoneNumber": null,
  "customer": {"name": "Faris", "number": "+971521271679"},
  "status": "ended",
  "endedReason": "customer-ended-call",
  "metadata": null,
  "phoneCallProvider": "twilio",
  "phoneCallProviderId": "CAccdc98227bdce99ce2866fe70296155e",
  "webCallSipUri": null,
  "forwardedPhoneNumber": null,
  "phoneCallTransport": "pstn",
  "phoneCallProviderBypassEnabled": null,
  "phoneCallProviderDetails": null,
  "assistantOverrides": {
    "variableValues": {
      "leadid": "319694",
      "first_name": "Faris",
      "projectname": "",
      "execution_id": "bfeb4d9a038a46909cc612c16022c8b6",
      "contact_number": "+ 971521271679",
      "contact_number2": " 971521271679"
    }
  },
  "assistantOverride": null,
  "assistants": null,
  "squadId": null,
  "squad": null,
  "analysis": {
    "summary": "Ivana from Fidu Properties called Fares to follow up on his interest in a project from a social media ad. Fares confirmed he has a budget of 2 million, is primarily interested in the specific project as an investment, and wants to proceed immediately. A meeting with a senior property consultant was scheduled for the following day at 3 PM.",
    "successEvaluation": "true"
  }
}
Isn’t this approach correct?
I am able to see when I try to use get Assistent using the API. But still unable to received Structured Data at the end of the call.
@Shubham Bajaj
s
@FaresAhmed Your using transient assistant for your call, for fair consideration I am sharing here the logs of the call so you can verify it by yourself.
@FaresAhmed you can check this file, and I have remove necessary data. You need to use assistantID in place of transient assistant. https://cdn.discordapp.com/attachments/1348537966242430976/1351229246248325120/message.txt?ex=67d99dcc&is=67d84c4c&hm=d2e3e0aa0456fe9a6b6dead0c37839940145f25a04b198c447708a4181291529&
2 Views