Carl_00
04/09/2025, 12:31 PMVapi Support Bot
04/09/2025, 12:33 PMjson
{
"structuredDataPrompt": "Extract all available information. If information is missing, use a default value instead of 'Not provided'.",
"structuredDataSchema": {
"type": "object",
"properties": {
"Name": { "type": "string" },
"Email": { "type": "string", "format": "email" },
"Phone": { "type": "string" },
"Schedule Time": { "type": "string" },
"Property Address": { "type": "string" }
},
"required": ["Name", "Email", "Phone", "Schedule Time", "Property Address"]
}
}
According to the [call analysis documentation](https://docs.vapi.ai/assistants/call-analysis), this approach gives you more control over how structured data is extracted.
## 2. Improve Email Format Validation
For email addresses, try these techniques:
- Request users to spell out their email addresses character by character: "Could you please spell out your email address for me? For example, j-o-h-n at e-x-a-m-p-l-e dot c-o-m"
- Repeat the spelled-out email back to the user for confirmation
- Implement text normalization and regex patterns to clean and validate email formats
According to [community discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1331353180570914878), having users spell out emails significantly improves accuracy.
## 3. Enhance Phone Number Format Validation
For phone numbers:
- Use the E.164 format as a standard (e.g., +15558675309)Vapi Support Bot
04/09/2025, 12:33 PMnumberE164CheckEnabled
to false
if you need to allow non-E164 numbers
- Use Format Plans with regex replacements to customize phone number formatting
For example, you can use a custom replacement rule to format phone numbers:
json
{
"formatPlan": {
"enabled": true,
"replacements": [
{
"type": "regex",
"regex": "\\+1(\\d{10})",
"value": "$1"
}
]
}
}
## 4. Maintain State and Handle Interruptions
Ensure your assistant:
- Maintains state throughout the conversation
- Handles interruptions gracefully
- Verifies all required information is collected before ending the call
According to [community discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344181455567196170), this approach helps ensure complete information collection.
## 5. Format Data for GHL Integration
When integrating with GHL:
- Ensure user input is correctly formatted as required by GHL before passing it to their module
- Use GHL webhooks as a custom tool with Vapi for integrating structured data
- Break down complex automations into smaller, focused workflows for better maintainability
The [GHL tools documentation](https://docs.vapi.ai/tools/GHL) recommends thorough testing of the integration to ensure reliable performance and accurate data passing.
Would you like me to elaborate on any of these strategies or provide more specific examples for your use case?
Sources:
- [Call Analysis Documentation](https://docs.vapi.ai/assistants/call-analysis)
- [Community Discussion on Email Formatting](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1331353180570914878)
- [Community Discussion on State Management](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344181455567196170)
- [GHL Tools Documentation](https://docs.vapi.ai/tools/GHL)Carl_00
04/09/2025, 2:46 PMKyle Brunker
04/11/2025, 7:02 AM