skeang
07/14/2024, 10:09 AMresult [
{
toolCallId: 'call_bI3gI2z2iQZ50nnXZjWLKXRP',
result: { message: 'Price for 2 people is $199.00' }
}
]
But when the voice answers the user, it said "269 dollars" instead.
This is the call: https://dashboard.vapi.ai/calls/d79d4232-0ae8-4bcd-b635-08ec1e975186
How should I go about debugging this?
Thank you for your help!Vapi
07/14/2024, 10:11 AMVapi
07/14/2024, 10:11 AMskeang
07/14/2024, 5:00 PM{
"role": "tool_calls",
"time": 1720942669091,
"message": "",
"toolCalls": [
{
"id": "call_bI3gI2z2iQZ50nnXZjWLKXRP",
"type": "function",
"function": {
"name": "getProductPrice",
"arguments": "{\n \"productName\": \"5 Minute Helicopter Ride over Melbourne CBD\",\n \"numberOfPeople\": 2\n}"
}
}
],
"secondsFromStart": 27.478
},
{
"name": "getProductPrice",
"role": "tool_call_result",
"time": 1720942669113,
"result": "Success.",
"toolCallId": "call_bI3gI2z2iQZ50nnXZjWLKXRP",
"secondsFromStart": 27.5
},
{
"role": "bot",
"time": 1720942671340,
"source": "",
"endTime": 1720942677700,
"message": "The 5 minute helicopter ride over Melbourne CBD for people is 269 dollars. Would you like to proceed with booking?",
"secondsFromStart": 29.35
},skeang
07/14/2024, 5:00 PMVapi
07/14/2024, 5:01 PMskeang
07/14/2024, 6:05 PM"messages": [
{
"type": "request-completed",
"content": "The prices is..."
}
],
It always just say those 3 words and goes silent.
2. Changing the response to text:
[
{
toolCallId: 'call_bI3gI2z2iQZ50nnXZjWLKXRP',
result: 'Price for 2 people is $199.00'
}
]
3. Changing it to just the price "$199.0"
4. Changing the key to "price"
[
{
toolCallId: 'call_bI3gI2z2iQZ50nnXZjWLKXRP',
result: { price: $199.00 }
}
]
But it never give back the exact price.skeang
07/14/2024, 6:06 PMskeang
07/14/2024, 6:11 PMShubham Bajaj
07/15/2024, 12:53 PMskeang
07/18/2024, 12:10 AMskeang
07/18/2024, 12:10 AM📢 ANNOUNCEMENTS
07/18/2024, 12:59 AM