Giter Club home page Giter Club logo

xatkit-spl-api's Introduction


Xatkit-SPL Backend

A new and easy way to generate product-line-based chatbots
Report Bug · Request Feature

About The Project

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!

Built With

(back to top)

Getting Started

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.

Instalation

  1. Clone the repository

  2. Install the NPM requisites:

$ cd xatkit-spl-api
$ npm install
  1. Update the .env file providing the different values shown in .env.example

  2. Run the app:

$ npm start

Then, you can access all the endpoints through an application like Postman, or using the Swagger UI in /docs.

Using the Tool

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.

Deploying a Chatbot

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.

  1. Build the bot image:
$ docker build -t newbot . 
  1. Run the chatbot:
$ docker run -it -p 5000:5000 -p 5001:5001 newbot 

Now you can access http://localhost:5000/admin and start chatting!

NLP Services

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.

(back to top)

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

xatkit-spl-api's People

Contributors

joszamama avatar

Watchers

 avatar  avatar  avatar

xatkit-spl-api's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.