I'd like to query both my own presence and other users' presences in Teams. Ideally I would like to receive notifications when they change so I can change my internal state.
The graph API doesn't appear to have this functionality today.
Unfortunately this is not yet available. We do have plans to add this to Microsoft Graph but we do not have an ETA.
The API for the presence is now in beta: Graph Api beta
Related
I have a group chat on Microsoft Teams with 4 members: 3 people and a bot. Is it possible for the bot to add a new member to the existing group chat?
I found the method deleteConversationMember of the class BotFrameworkAdapter, which should remove an existing member. Well, I would need the opposite, adding a new member.
I have also checked Microsoft Teams Graph API, but it seems to be possible only to get members and not add a new one.
As I see from your comment, you're trying to have the bot escalate, or "hand off" to a service desk agent. If that's correct, you can have a look at another model for this altogether, where the user continues to chat with the bot, but the messages are being sent, by the bot, to an agent behind the scenes. This is referred to as a "handoff", and you can see a blog post here and source code (from the blog author) here on github
The BotFrameworkAdapter methods use the Bot Framework REST API, which itself calls channel-specific API's. As you've seen in the Teams Graph API, adding a member to a group chat is not currently supported and even if it was that Graph API is in preview and not suited for production applications. This document explains how to give feedback if you want to request this feature.
As a workaround, I recommend having the bot give the existing group members some instruction on adding the new member to the group themselves.
If you'd like to go with a bot-to-human handoff solution like Hilton suggested, you might be interested in this new sample: https://github.com/arturl/lpproxybot
I have setup a microsoft bot with LUIS and I am wondering if Microsoft provides an interface for tracking all interaction either failed or detected and allow us to map them to correct intent like Dialogflow and Microsoft Bot Framework.
I think you should look on the documentation. The main regarding your question is the new Dashboard feature announced at Microsoft Build 2019.
Basically it provides graphs like this one:
Or this one, by intent:
Those graphs allow direct access to the intents / utterances which have problems.
See documentation: https://learn.microsoft.com/en-us/azure/cognitive-services/luis/luis-how-to-use-dashboard
Note: it was also possible before the arrival of this dashboard feature
In Skype for Business Bot , User is pre-authenticated, need to get Microsoft graph access token , in order to perform Microsoft Graph operations (such as adding events to calendar) in programmatic way..
Please suggest how Microsoft Graph Apis can be integrated with Azure Bot for Skype for business channel.
We want Skype for Business bot to book the meeting just like described here
But instead of Teams need to use Skype for Business. but basically this code line will ask user to explicitly in this code sample
"await context.Forward(new AzureAuthDialog("
There is another sample that need Adminconsent to update the calendar of specific user
Swati
You cannot reuse anything from the pre-authentication. Like any other channel, you have to go through a specific authentication phase.
You have a great sample on the official repository to do this, here: https://github.com/Microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/24.bot-authentication-msgraph
Is there any API or script to get back a list of all live Google Play subscriptions for a given app? ie a data form of what's shown on the Play developer console under Subscriptions.
Stripe, for example, has an explicit list subscriptions API, but I can't find the equivalent for Play.
UPDATE: Since writing this, I've enquired to official sources and I can confirm there is indeed no API to retrieve all of your subscriptions. Certainly surprising, but that's where it stands.
As described in the documentation on the device you can use the getPurchases() method returns live subscriptions.
On the server there is the Google Developer API Purchases.subscriptions REST Object.
We have a public channel which we would like to link to from an external site. Unfortunately the link which teams gives will not add you to the team. How do I add the user to the team so that the link will kick them into that team's channel?
Right now there is no way to add a user except through the team owner's add user interface. We are working on Office Graph APIs that would support this, but no ETA on that yet.
You can use the MS Graph APIs for adding users to the underlying group. It may take up to an hour for it to be reflected in Teams. We are working on enhancing the Graph APIs to eliminate this latency completely.