Forum Discussion
Sean17
Apr 10, 2024Copper Contributor
Do I really need an Azure Bot to display a dialog with an embedded web view via messaging extension?
I have created a messaging extension that prompts a dialog with embedded web view, and it is working as expected. For my application use case, all user interactions will take place within the embedded web view, and there's no interaction with Teams, such as transmitting information back to Teams compose message area.
The user's actions will mainly be as follows:
- The user selects a message from a conversation and selects ellipses.
- The user selects the message actions in the overflow menu.
- A dialog will be prompt and load the embedded web view.
- The user uses the application within the embedded web view.
- The user closes the dialog once they're done.
In my application usage, it seems excessive just to use Azure Bot for adding a message action in the overflow menu and prompting a dialog with an embedded web view. Is there an alternative approach to do these without the need for Azure Bot?
3 Replies
Sort By
- vikram-MFST
Microsoft
- Sean17Copper Contributor
Hi vikram-MFST.
I've already explored the sample you gave. From what I understand so far, it utilizes Azure Bot, which I've previously tested and it is working well for both adding a message action in the context menu/overflow menu and displaying a dialog with an embedded web view. However, I would like to know if there's an alternative approach where I can achieve the same functionality without relying on the Azure Bot.
The reason for this is because my Head of Architecture questions the necessity of using the Azure Bot solely for adding a "button"(first image) upon click, will display the dialog with the embedded web view (second image) and it does nothing else.
I have gone through the documentation that I can find, and it seems doing these without Azure Bot might not be possible. I would appreciate your advice on this.- vikram-MFST
Microsoft
Hello Sean17
could you please refer this sample:
https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/msgext-action-preview/csharp/Bots/TeamsMessagingExtensionsActionPreviewBot.cs