lookupState - Custom tool not working
# support
v
@rob It seems like there might be an issue with the integration between your custom tool and the assistant's response. To address this, let's ensure that the
lookupState
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.
You can continue this conversation by mentioning me in the message.
r
How would you recommend achieving this?: "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."
Copy code
{
  "name": "lookupState",
  "role": "tool_call_result",
  "time": 1721967408602,
  "result": "No result returned.",
  "toolCallId": "call_sBT9oMBWpCXVLWnKgm2n6a6R",
  "secondsFromStart": 74.182
}
s
@rob share the recent call id pelase.
r
Resolved already
Was using wrong response