How to change "No match found!" on your no-code Q&A bot
Last week, I blogged about building a no-code Q&A bot for your website. One little niggle I had with the bot was the response when it could match a user input to a Q&A. I wondered how to change “No match found!”.
I looked around the qnamaker.ai site and couldn’t find a place I could change this. I submitted some feedback and the great people at the other of the Q&A site responded super quickly. I’ve raised a number of feedback points with them and I must say they’ve absolutely amazing at responding. But I digress.
They responded with this link: Create a question and answer bot
That’s a great resource for techies but gibberish for someone trying to fudge their way through building these bots like I am!
In essence, if you’ve already built your Q&A bot, what you need to do change “No match found!” for your bot is:
- Go to the Azure portal
- Navigate to the Apps section and select your bot’s name
- This will show a load of code and a file navigation tree on the left hand side
- Navigate to BasicQnAMakerDialog.csx
- Go to the line beginning with
public BasicQnAMakerDialog() :
- Scroll to the end of the line and put your cursor after the first closing bracket
- Type a comma (
,) and then inside two speech marks (
") the response you want to return
- Hit Save
So the relevant line might go from
public BasicQnAMakerDialog() : base(new QnAMakerService(new QnAMakerAttribute(Utils.GetAppSetting("QnASubscriptionKey"), Utils.GetAppSetting("QnAKnowledgebaseId"))))
public BasicQnAMakerDialog() : base(new QnAMakerService(new QnAMakerAttribute(Utils.GetAppSetting("QnASubscriptionKey"), Utils.GetAppSetting("QnAKnowledgebaseId"), "I'm sorry Dave, I'm afraid I can't do that.")))