Search code examples
node.jsnotificationsbotframeworkazure-cognitive-services

Need help to build a time based notification of microsoft Bot


I am looking for a solution where I need my bot to send notifications to all the users that have interacted with the bot before. This should happen on time demand, for example I would like to send notification only for alternate Friday at 5pm CDT.

I have trie the sample 16.proactive-messages but the the notification trigger is based on a controller so we have to send explicit request to http://localhost:3978/api/notify to proactively message users from the bot.

I am using bot builder Nodejs sdk 4.x to build the bot.

I would like notifications to go on demand based on the set time and date.


Solution

  • The fastest way to meet your requirement is following the official sample that you tried. To send a notification to uses, you should send a request to api/notify endpoint.

    You can create a scheduled webjobs to send this request to your bot so that your bot will send notifications to your users.

    Hope it helps.