How to Implement a "Notification-Only Bot" in Microsoft Teams Without Using Bot Framework SDK

石川 敦己 255 Reputation points
2025-01-17T05:49:13.7866667+00:00

I have a question regarding the implementation of a bot for a Microsoft Teams app, specifically for a "notification-only bot."

Most implementation guides I’ve found suggest using the Bot Framework SDK to set up proactive messaging. For reference, I’ve been reviewing this documentation, which has been particularly helpful.

However, our use case only involves sending notifications to users without requiring user interaction. Setting up endpoints with Express or deploying a standalone bot seems excessive in terms of effort and cost. Essentially, all we need is a way to send requests to the bot/Teams app, but building a mechanism to receive requests feels unnecessary.

After reviewing the documentation, I wondered if it’s possible to send notifications to users via the bot, similar to calling a standard REST API, without the need to create endpoints for the bot. Specifically, I believe it may be achievable using these three components:

  1. Endpoint: https://smba.trafficmanager.net/teams/v3/conversations
  2. Access token
  3. Parameters: user ID, tenant ID, bot ID (and possibly conversation ID?)

Our goal is to minimize dependencies, so we want to avoid using the Bot Framework SDK or Teams Toolkit unless absolutely necessary. Additionally, we already have an established architecture and programming language for our project, making adopting these tools impractical from cost and operational perspectives.

Is this approach feasible, or would the bot still require a mechanism to handle incoming requests?

Looking forward to your response.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,895 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.
3,710 questions
{count} votes

Accepted answer
  1. LiweiTian-MSFT 25,205 Reputation points Microsoft External Staff
    2025-01-20T01:18:00.7533333+00:00

    Hi @石川 敦己

    Great to know that the issue has already been resolved and thanks for sharing the solution so that others experiencing the same thing can easily reference this! **Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer. They can only accept answers by others, I'll repost your solution in case you'd like to Accept the answer to help more users who encounter the same problem.
    **
    Case title: How to Implement a "Notification-Only Bot" in Microsoft Teams Without Using Bot Framework SDK

    Issue Symptom: How to Implement a "Notification-Only Bot" in Microsoft Teams Without Using Bot Framework SDK

    Resolution: According to the Microsoft documentation, notification-only bots are designed to send notifications to users without requiring user interaction. You can enable the field in your app manifest to specify that the bot is notification-only. isNotificationOnly

    You can use the REST API to send notifications to users. The endpoint you mentioned (https://smba.trafficmanager.net/teams/v3/conversations) is correct. You need to include the access token and the necessary parameters such as user ID, tenant ID, and bot ID

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.