Releases: dmitrizzle/chat-bubble
RASA NLC support
Thank you @shashwatrathod for the docs, example, and code mode which now make simple natural language cognition applications with chat-bubble
an easy task. This was always possible since that's what this tool was originally built for, but the new documentation for the open-source RASA NLC framework makes this task much more accessible.
- #79 - PR discussion and RASA debugging
- RASA quickstart docs
Pass answer content when the answer is function
If you're running a JS function within your answer function, you will now receive a single parameter, content
which is a string containing the text in the answer bubble the user has clicked:
#75 - thank you @ereltapiro
Fix bubbles reply issues
Remember & show chat history
After some time in production on Archie.AI this version is good to go. Releasing to NPM!
Remember & show chat history
This is a release candidate for a function parameter that allows you to remember and then recall past conversations in chat-bubble
. This method will use localStorage
to keep all the data, however, you can probably refit it to use whatever you've saved on your server.
This function isn't as comprehensive as, say, Slack's chat tools. It won't let you incrementally download history while you go backwards in time, neither will it let you go forwards in time should you have searched something in chat history. This is a very simple "last X conversations" reminder for the user.
It is opinionated (in terms of design and how it appears on the screen), however, you can customize how many past interactions you'll want to recall. Just add an integer greater than zero to recallInteractions: Int
to options
object. That's all.
chat-bubble
will attempt not to be repetitive or over-zealous with remembering past interactions. Specifically, it won't memorize the first thing it says when the user opens up the app unless the user has interacted with the bot. This is to avoid unnecessary, uninformative memory recollection of stuff the bot will say anyway.
Note that when the bot "recalls" past conversation, everything appears at once (no animation) and with .25
opacity - you can change the styles as you wish if you customize the CSS files. Trust me, you don't want the bubbles to animate when they are just a matter-of-fact previous conversations user might or might not want to recollect.
That's it!
Update for design, examples and guides.
- Re-written README.md for better readability.
- Added ENV.md for those who wish to get a quick start working with ES6 environment with WebPack and Yarn.
- Updated all example files for design and better code comments. Listed them in Demo section.
- Updated default CSS for a more "flat" design.
- Updated demo gif.
Safari browser fix
Fixed an issue in Safari browsers that caused reply/answer bubbles to not show. Thanks @omertarik96!
Making things simpler.
It's now much easier to import and create chat windows if you are using WebPack or similar compiler.
Fix for Safari rendering issue
As outlined in #41:
Safari caused weird bug that made answer bubbles disappear, which is fixable by forcing it to use 3d render acceleration.
Support for older browsers
Some browsers (IE & Edge) do not have support for new JavaScript syntax used in this app. We have fixed that issue.