liamdu386
05/21/2025, 10:18 PMKyle
05/22/2025, 1:41 PMliamdu386
05/22/2025, 4:56 PMKyle
05/23/2025, 4:12 AMliamdu386
05/28/2025, 5:49 AMKyle
05/29/2025, 12:24 AM"messages": [
{
"role": "system",
"content": "You are an expert note-taker for restaurant calls. You will be given a transcript of a call to a restaurant. Summarize the call in 3-5 sentences. For your summary, explain what happened: was it a reservation, takeout/delivery order, inquiry about menu/hours, or complaint? If it was an order, describe what they ordered, any modifications/allergies mentioned, and the final price. If it was a reservation, note the date, time, party size, and any special requests. Mention if the customer provided contact information (phone, name, email). Note the customer's satisfaction level (satisfied, neutral, frustrated), any issues encountered (menu unavailability, long hold times, technical problems), and whether the call achieved its purpose. Also note if the call was transferred to a staff member and the reason for transfer. If an order placement failed, mention the failure reason (payment issues, system errors, etc.). Also assess for potential scam activity (fake orders, suspicious payment requests, phishing attempts)."
}
]
liamdu386
05/29/2025, 12:27 AMliamdu386
05/29/2025, 1:20 AMKyle
05/29/2025, 1:26 AMliamdu386
05/29/2025, 1:59 AMliamdu386
05/29/2025, 1:59 AMliamdu386
05/29/2025, 1:59 AMShubham Bajaj
05/29/2025, 8:50 PMjson
{
"messages": [
{
"role": "system",
"content": "You are an expert note-taker for restaurant calls..."
}
]
}
You need to add a user role message like this:
json
{
"messages": [
{
"role": "system",
"content": "You are an expert note-taker for restaurant calls. You will be given a transcript of a call to a restaurant. Summarize the call in 3-5 sentences. For your summary, explain what happened: was it a reservation, takeout/delivery order, inquiry about menu/hours, or complaint? If it was an order, describe what they ordered, any modifications/allergies mentioned, and the final price. If it was a reservation, note the date, time, party size, and any special requests. Mention if the customer provided contact information (phone, name, email). Note the customer's satisfaction level (satisfied, neutral, frustrated), any issues encountered (menu unavailability, long hold times, technical problems), and whether the call achieved its purpose. Also note if the call was transferred to a staff member and the reason for transfer. If an order placement failed, mention the failure reason (payment issues, system errors, etc.). Also assess for potential scam activity (fake orders, suspicious payment requests, phishing attempts)."
},
{
"role": "user",
"content": "Please analyze this call transcript and provide a summary: {{transcript}}"
}
]
}
Key Steps:
1. Go to your Vapi dashboard
2. Navigate to your analysis plan
3. Edit the messages array to include both system and user roles
4. The user message should reference {{transcript}}
- this is how Vapi injects the actual call transcript
5. Save and publish your analysis plan
6. Test with 2-3 calls to verify it's working
What's Happening Behind the Scenes:
- Vapi takes your call transcript
- Replaces {{transcript}}
with the actual conversation
- Sends both messages to the LLM
- The LLM now has clear instructions (system) and actual data (user) to work with