A new and easy way to generate product-line-based chatbots
Report Bug
·
Request Feature
Xatkit-SPL Backend provides an API for chatbot modeling through different technologies. The main goal is to improve the utility of chatbots making them more accesible to the public with our automatic chatbot builder tool.
Intended workflow explained:
- User logs-in the website, creating a new user.
- Navigates to the configurator, and start defining a product-line-based chatbot family in an easy and understandable way + providing some basic information.
- Once the user has finished the modelling, hit enter and you will be prompted to create the chatbots you need.
- Define the name, the description and the intent information for this new chatbot product.
- Now, your chatbot is being tested with FLAMA, which is an automated tool for feature model analysis.
- Once everything is ready, the chatbot gets created through Xatkit, compiles all the necesary packages and gets automatically deployed in the localhost through Docker.
There are a few known bugs that we acknowledge, described in the projects section. If you detect any other new bug, please consider reporting it!
To get a local copy up and running follow these simple example steps.
First, you will need to install NPM, a MongoDB database and Docker.
-
Clone the repository
-
Install the NPM requisites:
$ cd xatkit-spl-api
$ npm install
-
Update the .env file providing the different values shown in .env.example
-
Run the app:
$ npm start
Then, you can access all the endpoints through an application like Postman, or using the Swagger UI in /docs.
Now, you can provide a valid Feature Model in UVL format, and a JSON file with information about the features in the model. You can take a look of the examples we provide in the bots/ExampleBot directory.
Once the PL -> Intent -> Chatbot process has been completed with this tool, you will have access to a Dockerfile. For running your new chatbot, you will need to execute the following commands, having Docker previously installed.
- Build the bot image:
$ docker build -t newbot .
- Run the chatbot:
$ docker run -it -p 5000:5000 -p 5001:5001 newbot
Now you can access http://localhost:5000/admin and start chatting!
If you want to take one step further and improve your bots adding a NLP layer, you will need to follow this tutorial. This Docker image will generate a NLP Server for Intent Recognition, and its ready to go, Xatkit-SPL will detect the server automatically and link the bots to it.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request