AI Agent Studio: Any way to extract the REST API Error details into a meaningful message to user ? — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

AI Agent Studio: Any way to extract the REST API Error details into a meaningful message to user ?

Summary:

We are trying to use an agent team for creating absence for an employee and the REST API is giving an error at the background which is a valid error.

However instead of printing the error message, the agent is responding with - "Sorry, the assistant is unavailable right now. If the issue persists, contact your help desk."

Therefore wanted to know if any alternate way to parse the message into a meaningful user message:

I have tried to change the Default Agent Prompt and LLM Prompt but no luck.

Content (please ensure you mask any confidential information):

I am expecting the Agent to give me the answer - "You need to enter an absence duration that's more than 0. (ANC-3405003)"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!