I have 3 Independent waterfall models which are triggered by intents using Luis. I want to link these 3 models sequentially, I have been following the PictureBot coding style, and each dialog/waterfall has it's on state properties.
The 3 Waterfall Methods are as follows,
- WaterFall_1 - Query Azure Search, based on filters provided by the user, the Response is a list of Names
- WaterFall_2 - Will perform some REST action, taking the names from waterFall_1
- WaterFall_3 - Will again perform some REST action, taking the names from WaterFall_1
As of now, I have been passing the values through the chat-window, as the 3 Waterfall steps are loosely coupled, they can be called by the user as an independent component/feature of the bot, so my questions are
How do link the 3 Models, ie in If the user has triggered waterfall_1, and goes to 2 or 3, the dialog where the "Users" are asked is to be skipped? I am thinking that I would need both a Global and Local Getters and Setters for each Waterfall.
In the WaterFall_1, the last response sends the Query Result from Azure Search, ie the "Names", Should I endDialog right after or does the WaterFall_1 call the WaterFall_2 and/if WaterFall_3 and then I endDialog for 3,2,1?
The figure might give more context Simple figure