Bot is bit confused to capture the user's intention - c#

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.

Related

How to start 1:1 conversation with user by sending OAuthPrompt

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.

Restrict users to reply in Teams conversation using c#

I'm developing a bot and adding it to Microsoft Teams. Whenever a action happens bot will reply to that action in same conversation thread by i dont want user to reply to that thread again.
So is this possible to restrict user to reply to a specific conversation using c#.

Botframework reminder chatbot

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.

How frequent can a ProActive bot send message to a user?

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!

How to disable auto-reply from users email when mailing via Bot

I have bot for mailing some info to my subscribers via info#domain.com. After sending all mailing, from users comes auto-replied letter like "they got mail, and will answer soon"~something like this.
Question is: How to stop or disable that auto-replied letter from users?
P.S: my mail box filled with auto-replied letters((
I want to get letter when the users himself sends.
P.S: before I used sendgrid service to mailing, so while using sendgrid I never got auto-replied mails. Now it's expensive for me((, so I decided to use just yandex.com service.

Categories