Home > Software design >  Add Like and Dislike button after every message in Microsoft Bot Framework
Add Like and Dislike button after every message in Microsoft Bot Framework

Time:04-01

How can I add like and dislike button after each message postback by bot to get user feedback. And if user click on dislike button then my bot should give some suggestions nearer to that topic. Is this possible to implement in Azure Bot Framework? Thanks in advance.

CodePudding user response:

The best way is to respond with cards. There are different types of cards for different purposes. For an example, we can create a button card and assign action to that button as like and dislike for each message card in the bot conversation.

All the bot responses are stored in .lg file. That file will be exposed to the composer in the bot response page. There are three different templates. Simple response, conditional response and structured response. Based on the requirement, design the bot with these templates.

enter image description here

Hopefully it would fulfil your requirement accordingly

  • Related