Skip to main content

Hi,

I have a question about “Next step” and “Action on reply”.
I have set up that after the user replies from the chat the response is saved in a field and send to OpenAI API with “Action on reply” → Action “External request”. After OpenAI API gives response its saved in a field and sent as a message to the user.
Sometimes this doesnt work and when the user answers, OpenAI API responds correctly and then the user sends another message, then the reply from OpenAI is the same because all responses are saved in to the same field for OpenAI API responses. The problem is the timing of the requests, maybe a timeout from someones side.
Will the problem be fixed if the Action External Request is set after “Next Setp” and then after action there is “Send Message”?

 

“Action on reply” → Action “External request” → “Send Message”

 

“Next Step” → Action “External request” → “Send Message”

Will this stop the repeating of Bot sending the same message from the previous OpenAI request?

Hi ​@Slaven ,
I believe you won’t be able to achieve 100% synchronization with either of the two approaches.

The second method is better than the first, as it waits for OpenAI’s processing time and only shows the response to the user after it's completed. However, in my opinion, it might still not work perfectly — because while OpenAI is generating the response, the user could send another message. And since the flow hasn’t yet reached the next data collection block, that second question may not be captured.

If your goal is simply to send a reply to the user, here’s a screenshot of a setup that works well. In this model, every time the user sends a message, the flow is re-triggered, ensuring that 100% of the questions are answered. The trigger here is the contact’s last interaction — as soon as they send a message, the flow activates.
 


 

You can use Condition blocks to control when the flow should or shouldn’t run, adjusting it to your specific use case.


Reply