Botbuilder-dotnet: Ability to create Proactive triggers

Created on 6 Nov 2019  路  8Comments  路  Source: microsoft/botbuilder-dotnet

Is your feature request related to a problem? Please describe.
Firstly, I want to say how fantastic this tool is and exactly what I think people need to really get started with Bot Framework. It took me quite a while to get my head round dialogues and the flow of a Bot but this makes it so much easier to understand.

This request though is about whether you could include support for Proactive triggers, especially around getting those in to a dialogue. It's something I struggled with but I feel there are a lot of scenarios with Bots to chase people for updates that would use this.

Describe the solution you'd like
Similar to the ability to add intents, include the ability to create a Proactive trigger that would create a Controller with associated method in the Bot class and have the ability to link that in to a dialogue if needed as well. It could also include guidance on using Logic Apps with a schedule for starting the Proactive trigger.

Describe alternatives you've considered
Only alternative would be to do it yourself!

Additional context
I have an example of Proactive triggers connecting in to an existing dialogue at https://github.com/kevmcdonk/WhereOnEarthBot/blob/master/DailyBingChallengeChooserBot/Controllers/GetReminderController.cs but feel that the code needs tidying up before integrating. I'd be happy to investigate in a PR.

Bot Services R10 customer-replied-to customer-reported investigate triaged

Most helpful comment

This is done in PR #4063.

@vishwacsena is also building a sample.

All 8 comments

Thanks for the issue. We will be discuss as a team and might have some further questions on this scenario.

@vishwacsena can you comment as to best practice to utilize custom events and other runtime concerns to achieve this scenario? Maybe a doc is necessary to define where we are at today and expose gaps that we can seek to fill in Adaptive Dialogs.

@vishwacsena I would love to see some instructions on how to use custom events or other solutions to support proactive dialogs.

This is an underlying gap with adaptive dialogs. Transfering this issue to track support for proactive in adaptive dialogs to the dotnet repo.

There is currently no planned work in adaptive / composer in the R9 timeframe to support proactive triggers.

@stevenic believes this should be in R10. Triaging to there for now.

This is done in PR #4063.

@vishwacsena is also building a sample.

@cleemullins I understand this now gives us the ability to use proactive triggers in adaptive dialogs, correct? I believe the original issue mentioned if it would be possible to use proactive triggers in Bot Framework Composer. Am I correct that an activity trigger must still be implemented in Bot Framework Composer to expose this new adaptive dialog functionality?

Was this page helpful?
0 / 5 - 0 ratings