Skip to content

Latest commit

 

History

History

README.md

page_type sample
products
office-sp
languages
javascript
typescript
extensions
contentType technologies platforms createdDate
samples
SharePoint Framework
react
3/1/2018 12:00:00 AM

QnA Chatbot

Summary

SPFx application extension that uses Azure QnA cognitive services to efficiently answer FAQs.

QnA chatbot

Used SharePoint Framework Version

SPFx v1.4.1

Applies to

Solution

Solution Author(s)
react-application-qna-chat Rodrigo Silva, @RodResendeSilva)

Version history

Version Date Comments
1.0.0 February 23, 2017 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Prerequisites

Minimal Path to Awesome

  • clone this repo
  • edit "cognitiveservices.ts" file to set your Cognitive Services API Key and Knowledge Base ID:
private qnamakerSubscriptionKey: string = "[INSERT KEY HERE]";
private knowledgebaseId: string = "[INSERT KB ID HERE]";
  • in the command line run
    • npm i
    • gulp serve-info --nobrowser
?loadSPFX=true&debugManifestsFile=https://localhost:4321/temp/manifests.js&customActions={"1b3557f3-315d-4187-8d58-60e88e93d654":{"location":"ClientSideExtension.ApplicationCustomizer"}}

Features

Sample SharePoint Framework application extension.

This sample illustrates the following concepts on top of the SharePoint Framework:

  • using QnA Cognitive Services API
  • how to improve your employees FAQ experience
  • using async / await for the async calls
  • how to take advantage of existing react npm packages