To retrieve the API response and to display it to the user, please follow the below steps.
Add a Prompt/Message node after the actions node.
Select the Variable where you stored API Response.
Using the dot notation, access the value of API response.
Finally, when a user messages the bot, the id would be displayed to the user.
Transformation Function can be used when you wish to modify/manipulate the API response in order to present the API response in a more meaningful format to the user.
- Add the a function in the transformation function
- After your logic, please return the value so that would be saved in a variable. You could use the variable in Prompt or Message node to send that to user.
A sample transformation function to modify the information which we get from shopify API.
Another example transformation function here.