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
Related
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.
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.
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.
I have a bot that collects information in a private chat from User A about User B and then sends it to User B. I am collecting the information via Dialog and then formatting a HeroCard to be sent. I was using the Bot Emulator to test the private chat code, but I'm unable to test creating a new conversation () in the emulator without getting a 500 InternalServerError. When I deploy the code and integrate the bot into an existing Teams channel I receive 400 Bad Request responses.
Is there a tool to use that can help me debug creating a new conversation locally?
You need the user’s (User-B) unique ID and tenant ID to start 1:1 proactive conversation. Typically, these are obtained from a team context, either by fetching the team roster or when a user interacts with your bot in a channel.
Please check the sample code.
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.