Our use case : at the end of a flow, I want to send a user to another flow, but that flow need to start in 24 hours, not right now.
We have created a module that manages a list of task to be run in the future (almost a copy paste of the old scheduler module).
We learned in the process that
jumpTo doesn’t work when called from a module. So we tried to cheat by sending a custom incoming event, catching it from the hooks, forcing the jumpTo from there and finally settings all the flags required to make sure the event is ignored by the QnA+NLU.
For some reasons though, the new custom crafted event doesn’t seem to go through the middlewares.
Im starting to think that an event created from a module (even if flagged as incoming) won’t go through the middlewares.
1 ) If you had to do it, how would you do it?
2 ) Am I wrong in assuming that a new custom event generated from a module won’t go through the middlewares?