How do I add Adaptive Cards to QnA Maker?
Follow these steps once you have an understanding of JSON code and Markdown rich text formatting:
With the LiveTiles QnA Editor:
- Create your Knowledge base (KB) in Microsoft's QnA Maker.
- Open your Knowledge base in the LiveTiles QnA Editor.
- Enter your Adaptive Card JSON code:
· Drag and drop a pre-made Adaptive Card template from the Adaptive Card Templates panel into the New Answer field.
· Copy your Adaptive Card code from an IDE into the New Answer field of the QnA Editor.
Without the LiveTiles QnA Editor:
- Create your Knowledge base (KB) in Microsoft's QnA Maker.
- Remove any extra spaces and special characters from your JSON code. This is called minification. You can use this online tool to minify your JSON.
- Validate your JSON using this online tool.
- Copy and Paste your minified JSON into your QnA Maker KB.
- Click Save and train. Once that's finished, click Publish.
- After linking your updated KB to LiveTiles Bots, you should now be able to see and test your Adaptive Cards. Click here to see how you can link your KB to LiveTiles Bots.
0
Please sign in to leave a comment.
Comments
0 comments