Need Urgent Assistance
# support
j
Hi, we have an assistant in vapi actually multiple but the issue we are getting is after setting server url and server message "end-of-call-report" and given several improved instructions for the structure data prompt several times but still we are unable to get structure output in the end or call report just got the summery but no sign of structure data This same procedure we used to get structure data few weeks ago but it's not working now Please have a look and guide us other than documentation if we are missing something or it's the issue in your latest release thanks.
v
Try this actionable step: Double-check that your assistant's
analysisPlan
includes both a
structuredDataPrompt
and a valid
structuredDataSchema
. Here’s a sample configuration you can use to test:
Copy code
json
"analysisPlan": {
  "structuredDataPrompt": "Extract the following fields: name, email.",
  "structuredDataSchema": {
    "type": "object",
    "properties": {
      "name": { "type": "string" },
      "email": { "type": "string" }
    },
    "required": ["name", "email"]
  }
}
If this does not resolve the issue, please contact [support@vapi.ai](support@vapi.ai) as there may be a recent platform change or bug affecting structured data extraction. Reference: [Call Analysis Customization](https://docs.vapi.ai/assistants/call-analysis#customization) Sources: - [Call Analysis Customization](https://docs.vapi.ai/assistants/call-analysis#customization) - [Vapi Support](https://docs.vapi.ai/support)
p
Make sure the serverUrl is set at the assistant level, increase structuredDataRequestTimeoutSeconds to 20, delay your data fetch by 120 seconds post-call, check for valid JSON formatting in your prompt, and verify your assistant’s configuration aligns with your structured data schema.
j
@king@KINGS BIG Thanks for the help the issue was timeoutseconds But now i face dynamic variables not replacing its orignial values on n8n successfully send the values but not getting values on vapi prompt place holder where uses curly braces according to the vapi docs not get replace. Can you help me on that ?
p
If you are initializing the call on N8N, make sure that the variable's names match the ones you put in assistant overrides.
j
@KINGS BIG These are Matching already but still face the issue
v
To help diagnose the dynamic variable issue: Could you please share a sample of the exact JSON payload you are sending from N8N (with sensitive data redacted), especially the
assistantOverrides.variableValues
section and the prompt where the variable is used? This will help identify any subtle formatting or naming issues. Source: - [Vapi Dynamic Variables Guide](https://docs.vapi.ai/assistants/dynamic-variables#send-the-request)
p
Ensure you're passing dynamic variables to Vapi using the assistantOverrides.variableValues field in your n8n HTTP request, formatted like {"assistantOverrides": {"variableValues": {"name": "John"}}}, as placeholders ({{name}}) won't auto-replace unless set via the API, not in the dashboard.
j
"assistantOverrides": { "variableValues": { "user_name": "abc", "user_email": "abc@gmail.com", "user_phone": "+111111111", "contact_id": "abc" } }
In vapi model configuration inside first message user_name is accessible and get replace because agent call my namewhen call start but in system prompt dynamic variables are not getting replaced by original value.
As you can see in the screenshot, the variable is already dynamic in the same way you described.
v
To help resolve your issue: Could you please share the exact prompt text from your assistant where you use the dynamic variable placeholders (e.g.,
{{user_name}}
)? This will help verify if the variable names and formatting match your API payload. Source: - [Vapi Dynamic Variables Guide](https://docs.vapi.ai/assistants/dynamic-variables#send-the-request)
To help resolve your issue: Could you please share the exact prompt text from your assistant where you use the dynamic variable placeholders (e.g.,
{{user_name}}
)? This will help verify if the variable names and formatting match your API payload. Source: - [Vapi Dynamic Variables Guide](https://docs.vapi.ai/assistants/dynamic-variables#send-the-request)
Thank you for sharing your payload. To help pinpoint the issue, could you please copy and paste the exact text of your system prompt (with the variable placeholder) as it appears in your assistant configuration? This will help verify if the variable syntax matches what Vapi expects. For reference, variables should be referenced as
{{user_name}}
in the prompt ([see docs](https://docs.vapi.ai/assistants/dynamic-variables#send-the-request)). Source: - [Vapi Dynamic Variables Guide](https://docs.vapi.ai/assistants/dynamic-variables#send-the-request)
Thank you for sharing your payload. To help pinpoint the issue, could you please copy and paste the exact text of your system prompt (with the variable placeholder) as it appears in your assistant configuration? This will help verify if the variable syntax matches what Vapi expects. For reference, variables should be referenced as
{{user_name}}
in the prompt ([see docs](https://docs.vapi.ai/assistants/dynamic-variables#send-the-request)). Source: - [Vapi Dynamic Variables Guide](https://docs.vapi.ai/assistants/dynamic-variables#send-the-request)
Thank you for sharing your payload and details. To help pinpoint the issue, could you please provide the exact content of your system prompt where the dynamic variable (e.g.,
{{user_name}}
) is not being replaced? This will help check for any subtle formatting or naming mismatches. Source: - [Vapi Dynamic Variables Guide](https://docs.vapi.ai/assistants/dynamic-variables#send-the-request)
Thank you for sharing your payload and details. To help pinpoint the issue, could you please provide the exact content of your system prompt where the dynamic variable (e.g.,
{{user_name}}
) is not being replaced? This will help check for any subtle formatting or naming mismatches. Source: - [Vapi Dynamic Variables Guide](https://docs.vapi.ai/assistants/dynamic-variables#send-the-request)
j
Here is text from system prompt : 1. Phone number confirm the user that {{user_phone}} is the user best phone number by spelling is and if now then get some best phone number to reach out. If no: Ask for the best number and repeat it back digit by digit. 2. Email address confirm user email {{user_email}} is the email fo the user after spelling it one by one
v
Thank you for sharing your prompt and payload details. To help diagnose the issue further: When the call runs, what exactly appears in place of
{{user_phone}}
and
{{user_email}}
in the system prompt?
- Do you see the actual values, the variable placeholders (e.g.,
{{user_phone}}
), or are they left blank? This will help determine if the variables are not being resolved at all, or if there is a rendering issue. Source: - [Vapi Dynamic Variables Guide](https://docs.vapi.ai/assistants/dynamic-variables)
j
@KINGS BIG @Vapi Support Bot Can you help me on this
v
Thank you for sharing your system prompt and payload details. Since variable replacement works in the first message but not in the system prompt, could you please confirm if you are editing the system prompt directly in the Vapi dashboard, or are you setting it dynamically via the API? This will help determine if the issue is related to how the prompt is being configured or updated. Example: - Editing in dashboard UI - Sending as part of API payload This detail will help narrow down the cause. Source: - [Vapi Dynamic Variables Guide](https://docs.vapi.ai/assistants/dynamic-variables#send-the-request)
j
@User Support Bot Editing in dashboard UI
@Vapi Support Bot ??
@KINGS BIG , Can you help me on this ?
@KINGS BIG
p
In assistantOverrides object, let's say you have this:
Copy code
"assistantOverrides": {
  "variableValues": {
    "name": "abc"
   }
}
Your dynamic variable will be available as {{customer.name}}. Try to call this variable instead.
2 Views