Send a message when user is back in teams MS botframework - c#

Is it possible to send message to the user when he left the conversation and come back after few mins.
I want to send a message to the user everytime he opens the chatbot in teams.

There's no way to detect this in Teams, unfortunately.

Related

The teams channel getting spammed with Bot intro message

I have added a bot to a Teams channel.
Each time a new user is added to the Teams channel the bot sends a welcome message inside the channel.
I want this message to be sent to the user personally and not to the whole channel.
You can send message to user on 1:1 using proactive message. When the user added to the team you will receive on member added activity there you can send a message to user personally. Please check this docs for more info and also check this sample

Bot is bit confused to capture the user's intention

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.

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#.

C# Lync/Skype for Business chatbot auto message

I have a working bot, but I want to figure out on how to initiate the conversation by my bot, when her profile in Skype for Business is clicked and showing the chat conversation, like she will instantly message the user "Hello!". The line of code below is the one sends the message, but it needs the user's credential to response.
Is it possible?
msgUIInstance.BeginSendMessage("Hello", null, null);
We would call that a proactive bot.
Here is a Sample of Auto initializing bot.
you can take a look at this GitHub repo, where you will find simpler examples on how to send proactive messages.

Categories