Chat Assistant Add-on
Chat assistant floating window using wc-chatbot.
Add-on that displays a chat assistant floating window using wc-chatbot.
Features
- Messages can be sent by the user or programmatically.
- Listen for new messages written by the user.
- Toggle the chat window on/off.
Found a bug or have a suggestion? Report it on GitHub
For bug reports, feature suggestions, or questions, please open an issue on GitHub. This makes it easier for us to track and respond efficiently, ensuring you get the best possible support. Your input helps us improve—thank you!
Sample code
ChatAssistant chatAssistant = new ChatAssistant(); TextArea message = new TextArea(); message.setLabel("Enter a message from the assistant"); message.setSizeFull(); Button chat = new Button("Chat"); chat.addClickListener(ev->{ Message m = new Message(message.getValue(),false,false,0,false,new Sender("Assistant","1","https://ui-avatars.com/api/?name=Bot")); chatAssistant.sendMessage(m); message.clear(); }); chatAssistant.sendMessage(new Message("Hello, I am here to assist you",false,false,0,false,new Sender("Assistant","1","https://ui-avatars.com/api/?name=Bot"))); chatAssistant.toggle(); chatAssistant.addChatSentListener(ev->{ Notification.show(ev.getMessage()); });
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
New features:
- New major version with several enhancements (#16)
- Add markdown support via markdown-editor-add-on (#23)
Bug fixes:
- Released
- 2024-11-26
- Maturity
- TESTED
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 24.4
- Vaadin 24 in 1.0.0
- Browser
- N/A
Vertical Menu Addon - Vaadin Add-on Directory
Colorful Vertical Menu for Vaadin 10+Source Code
Issue tracker
Online Demo
Vertical Menu Addon version 1.0.0
Initial release
Vertical Menu Addon version 2.0.0
Support for Vaadin 14 NPM mode
Vertical Menu Addon version 2.0.1
Support for modifying sections dynamically and fixed [issue #1](https://github.com/FlowingCode/VerticalMenuAddon/issues/1)
Vertical Menu Addon version 2.0.2
Fix @Stylesheet annotation for compatibility with Vaadin 16