It is possible to create a bot that interacts with Teams calls and meetings using real-time voice, video, and screen sharing. This bot can be used to receive call data such as the phone number and call start time.
To achieve this, you need to use the Microsoft Graph APIs for calls and online meetings. These APIs allow your Teams app to interact with users using voice and video to enhance the experience.
Here are the steps to create a bot that interacts with Teams calls:
Install the Microsoft.Graph.Calls.Media.NET library NuGet package within your Visual Studio project. This library is required for an application-hosted media bot.
Create a bot and specify some additional information and permissions. The Teams app manifest should include two more settings supportsCalling
and supportsVideo
.
Register the bot. In registering a calls and meetings bot for Teams, the Webhook URL is mentioned, which is the webhook endpoint for all incoming calls to your bot.
Deploy the bot on a Windows Server machine or Windows Server guest Operating System (OS) in Azure.
Here is a sample bot that demonstrates how a bot can receive media streams for recording: Policy recording bot
Please note that APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported.
Also, remember that bots on Teams support only a specific set of media formats for audio and video content.
For more information, you can refer to the requirements and considerations for application-hosted media bots and Microsoft Graph APIs for calls and online meetings.
Microsoft Graph with Teams Call
Swess72
1
Reputation point
Hey everyone
I made a new C# Console Application in Visual Studio 2019. This is connected with Microsoft Graph and this works perfect.
But now I want to make that my Application waits for new Teams Call and give back the Data of the Call. I already saw Teams Call Recard, but this takes too long. Now my Question, is this Possible or something similar. I must take the phonenumber and Phone start time instant out of Teams.
Thanks for any Help
Swess
1 answer
Sort by: Most helpful
-
Meghana-MSFT 3,771 Reputation points Microsoft Vendor
2024-01-23T10:36:39.8433333+00:00