Is there any way to trigger an event when the MSteams bot is opened

Elvin Khunt 0 Reputation points
2024-07-19T11:19:43.7666667+00:00

Is it possible to get a webhook, payload or event notification, when we open the MS teams bot.

Currently we are getting webhook payloads only when a message is sent in the bot. Is there any way to trigger an event when the MS teams bot or MS team app is opened.

I want to send greeting message to that user from my bot when user open MS team application.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
800 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,583 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
598 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
349 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,052 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 7,201 Reputation points
    2024-07-19T21:35:13.83+00:00

    Hello Elvin Khunt,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    Problem

    I understand that you would like to have a webhook, or event trigger to send greeting message to users from your bot when they open MS team application.

    Solution

    Yes, you can trigger an event when a Microsoft Teams bot is opened by utilizing the conversationUpdate activity type. This activity is sent to the bot when a user starts a new conversation with the bot or adds the bot to a team.

    To send a greeting message to a user when they open the Microsoft Teams application and interact with your bot, you need to handle the conversationUpdate activity. This activity is triggered in various scenarios, including when the bot is added to a team or a user starts a new conversation with the bot. However, there is no direct way to detect when a user opens the Teams application itself, as Teams does not provide an event for that specific action.

    Accept Answer

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.

    Best Regards,

    Sina Salam

    0 comments No comments