Bot Framework and Graph api

Timon Schmidt 31 Reputation points
2022-03-24T14:59:36.857+00:00

We want to make a bot that would help us to solve computer problems automatically.
Therefore we are using the bot framework to communicate with the user. However, we need a net of different diagnosis tools the decide what kind of problem we have to solve. Moreover there is already a working system people use to describe their problems.

After the diagnosis the bot framework agent is meant to use MS Teams to help our costumers with their problems. So it needs to be able to send users proactively messages. We think of using the graph api to identify the users in MS Teams.

Therefore our questions:
Is it possible to query the graph api using a bot in bot framework?
Where do we find help on how this is done?
Is it possible to extend the limits of graph api requests for this bot framework-bot?
Are there any contracts with microsoft to be able to execute a higher amount of requests per minute?

Best regards
Timon

Microsoft Teams Development
Microsoft Security Microsoft Graph
Microsoft Teams Microsoft Teams for business Other
{count} votes

1 answer

Sort by: Most helpful
  1. Sayali-MSFT 3,991 Reputation points Microsoft External Staff Moderator
    2023-10-30T08:00:26.1733333+00:00

    Timon Schmidt - Yes, it is possible to query the Graph API using a bot in the Bot Framework. You can use the Graph API to get information about users, send messages, and much more.

    To do this, you will need to authenticate your bot with Microsoft and obtain an access token, which you can then use to make requests to the Graph API. You can find more information on how to do this in the Microsoft Graph documentation.

    As for rate limiting, Microsoft does impose certain limits on the number of requests you can make to the Graph API per minute. However, these limits are generally quite high and are unlikely to be a problem for most applications. If you find that you are hitting these limits, you may want to consider optimizing your application to make fewer requests, or spreading your requests out over time.

    If you still need to make more requests than the rate limit allows, you may be able to negotiate a higher limit with Microsoft. This would likely involve entering into a contract with them and possibly paying for the additional capacity. You can find more information on this in the Microsoft Graph rate limit documentation.

    As for sending proactive messages to users, this is also possible using the Bot Framework. You can find more information on how to do this in the Bot Framework documentation.

    for general help with using the Bot Framework, you can refer to the Bot Framework documentation.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.