cancel
Showing results for 
Search instead for 
Did you mean: 

api answer as variable

0 Kudos

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?

0 Kudos

here is the body for my API when i need to validate just one. How can put multiple orders?

Accepted Solutions (1)

Accepted Solutions (1)

former_member210123
Active Participant
0 Kudos

hi. You have to use webhook if you want to do something like that. else you can try adding it to memory and then call it once.

Answers (1)

Answers (1)

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.

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 ?