I have created a Qna service using QnaMaker and registered a bot in azure with QnA template. I will be using this bot in my custom client application. So, I created a Direct Line channel and with the help of Direct Line API, I was able to embed my bot into mvc client.
Suppose, I have a video link or a simple link in one of the answer in knowledge base. Is there any way that I can know that ChatResponse has a link in it?
foreach (Activity message in activities)
{
// We have Text
if (message.Text != null)
{
// Set the text response
// to the message text
objChat.ChatResponse
+= " "
+ message.Text.Replace("\n\n", "<br />");
}
// We have an Attachment
if (message.Attachments.Count > 0)
{
}
}
I tried to add <attachment contentType="video/mp4" contentUrl="videourl" thumbnailUrl="thumbnailurl"/>
But on checking if message has attachment, count comes out to be zero.