dmitrizzle / chat-bubble

Simple chatbot UI for the Web with JSON scripting 👋🤖🤙
MIT License
579 stars 171 forks source link

Create text input field #19

Closed dmitrizzle closed 7 years ago

dmitrizzle commented 7 years ago

This chat engine is to be used with Watson NLC API so it needs to have an input chat field as an integrated feature or a plugin. These are the proposed steps to implement that.

dmitrizzle commented 7 years ago

The way this seems to pan out is that chunking will work like this: there will be "conversations" (each containing bot statements, questions and reply functions) like there are now. But there could be a multiple number of them and they could be loaded in real-time.

However, the conversation history still need to have an immutable record system of some sort. Also, it would be good to index all elements within each conversation. It would be good to have code review and discuss this a bit more; there's a chance things might get more complex and sphaghettier as this app grows.