Forum Discussion
SomeUser404
Dec 13, 2023Copper Contributor
Query Regarding Bot Development and User Impersonation in Microsoft Teams
Hello, I am currently working on a project where I want to integrate a bot with Microsoft Teams. However, instead of the bot having its own identity, I want it to use a specific user account to send...
SomeUser404
Dec 13, 2023Copper Contributor
LeonPavesic thank you for your fast reply. I have to clarify that we do not intend to impersonate a user at all. We are developing a virtual assistant for the company using artificial intelligence techniques and we need this virtual assistant to be able to interact with the rest of the company's employees who use Teams. We want it to be able to process and answer both voice calls as well as chat messages. What we want is to make a user for that bot, so it can participate in voice and video calls, and have chat conversations with all the company's users, behaving like a real employee.
With that being said, is there a way to achieve this while complying with the platform's guidelines?
Thank you!
Prasad_Das-MSFT
Microsoft
Dec 18, 2023SomeUser404 - To create a bot that can participate in voice and video calls and have chat conversations with all the company's users, you need to use the Microsoft Graph APIs for calls and online meetings and the Real-time Media Platform.
- Create a bot using the Bot Framework SDK and register it in the Azure portal.
- Specify the additional settings
supportsCalling
andsupportsVideo
in the Teams app manifest for your bot. - Specify the required Graph permissions for your bot's Microsoft App ID.
- Obtain tenant admin consent for the required Graph permissions.
- Implement the necessary code to handle voice and video calls using the Microsoft Graph APIs for calls and online meetings.
To create a bot that can have chat conversations with all the company's users, you can use the Teams platform's messaging capabilities. You can use the Bot Framework SDK to handle chat messages and implement the necessary code to process and respond to chat messages.
You can refer to the Microsoft Teams documentation on Microsoft Graph APIs for calls and online meetings and Real-time Media Platform.
Thanks,
Prasad Das
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.