botfuel-qna-sdk
v1.1.0
Published
QnA web services wrapper for Node.js
Downloads
3
Readme
botfuel-qna-sdk
QnA web services wrapper for Node.js
How to setup
Install:
npm install --save botfuel-qna-sdk
Environment variables:
BOTFUEL_QNA_API_VERSION
: Botfuel QnA API version (defaults to:v1
).
How to use
import QnA from 'botfuel-qna-sdk';
const QnAClient = new QnA({
appId: '<APP_ID>',
appKey: '<APP_KEY>',
});
QnAClient
.getMatchingQnas({ sentence: 'q1' })
.then(console.log);