I am trying to treat the response from a Rovo agent as a JSON object and reference it using dot notation. I have the agent response formatted correctly. Excerpt here:
{ "documentStatus": "PRD In Process", "documentOwners": [], "projectStatus": "", "prfaq": "", "epicTicket": "", "targetRelease": "", "designer": "", "techLead": "", "relatedDocumentation": [], "termsAndDefinitions": ""}
but I am unable to access any of the information outside the entire response.
I have tried using the 'jsonStingToObject()' method both as an entire variable creation and individually in line during the automation. I can not get any results with the jsonStringToObject call either in dot notation, or for the entire string.
Anyone here had success with either of these methods? Or know of a better one?
I came across this while trying to solve the same problem. The workaround that seems to have worked for me is saving {{agentResponse}} as a variable then passing that variable to the jsonStringToObject() function. From there I was able to use dot notation to call other values in the JSON that Rovo returned to me. Hope that helps you too!
Just following up to check if this answered your question. If so, please consider marking this one as "answered". That will help others with a similar need find solutions faster. If not, please let the community know what help you need with the rule changes.
Thanks, and kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not sure but are the agent responses JSON, I think they are text.
Do you get results, when using {{agentResponse.documentStatus}} or even simpler {{agentResponse}}
What are the responses?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.