n-clark
LUIS.ai wrapper
Example
const luis = require('n-clark')({id: 'appId', key: 'subscriptionKey', host: 'eastus2'}),
data = await luis.predict('input text here');
console.log(data);
Configuration
id = ''
LUIS.ai application ID
key = ''
Azure subscription key
host = 'westus'
LUIS.ai host to interact with
params = ''
Extra query string parameters (staging=true, etc.)
verbose = true
Verbose mode
debug = false
Debugging mode, captures input/output in this.results
(Set of [status, input, output])
API
predict (text)
Promise
Makes a request to LUIS.ai to predict the context of the request
reply (text, context[, set])
Promise
Makes a request to LUIS.ai to analyse the reply in context
Properties
results
Set
Set of LUIS.ai requests & responses
License
MIT