Search code examples
c#botsbotframework

How to send a reminder in bot framework


I am building a test bot using Microsoft's Bot Framework / Bot Builder for C#.NET / LUIS. It is deployed on Azure. The idea for my test project is to send a reminder to the user.

For example, when user have a meeting in 1 hour bot should reply "meeting in 1 hour", it should initiate a conversation or send a reply to the existing conversation in one hours.

I have no problem parsing natural language into date and task using LUIS, however I have no idea how to schedule a task so that the framework would somehow send a reply to the user later on.


Solution

  • I would recommend you to take a look to the AlarmBot sample as it showcases a similar scenario. Per the docs:

    The alarm bot sample illustrates several concepts:

    • modifying the dialog stack based on external events (e.g. the passage of time)
    • proactively messaging the user based on external events (e.g. the alarm is ringing)