Build your first Command bot in C# for Microsoft Teams with Teams Toolkit for Visual Studio
HTML-код
- Опубликовано: 1 окт 2024
- In this 20-minute developer/designer focused demo, Ayça Baş starts at the beginning installing Visual Studio 2022 and Teams Toolkit, launching Visual Studio and creating a new command bot project. Follow the Quick Start configuration instructions installed with Toolkit and then add bot to your Teams chat. Type “helloWorld” to trigger initial response from your bot! Deep dive into the provisioned code and see places for potential modification. Use command bot with QnA Maker to deliver large Q&A solution quickly. This PnP Community demo is taken from the weekly Microsoft 365 Platform Community call recorded on October 18, 2022.
Demo Presenter
• Ayça Baş (Microsoft) | @aycabs
Supporting materials
• Documentation - Teams Toolkit Overview | learn.microsof...
• Documentation - Install Teams Toolkit | learn.microsof...
• Documentation - Create a new Teams project | learn.microsof...
• Documentation - FAQ for Teams Toolkit | learn.microsof...
• Tool - Join the Microsoft 365 Developer Program today! | aka.ms/m365/devprogram
Related demos
• Demo - Build your first Command bot for Microsoft Teams with Teams Toolkit for Visual Studio Code - Garry Trinder (Microsoft) | @garrytrinder | • Microsoft 365 Platform...
Learn more
• Microsoft 365 Unified Sample gallery - aka.ms/m365/sa...
• Microsoft 365 Platform Community in RUclips - aka.ms/m365/vi...
• Microsoft 365 Platform Community - aka.ms/m365/com...
great tutorial. only thing I needed was for my Admin to put my user into the Application Developers group or something, and I needed admin rights to create the Azure Active Directory user. Then the bot works! I'm trying to get the bot to join a group channel with my co-workers though. I'll keep digging to find out how to do that. Thanks for the video!
Ayça teşekkür ederim çok değerli bilgiler verdin bir sorum olacak ben bu bot ile sesli arama gerçekleştirebilirmiyim bir örnek vermen mümkünmüdür teşekkür ederim
Also getting this error too -> An unhandled exception has occurred while executing the request.
Microsoft.IdentityModel.Tokens.SecurityTokenNotYetValidException: IDX10222: Lifetime validation failed.
I am using .net 6 in Visual studio 2022 and able to see my app in teams to add, when I add app into team, I am able to send in chant like helloWorld but didn't get response back, It's hitting to BotController method ( [HttpPost]
public async Task PostAsync(CancellationToken cancellationToken = default)
{
await (_conversation.Adapter as CloudAdapter).ProcessAsync
(
Request,
Response,
_bot,
cancellationToken
);
}
}) but getting error in console : Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
An unhandled exception has occurred while executing the request.
Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Unexpected end of request content. Any idea please?
I am not getting that action button and UI after sending helloWorld. AM I missing anything?
Great information, but do you have any material to implement these commands in an existing project and with the Bot Framework SDK?