https://discord.gg/botpress logo
I need to wait for the api response then move forw...
# 🤝help
These are the log responses, check that the api response is late but the other nodes executed before the api response
This API is giving the late response
@bumpy-butcher-41910
w
So the problem is that your bot cannot get the workflow.is_lead on the node after ?
If it’s this kind of problem , try adding another execute code card and ask the AI to “wait for 2 seconds”
If that don’t solve your problem , I will try to look at it more deeper
g
Let me check with delay, and will get back to you it doesn't work thank you for the response
e
You can not use 'await' in front of your api call? const response = await axios.get(... Normally await force the code to wait the response 🤔 Look at this doc example of JIRA call : https://botpress.com/docs/execute-code
2 Views