I created a Bot and added to Skype and Microsoft Teams. Both are responding fine for user messages (reply to user messages).
Following the documentation, I tried to send (ad-hock) proactive messages to users. This worked with Skype but it not with Microsoft Teams. It also did not provide any error messages.
Do I have to adjust any settings in Microsoft Teams or Office 365 in order to send proactive messages? Or is there any other specific way to send proactive messages for Microsoft Teams?
Figured out what was the error. Following code line should be added before calling SendToConversationAsync, CreateConversationAsync etc..
MicrosoftAppCredentials.TrustServiceUrl(ServiceUrl);
And I tested this for documentation and sample source. Both are working fine.
The documentation for this is found in this article: Starting a 1:1 conversation. There's also some sample source although it's part of a larger project.
See if that helps.
Related
i'm working on an application for teams and I need to know when a recipient read a message that was sent from a teams bot.
There is no feature available to get Read Receipt information of a message from a Microsoft Teams BOT
This item remains on the backlog in Teams UserVoice,
Microsoft will always focus on customer’s feedback and experience, some new features would be added to the services based on customers' feedback in the future, we also recommend you give your new idea in Teams UserVoice.
I have created a bot by following the steps mentioned in the doc.I have authenticated user using oauth 2.0 (auth code grant) as mentioned in the doc and in reverse I got a access token. But when I send message to channel in the teams using (/teams/{id}/channels/{id}/messages) API the message was sent on behalf of me. But I want my bot as the sender of message. Here is the image of the message that I have sent using the above API. and is there any way to send direct message to user as a bot?
Instead of using the Graph, there's another approach using the Bot Framework itself, to send a message to a team channel, a group chat, or a 1-1 conversation. The code doesn't even need to live inside the bot itself, it just needs to leverage the bot framework under the covers (for example, I have several Azure Functions that pro-actively message users). This idea is called "Proactive messaging" and you can read more about it in the docs here.
You do need to get certain fields when the user first installs the bot though, or any time the bot receives a message. I've described that more at Programmatically sending a message to a bot in Microsoft Teams. You haven't said what language you're using, but there are examples for a bunch of them - I can send you links if you let me know what you're using.
I have a bot deployed to our Azure subscription. Using the webchat channel, I can interact with the bot using the url:
http://mybotname.azurewebsites.net/
We have added the bot to Slack as an app. We followed all the instructions given by the documentation on how to add a bot into Slack - https://learn.microsoft.com/en-us/azure/bot-service/bot-service-channel-connect-slack?view=azure-bot-service-3.0
When I send a message to the bot in the Slack channel we have created, I get no response. There is not error message, or in fact anything, returned.
Whereabouts can I start looking to see what the problem could be? Suggestions for error logs, traces, etc would be appreciated. I enabled App insights for the Azure Web App which the bot runs under, but nothing comes up as an error, or warning, or anything. I'm a bit lost here, any suggestions would be appreciated.
Note that I was made aware that, for Slack, I may need to tailor the responses in order for Slack to render them e.g. FormFlow define options for string field
I'm not sure how to do that, or even if this is a case that my bot simply isn't working in Slack regardless of how I'd format the responses.
I've managed to build my first bot and registered it. It works fine with the Web Chat control, but through Skype I'm getting no response. The Skype registration worked and the bot it authorized ("Credentials have been validated."). The bot is enabled too. Just not published yet, but apparently that is not necessary for it to work, no? Inside Skype the bot appears online.
I know that is not much information, but maybe somebody has a few hints?
This is the bot:
https://join.skype.com/bot/d55bb62a-86e8-4eec-be63-4f068e347046
It does not much yet, but it should send a reply.
My fault, I had the wrong Messaging Callback Url in the Skype Bot Portal.
Just for reference, maybe this helps someone:
I had the same problem with my bot, using the VS template. It worked in webchat and Slack but it didn't respond in Skype. I think there is a weird bug with the Skype integration(at least in the default VS template) but try to start your message with a " "(space) or "."(dot). If the message contains a special sign the bot responds as expected.
Example:
'.How are you'
' Hello'
I created a bot using MS Bot Framework. Then I hooked it up with the Outlook Channel provided by Microsoft Bot Framework.
IT all was working fine and now I decided to remove the channel integration and did so as well. Unfortunately my outlook still replies to mails even after removal of channels. My bots home page on MS shows the below message:
"You haven't connected any channels yet. Select a channel to connect."
I have no clue why I see the replies. Its weird. Please help.
It looks like we have an issue on our side where we are not properly handling the case where you uncheck the "Enable this bot on Email" checkbox. I'll open a bug and get this fixed but in the mean time please use the "Deauthorize" button instead of the checkbox to disable your bot on a channel.