(How) is it possible to add a global bot which can detect incoming audio or video calls in all channels?

Nico Gerbig 0 Reputation points
2024-02-19T17:49:21.67+00:00

Is it possible to add a bot to the left pane which can react to incoming calls in any channel to display additional caller information without beeing installed in all channels and chats?

The bot might post an adaptive card to the channel or chat, where the call is performed.

I'm almost sure, Teams doens't support this out of the box, but maybe it could be possible to subscribe to graph api events to get incoming calls and to write to these channels or chats.

I'ld be fine with doing this under application permissions (I assume, the one who's called is allowed to get these informations about the caller).

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,644 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,866 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 5,621 Reputation points Microsoft Vendor
    2024-02-20T05:47:05.89+00:00

    Microsoft Teams does not support adding a bot to the left pane that reacts to incoming calls out of the box, you can indeed subscribe to Microsoft Graph API events to get incoming call notifications and then post an adaptive card to the specific channel or chat where the call is performed.

    Subscribe to Microsoft Graph API Events: Use Microsoft Graph API to subscribe to call-related events.

    Handle incoming call events in your bot.

    Process Incoming Call Events: Extract caller information from the incoming call event.

    Post Adaptive Card:
    Use the Teams SDK and Adaptive Cards to create and post an adaptive card to the channel or chat.

    Thanks, 

    Prasad Das *************************************************************************  If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.