0.5.1 • Published 5 years ago

basebot-middleware-qnamaker v0.5.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

basebot-util-qnamaker

Replaces the default response function.

When an intent can't be matched to a skill, this module will first search QNA maker for a matching response, before returning the default response if nothing is matched.

Usage

Requires the following env vars:

QNA_HOST The host URL for QNA Maker QNA_KBID The knowledgebase ID you wish to reference QNA_KEY Your QNA Maker key

index.js

  import qnaMaker from 'basebot-util-qnamaker'
  import { logger } from './services'
  //...
  // right at the bottom of your file (replace the existing)
  controller.hears('.*', 'message_received', qnaMaker(logger))
0.5.1

5 years ago

0.0.1

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago