Tool response message not showing for Error Status
# support
d
I noticed that when our server returns an error Status with a specific message to the assistant, the assistant doesnt get the specific message. Instead, it always receive: No results returned. Even if the response contained a specific message regarding the error. Our response structure is the same as the successful tool response structure, which the message is correctly diplayed to the assistant.
v
@Daniel F. I'm sorry to hear that you're experiencing issues with error messages not being properly relayed by the assistant. It's important that error messages are communicated accurately to diagnose and resolve issues effectively. To address this, we should ensure that the error handling within the assistant is correctly implemented to capture and display specific error messages from the server. It might be necessary to review the assistant's code to check how it processes error statuses and their associated messages. If you have access to the server logs or can provide more details about the error response structure, that would be helpful in identifying the root cause of the issue. If the problem persists, I would recommend reaching out to the support team with specific details so they can investigate further. Please let me know if there's anything else I can assist you with!
You can continue this conversation by mentioning me in the message.
m
is it a dynamic message you're trying to return on failure or static
d
@User For example, the assistant sends a tool call to our server to authenticate a client using his phone number as a parameter. If the authentication succeed: Our server returns status 200 with a message: "The client as been authenticated". This message is shown in the tool call response in the call transcript. If the authentication fails: Our server returns status 422 with a message: "We could not authenticate you.". But the message shown on the transcript is always : "No results returns" instead of the specific response message we send. This seems to be the case with all status that are not 200-299.
m
my understanding is you want to say a different message when it fails am I correct
and have that message show in your transcript
d
Yes I want the specific message generated by our server to be passed to the assistant for error status (like it is for success status)
m
gotcha and is that message the same message every time it succeeds?
d
The Success messages vary depending on input.
m
what about the failure message?
d
They also vary, depending on what failed
m
okay and this is for your back end system you don't care what it tells the customer talking to the agent? or it's being used to tell the customer why it failed?
d
It is used to tell the assistant why it failed, so the assistant can take action, modify the input of the tool and try again
Right now it always receive a generic "No results returned" so it can't know what went wrong exactly
@Mason | Building KOI I was wondering if VAPI just doesnt process messages from Status 400-500 response and just pass "No results returned" to the assistant instead
s
@Daniel F. can you share the call Id so I can take a look?
2 Views