cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

I want to loop a skill, so I created variable "i" and set to 0 and "n" and set to "{{length api_service_response.products.body.value}}" and calling a skill which is having the IF condition that is

but it is not taking n value as integer value, and i am getting the error

so I have changed the condition and calling the same skill but still facing recursion error

Basically i want to use the memory variable "i" in "{{api_service_response.products.body.value.[memory.i].ProductID}}" and print an array of values by recursion, I am getting result as null,

how to do print array values dynamically in CAI, how to change string values to integer values?

you can find the bot here https://cai.tools.sap/kishorech/recursionbot/train/intents

can you help me here
Thanks
Kishore

0 Likes
View Entire Topic
JonasB
Advisor
Advisor
0 Likes

Hi Kishore,

please have a look at the newly released "Custom" send message type. You can use scripting to build up the list entries dynamically by looping through the API service response.

Regards
Jonas