Handle side scenario occurring at random moment


I am trying to build a chatbot in which a side scenario may appear at any given moment inside a main scenario. One such example would be a chatbot replying to restaurant reservations, but as soon as the user states a specific intent (‘I am vegetarian’), the chatbot should move to a different dialogue flow, asking the user more info about his food preferences. Later, based on his food preferences, the chatbot returns to the main conversational scenario.

I thought about building two completely different models and handling each scenario with one separate model. But is it possible to do it using a unified approach (only one model)?

Thank you!

The financial-demo has examples of this using forms. You can see example stories here.