Hi guys, I have a problem and would love if someon...
# 💻developers
b
Hi guys, I have a problem and would love if someone can give me a hand I have this code: let config = { method: 'get', maxBodyLength: Infinity, url: 'https://api.resos.com/v1/bookingFlow/times?people=3&date=2023-12-27', headers: { 'Authorization': 'Basic adfgsadfg' } }; let data; axios.request(config) .then((response) => { data = response.data; console.log(data); }) .catch((error) => { console.log(error); }); What it does is take some info from an api and send back the info to botpress, the problem I am facing is that the data variable I cannot put it inside a workflow variable like workflow.data = data, it gives me an error, I tried to run the code in vscode and it gives back the info but when i try to put it in a workflow variable doesnt work, any ideas?