-
Notifications
You must be signed in to change notification settings - Fork 0
The full process
Wade Penistone edited this page Dec 6, 2018
·
5 revisions
This ordered steps are what happens when the init function is run on a bot instance (when you first run the script).
- Individual readable input streams are initialised (for nlu, srl and cva) that pipe to writable core stream.
- Client instances created for adapters
- Client instance events are linked via callbacks to input streams
- Streams are attached to invoke core handlers
- Core handlers call interaction context based on interaction type (voice, message, vision)
- Interaction context produces request to invoke skills (if applicable)
- Skill processes request and assigns handler via promise
- Handler queries external/internal data services and gathers/processes data
- Handler templates content using data, and sends to outputter
- Outputter transforms content into format suitable for destination medium
- Content returned/distributed as response via destination medium to relevant parties
- Process logged/workflow finished