Inconsistency in Summary Output
# support
s
It appears that something VAPI is not providing summary output in the provided format and sometimes it follows the formatting why this is happening but the transcription is following the formatting.
v
Hi there! 👋 I understand you're experiencing inconsistency with VAPI's summary output formatting - sometimes it follows the expected format and sometimes it doesn't. While I can't pinpoint the exact cause in your specific implementation without more details, I can share several potential reasons for this inconsistency and some troubleshooting steps. ## Potential Reasons for Inconsistency 1. **Configuration Issues**: The summary is generated based on the assistant's
analysisPlan.summaryPlan
configuration. Inconsistencies might occur if this configuration isn't properly set up or is inconsistently applied. 2. **Parsing Errors**: According to [information from Discord](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1329542939160084624), certain tokens might not be parsable by VAPI/OpenAI, potentially causing errors in the summary output. 3. **Transcript Accuracy Issues**: The AI assistant relies on call transcripts to generate summaries. As noted in [this Discord thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333710576609787986), inaccuracies in these transcripts can affect the consistency of summary output. 4. **Data Formatting Problems**: VAPI expects specific formats for tool call results and other data. According to [this source](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342176467714572400), deviations from expected formats can cause issues that might affect summary generation. 5. **JSON Formatting Issues**: Line breaks and nested JSON in responses can cause problems. As mentioned in [this Discord thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334658296291921920), line breaks within strings should be properly escaped, and the
result
field should contain response data as a string without nested JSON.
6. **Summary Timeout**: If the summary timeout is insufficient, the summary generation might fail, as noted in [this conversation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333684196648026112). ## Troubleshooting Steps Here are some steps you can take to address this issue: 1. **Check Summary Configuration**: Verify that your
analysisPlan.summaryPlan
configuration is correctly set up and consistent across all calls. 2. **Review Recent Changes**: Identify any recent modifications that could be affecting the assistant's behavior, as suggested in [this Discord thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334114042876264518). 3. **Inspect Call Processing**: Look for errors in call processing that might prevent proper summary creation. 4. **Examine Payload Format**: Ensure the format of data being sent to VAPI matches what it expects, as mentioned in [this conversation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336456720913797238). 5. **Check VAPI Logs**: Look for indications of incoming requests and potential issues in the VAPI logs. 6. **Verify API Request Parameters**: Ensure all field names and parameters in your API requests are correct and properly formatted, as noted in [this thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1328923059905630238). 7. **Increase Summary Timeout**: If applicable, try increasing the summary timeout to give the system more time to generate the summary. Would you like me to elaborate on any of these points or provide more specific troubleshooting guidance? Sources: - [Discord thread about parsing errors](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1329542939160084624) - [Discord thread about transcript accuracy](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333710576609787986)
s
That's how I am providing summary instructions summarize the conversation with following: full name: {{first_name}} {{last_name}}, address: {{address}}, age: {{age}}, email: {{email}} conversation summary:
s
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!