Displaying rich text answers - QnABot on AWS

Displaying rich text answers

QnABot on AWS supports Markdown, allowing you to create rich text versions of your answers for displaying on the web user interface, or on Slack. To use this feature, populate the Alternate Markdown answer field in Content Designer.

  1. From the content designer, edit item AWS QnABot001 (“What is Q and A Bot”) by opening the Advanced section and entering the following text in the Markdown Answer field:

# AWS QnABot The Q and A Bot uses [Amazon Lex](https://aws.amazon.com/lex) and [Alexa](https://developer.amazon.com/alexa) to provide a natural language interface for your FAQ knowledge base. Now your users can just ask a *question* and get a quick and relevant *answer*.
  1. Select UPDATE to save the modification.

  2. Use the web user interface to ask: “What is Q and A bot?”. The answer now displays the heading, links, and emphasis specified in your markdown text.



Example markdown

Figure 7: Example markdown

QnABot on AWS also supports inline HTML in the markdown field.

  1. Choose ADD to create a new item in HTML:

    1. Enter ID: FireTV.001

    2. Enter question: What is Amazon Fire TV?

    3. Enter answer: Fire TV brings all the live TV and streaming content you love, and Alexa, onto the big screen. Use Alexa on the Fire TV to bring QnABot on AWS into your living room!

    4. Enter markdown answer: **Fire TV** brings all the live TV and streaming content you love, and Alexa, onto the big screen. Use Alexa on the Fire TV to bring QnABot on AWS into your living room! <iframe src="https://www.youtube.com/embed/OE4MrFx2XCs"></iframe>

    5. Select CREATE to save the item.