FaresAhmed
03/11/2025, 5:54 AMVapi Support Bot
03/11/2025, 5:55 AMstructuredDataPrompt
and structuredDataSchema
properly configured in your assistant settings:
json
{
"structuredDataPrompt": "Extract all of the information needed for the desired properties of the call.",
"structuredDataSchema": {
"type": "object",
"properties": {
"budget": { "type": "string" },
"purpose": { "type": "string" },
"preQualificationStatus": { "type": "string" }
},
"required": ["budget", "purpose", "preQualificationStatus"]
}
}
2. Enable server messages for end-of-call reports:
typescript
serverMessages: ['end-of-call-report']
This ensures the report is sent to your webhook when a call ends [source](https://discord.com/channels/1211482211119796234/1211483291191083018/1342410769232302122).
3. **Verify webhook setup**:
Ensure your webhook is correctly configured to receive and process the end-of-call reports. Here's an example implementation:
javascript
app.post('/vapi-webhook', async (req, res) => {
const message = req.body;
if (message.type === 'end-of-call-report') {
// Check if structured data exists
console.log(message.artifact?.structuredData);
// Process the data
}
res.status(200).json({ success: true });
});
4. **Check timeout settings**:Vapi Support Bot
03/11/2025, 5:55 AMPraveen Nair
03/12/2025, 7:08 PMFaresAhmed
03/13/2025, 5:28 AMFaresAhmed
03/13/2025, 5:28 AMPraveen Nair
03/16/2025, 8:39 AMcurrent
"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"
}
FaresAhmed
03/16/2025, 8:56 AMPraveen Nair
03/16/2025, 6:17 PM