Composer for Botbuilder
npm install botbuilder-composer> _WARNING! The Library still in active research & development be warned that interfaces will be changed in minor versions before 1.0 release!_
The Library used to compose chatbots from components that leverage Microsoft Bot Framework.
npm install --save-dev botbuilder-composer
!Chatbot build sequence diagram
Returns a Universal bot instance. Config fields:
- theme function(Universalbot bot, EventEmitter buildEventManager)|ThemeObject
- plugins function[], array of callback. Every plugin should return a Promise, once all plugin resolved event __init__ will be executed
- (optional) bot UniversalBot - if empty, compose will create instance of UniversalBot and will pass it to theme and callbacks.
This template provide a basic template for a bot. Template features:
- first run dialog support
- greeting dialog support
- extendable intents dialog
* constructor -
* addMenuItem(Object config) -
* getMenu() -
* sendMessageWithMenuActions -
* addIntent(intentName, dialogName) -
* addRecognizer(recognizer) -
* setFirstRunDialogId(string dialogId) -
* setDefaultDialogId(string dialogId) -
* setGreetingDialogId(string dialogId) -