Hello, I have written a Bot with a chat accepting ...
# 💻developers
q
Hello, I have written a Bot with a chat accepting user inputs and then I have a node in the workflow which is of type Execute Code. After the code executes, I need to transition to the next node in the workflow to do other tasks. The code written in node.js works completely fine. The problem I'm facing is that the execute code block seems to be triggered but then the workflow immediately moves onto the next node without waiting for the code block to complete. I tried using an expression like task_completed == true to ensure the workflow moves to the next node only after the code block populates this variable but it doesn't seem to work. I'm looking for suggestions and tips to resolve this. Thanks