Problem in Custom Actions

I have a problem with my chatbot. My chatbot will make a prediction on the stock market.

The problem is during the execution of the action. The action is executed several times and it repeats the training and calculates it of prediction. I think this problem is because of the time that goes into the prediction can you helpe me ? it’s possible to pause the whole conversation until I finish the prediction and without starting a new session each time?

There is a pause event: https://rasa.com/docs/rasa/api/events/#pause-a-conversation

Hey @Gehova

The action is executed several times

Not sure what yo mean by that. Probably, it would help if you can share your stories and custom action source code.