I am using BotFramework v4 with C#. I haven't yet tried making a proactive bot. But i am planning to do a Reminder-like feature. The user can make the bot remind him/her of something. So my question is can the bot remind a user everyday, everyweek or everymonth? Can you specify specific day or hours?
The Bot Framework SDK does not limit how many proactive messages can be sent; however, some channels do throttle messages from bots in general. As long as you not spamming a user, it should be fine.
Hope this helps!
Related
I wanted to see if there is a way to receive new messages that are sent in the Discord chat ? In fact,I need this to happen in a Discord account, not a robot.
thanks
Since Discord.Net 2.0 user tokens disallowed for usage with API. It was announced at Discord GitHub here. As #Jeff Chen said, Discord Bots provided for that purposes. So I highly recommend you to deal with bots and get the desired result.
I have enabled email channel in azure and deployed bot in azure.
the bot is bit confused to capture the users intention
For example:- If user sent a mail to bot like
The bot needs to capture "what can you do" and need to send a reply but bot is capturing
"HI Bot.\r\n\r\n\r\n\r\nWhat can you do\r\n\r\n\r\n\r\nThanks and regards,\r\n\r\nKrishna."
IF user sends
The bot needs to capture "hi" and need to reply with specific responce
but the bot is capturing "hi\r\n\r\n\r\n\r\nThanks and regards,\r\n\r\nKrishna.".
is there any way to understand the users intention?
if user mails only greeting the bot has to welcome the user with welcome message. if user mails a question with greetings the bot has to capture specific users intention.
Because every user has different standard signatures and formats in their mails.
please suggest me the best approach.
I'm using Bot Framework v4 and c# to build a teams bot that signs in user when added to channel.
My use case, is that each time a new user is added to the channel, I want to send him an OAuthPrompt in 1:1 in order to sign him in.
The samples provided for proactive message shows only how to send a simple message, and can't find the right resources to solve this problem.
Does anyone know how they made bot like this and this? I am using BotFramework V4 and C# and i need to make a reminder feature like this.Does this use proactive bot? and if yes can someone explain in layman how proactive bot works? Thanks!
Update:
That likely uses proactive messaging, yes. I'm not sure if either of those use Bot Framework, but to do that in Bot Framework, you'll need proactive messaging.
Samples:
C#
Node
A proactive message is generally either:
A message sent to a user that hasn't spoken with the bot before (this is how Teams defines it), or
A message sent to a user that the bot has spoken with previously, but the message being sent is not really a part of the previous conversation (this is more how Bot Framework defines it)
Please see the docs linked above for more detail.
The gist of it, however, is that when a user talks with the bot, you save a reference to that conversation. At any future date that you want to talk to that user, you use that reference of the conversation (because it contains all of the pertinent user data) to message the user.
The tricky part with something like a reminder, however, is having the bot perform it at a particular time. Something like Task.Delay doesn't work very well at scale over long periods of time. The best thing to do for long, time-based delays would be set up some kind of other server to keep track of the time. Once that time expires, send a request to the bot to send the proactive message. The Proactive Sample does something kind of like the last part of that by accepting requests at api/notify.
Following this post, Microsoft Botframework: Direct Conversation with Bot Channel, I implemented this code into my own bot, getting the error "Bots Cannot Message Users in External Teams". What does this mean and is there a workaround?
Ok, so here's what I did. I went back through Slack and resaved all the settings, and then it worked!. Also, make sure the workspace IDs match for your bot and who you're sending the message to.