microsoft / botbuilder-dotnet

Welcome to the Bot Framework SDK for .NET repository, which is the home for the libraries and packages that enable developers to build sophisticated bot applications using .NET.
https://github.com/Microsoft/botframework
MIT License
872 stars 479 forks source link

feat: Support for SharePoint (Viva) Adaptive Card Extension #6695

Closed AJIXuMuK closed 11 months ago

AJIXuMuK commented 1 year ago

Fixes #6613

Description

SharePoint Framework is adding a new adaptive card experience (ACE) where it is powered by a Bot. In order to be able to implement the bot we are updating the BotBuilder Framework to natively support these API's to make it easier for end users to add a bot powered ACE.

Specific Changes

We support 5 new BotInvoke activities: "cardExtension/getCardView" "cardExtension/getQuickView" "cardExtension/getPropertyPaneConfiguration" "cardExtension/setPropertyPaneConfiguration" "cardExtension/handleAction"

The SharePointActivityHandler in Microsoft.Bot.Builder.SharePoint is the base class for developing a bot powered ACE. Users of this base class will need to implement the following 5 methods:

OnSharePointTaskGetCardViewAsync OnSharePointTaskGetQuickViewAsync OnSharePointTaskGetPropertyPaneConfigurationAsync OnSharePointTaskSetPropertyPaneConfigurationAsync OnSharePointTaskHandleActionAsync

Testing

This was tested using a test app.