Vapi
07/26/2024, 3:49 AMlookupState
function is being called correctly and that the assistant is properly handling the response.
First, we need to confirm that the lookupState
function is being triggered with the correct Zip Code parameter and that it is returning the expected result. If the function is part of an external system like make.com, you should check the logs there to ensure that the function is being called and that it's returning the correct state for the given Zip Code.
If the function is working as expected, then the issue might be with how the assistant is processing the result. The script within your prompt should dynamically insert the state into the placeholder {lookupState result}
. Make sure that the assistant's script is set up to receive the Result
parameter from the lookupState
function and replace the placeholder with the actual state.
If you're still encountering issues after checking these points, it might be necessary to look into the specific error messages you're receiving or any logs that could provide more insight into where the process is breaking down. If you need further assistance with this, please provide more detailed information or consider reaching out to support for a deeper investigation.Vapi
07/26/2024, 3:49 AMrob
07/26/2024, 3:50 AMrob
07/26/2024, 4:33 AM{
"name": "lookupState",
"role": "tool_call_result",
"time": 1721967408602,
"result": "No result returned.",
"toolCallId": "call_sBT9oMBWpCXVLWnKgm2n6a6R",
"secondsFromStart": 74.182
}
Shubham Bajaj
07/26/2024, 2:10 PMrob
07/26/2024, 9:09 PMrob
07/26/2024, 9:09 PM