Thibaut
08/18/2024, 12:47 PM{
"message": {
"type": "function-call",
"functionCall": {
"id": "OUR-TOOL-ID",
"name": "getOrderInformations",
"parameters": {
"orderId": 821822
}
}
}
}
This returns the following code:
{
"results": [
{
"toolCallId": "OUR-TOOL-ID",
"result": "The status of order 821822 is : In delivery"
}
]
}
However, when we communicate an order ID to the voice assistant, it always tells us that it can't find an order with our ID.
Can you help me?
Thanks in advance for your help
https://cdn.discordapp.com/attachments/1274711176818987018/1274711177057800232/Capture_decran_2024-08-18_a_14.46.22.png?ex=66c33ecb&is=66c1ed4b&hm=ba6aed86ac5e8e001f9073cba79d933c3442d4aeeb1d2bbc3744e61a4a43c2bc&Vapi
08/18/2024, 12:48 PMVapi
08/18/2024, 12:48 PMThibaut
08/18/2024, 12:51 PMVapi
08/18/2024, 12:51 PMorderId
is being passed correctly.
3. **Test the Connection**: If possible, manually make a POST request to the custom tool using a tool like Postman or cURL with the same parameters to see if the correct response is returned.
4. **Error Handling**: Ensure that the assistant has proper error handling to catch any issues that may occur during the API call to your custom tool.
5. **Logs**: Check the logs for any errors or messages that could indicate what might be going wrong when the assistant attempts to retrieve the order information.
If after these steps the issue still persists, it might be helpful to provide a specific error message or behavior that the assistant is exhibiting when it fails to find an order with the provided ID. This will help narrow down the cause of the problem.Thibaut
08/18/2024, 12:53 PMVapi
08/18/2024, 12:53 PMThibaut
08/18/2024, 12:54 PMSahil
08/18/2024, 1:00 PMThibaut
08/18/2024, 1:02 PMSahil
08/19/2024, 11:41 AM