Pluggable API #44

Closed
opened 2025-10-14 17:17:37 -06:00 by navan · 0 comments
Owner

Originally created by @dmitrizzle on 5/5/2018

A way to build plugins on top of chat-bubble. This would let the users customize their setup, allow developers add reusable features and keep the codebase light. Some of the existing features (like being able to remember past conversations) should probably become plugins instead of the core functionality.

Before building this, there should probably be a plan on which parts of the bot should be available to be built on top of:

  • Input methods are already "pluggable" - user can add their own input processing, including NLC classifiers. However, this part should probably be re-thought for a better structure and ease of use (plus an easy way to add plugins, instead of typing code).
  • Styles are customizable by-default with CSS, this shouldn't be an issue unless someone has a suggestion on how to build it more user-friendly.
  • Output methods bot replies could benefit from being able to be filtered, manipulated etc (see #54). This may need to be able to connect to the styles somehow so that the user wouldn't have to install CSS and JS separately, though we have to be careful here not to create bloat.
  • Script manipulators this is sort of related to the above. It would be nice to make an easy way to create tools that could manipulate bot's script. Such as loading it on-demand via XHR (this is already built with Archie.AI, however, it would be nice to have something like this accessible as a plugin, rather than a requirement to build code from scratch) - or timing bot output as a feed, see #55

Any ideas, input and suggestions on how to build this while ensuring the minimal size of the final package are highly appreciated.

*Originally created by @dmitrizzle on 5/5/2018* A way to build plugins on top of `chat-bubble`. This would let the users customize their setup, allow developers add reusable features and keep the codebase light. Some of the existing features (like being able to remember past conversations) should probably become plugins instead of the core functionality. Before building this, there should probably be a plan on which parts of the bot should be available to be built on top of: - [ ] **Input methods** are already "pluggable" - user can add their own input processing, including NLC classifiers. However, this part should probably be re-thought for a better structure and ease of use (plus an easy way to add plugins, instead of typing code). - [x] **Styles** are customizable by-default with CSS, this shouldn't be an issue unless someone has a suggestion on how to build it more user-friendly. - [ ] **Output methods** bot replies could benefit from being able to be filtered, manipulated etc (see #54). This may need to be able to connect to the **styles** somehow so that the user wouldn't have to install CSS and JS separately, though we have to be careful here not to create bloat. - [ ] **Script manipulators** this is sort of related to the above. It would be nice to make an easy way to create tools that could manipulate bot's script. Such as loading it on-demand via XHR (this is already built with Archie.AI, however, it would be nice to have something like this accessible as a plugin, rather than a requirement to build code from scratch) - or timing bot output as a feed, see #55 Any ideas, input and suggestions on how to build this while ensuring the minimal size of the final package are highly appreciated.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/chat-bubble#44
No description provided.