cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

api answer as variable

Former Member
0 Kudos
460

Hello, I created a bot for purchase orders' validation. The user bascially asks to retrieve some purchase orders waiting for its approval and then asks for one or multiple validations. The API we created is for validating one by one and i want to use it to validate the whole list at a time but i don't know how i can formlize it into a variable.

In the picture is the answer ( purchase orders ) that we display to the user. Practically, i want to use these answers in variable. Do you have any idea how?

View Entire Topic
Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

I don't see the picture or body of your API.

Not exactly sure what you are trying to do, but I imagine you can use the new custom message type, where you can add scripting to go through the results of your API and then display what you want based on your validation.

Former Member
0 Kudos
I allow myself to rephrase my question, how I can insert the bot's replies to its memory so i can use them again in my api's body ?