Introduction
The Azure Bot Framework supports different types of rich cards and provides a richer interaction experience to the users in term of text, image, video, carousel.
In this article, I will show how to exchange a message between user and bot can contain one or more rich cards rendered as an image and video.
Before reading this article, I recommend reading my previous article:
- FAQ based Bot Application Using QnA Maker - Part One
- Setup Bot Framework Development Environment Using .Net (C#) - Part Two
- How to add or remove synonyms or alternative keywords to QnAMaker
Please embed the youtube Url here https://youtu.be/WTX9AYhGHu4
Note:- Source Code provided as attached file.

Adam KnechtPosted Oct 25, 2018, 11:49 AM
Hello, when testing this on Azure in the test environment it works as expected, but when I ask the same question in Microsoft Teams all I get is plain text - it returns exactly what I have for an answer. Would you happen to know why that is?
Jessica JohnesPosted Jun 24, 2018, 8:28 AM
Hi again! I've resolved all issues exept the one - CS1061: Dialogs\BasicQnAMakerDialog.cs(32,31): error CS1061: 'List' does not contain a definition for 'First' and no extension method 'First' accepting a first argument of type 'List' could be found (are you missing a using directive or an assembly reference?) [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj]. The strin 32 is: "var answer = result.Answers.First().Answer;". How to resolve it?
Jessica JohnesPosted Jun 24, 2018, 1:10 AM
Hi! Thank you for the useful video!! Could you please tell if have an update for the new version? Yesterday I've created the QnA Bot in Azure, made code changes according your video and after deploy I recieved a number of issues: Dialogs\BasicQnAMakerDialog.cs(127,28): warning CS0108: 'RootDialog.MessageReceivedAsync(IDialogContext, IAwaitable)' hides inherited member 'QnAMakerDialog.MessageReceivedAsync(IDialogContext, IAwaitable)'. Use the new keyword if hiding was intended. [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj]Dialogs\BasicQnAMakerDialog.cs(22,78): error CS0103: The name 'ConfigurationManager' does not exist in the current context [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj] Dialogs\BasicQnAMakerDialog.cs(22,134): error CS0103: The name 'ConfigurationManager' does not exist in the current context [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj] Dialogs\BasicQnAMakerDialog.cs(29,41): error CS1061: 'List' does not contain a definition for 'First' and no extension method 'First' accepting a first argument of type 'List' could be found (are you missing a using directive or an assembly reference?) [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj] Dialogs\BasicQnAMakerDialog.cs(73,22): error CS0246: The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?) [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj] Dialogs\BasicQnAMakerDialog.cs(78,21): error CS0246: The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?) [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj] Dialogs\BasicQnAMakerDialog.cs(106,20): error CS0246: The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?) [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj] Dialogs\BasicQnAMakerDialog.cs(114,22): error CS0246: The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?) [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj] Failed exitCode=1, command="D:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "D:\home\site\wwwroot.\Microsoft.Bot.Sample.QnABot.csproj" /nologo /verbosity:m /t:Build /p:AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false /p:SolutionDir="D:\home\site\wwwroot..\" An error has occurred during web site deployment.