You can utilize both the bot and tab capabilities to develop your Teams app. Here's how you can implement each feature:
Bot: The bot capability will allow you to create a conversational interface for your app. You can use the bot to send the survey to selected users and channels, as well as handle user responses. To implement the bot functionality, you can follow the documentation on Bots in Microsoft Teams. The bot can access the survey details and determine which users/channels are selected by storing this information in your app's backend database. When sending the survey, the bot can retrieve the necessary details from the database and send personalized messages to each user or channel. Tab: The tab capability will provide an admin portal where the admin can create surveys and manage the app's settings. You can create a tab that hosts your admin portal, allowing the admin to select the survey type, enter questions, and choose the users/channels to send the survey to. To implement the tab functionality, you can refer to the documentation on Microsoft Teams tabs. The tab can be developed as a web page or web app that is embedded within Teams. The admin can access the tab and interact with the admin portal to create and manage surveys.
To summarize the flow of your app:
- Admin opens the app's tab in Teams and accesses the admin portal.
- Admin selects the survey type, enters questions, and chooses the users/channels to send the survey to.
- Admin saves the survey details in your app's backend database.
- Admin triggers the bot to send the survey to the selected users/channels.
- The bot retrieves the survey details from the database and sends personalized messages to each user or channel.
- Users receive the survey and can fill it out.
- User responses are collected by the bot and stored in your app's backend database.
Regarding your question about the bot's functionality to send messages to anyone in the organization, the bot can send messages to users and channels within the Teams environment. To create this app, you can consult the following resources: Bots in Microsoft Teams: This documentation provides an overview of bots in Teams and guides you through the process of building a bot. Microsoft Teams tabs: This documentation explains how to create tabs in Teams and customize the tab experience. Microsoft Teams samples: The official Microsoft Teams samples repository on GitHub provides sample code and projects that can help you understand and implement different features of Teams apps.
Regarding your question about app communication with users and channels without adding the app to every team's channel, you can achieve this by using the bot capability. Once an admin adds your app to their Teams organization, the bot can send messages to users and channels based on the survey details and selections made by the admin. The bot can access the necessary information from your app's backend database and send messages accordingly, without the need to add the app to every team's channel. 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.