Hi everyone, I could use some help with Botpress.
Iām trying to run an HTTP request from inside an Autonomous Node using two dynamic variables: user.Whatsapp and workflow.orderId.
Hereās the issue:
The bot is not managing to set the value into workflow.orderId dynamically before reaching the HTTP request. So, the request fails with a TypeError saying it canāt read undefined.
However ā if I manually predefine a value in that variable (for example by hardcoding it in the variable editor), the HTTP request works fine. So it seems like the HTTP Request block can access the variable only if itās already defined before the node runs.
In my workflow:
⢠1st node - Iām using AI Task to extract the value and save it to workflow.orderId.
⢠2nd node - Autonomous Node, which contains an HTTP Request card that uses the variable in the URL like this:
https://api.example.com/status?phone={{user.Whatsapp}}&order_id={{workflow.orderId}}
The bot just canāt make the request unless the variable was already set before the Autonomous Node runs.
Any ideas on how to ensure the Autonomous Node waits for or pulls the most up-to-date values?
Thanks so much in advance!