Skip to Content

api answer as variable

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jul 27, 2020 at 10:45 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 28, 2020 at 08:52 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.