Convertion of AskGPT output to string

Hi @ydhanabalan ,

We would recommend to check the Output representation in the Immediate Panel and get the required key to access the value. A Demo/implementation is shown below :

Debug Panel :
image

Expression to be used :

responseListOutput.Where(Function(x)x.ContainsKey("answer")).First.item("answer")

Assuming key “answer” would always be present in the output.

Also note that AskGPT is going to be deprecated soon :

https://forum.uipath.com/t/ask-gpt-activity-in-marketplace-deprecation/580648/2

2 Likes