xatkit-bot-platform / xatkit

The simplest way to build all types of smart chatbots and digital assistants
https://xatkit.com
Eclipse Public License 2.0
176 stars 22 forks source link

feat: new submodule JSON to Xatkit DSL parser #45

Open joszamama opened 1 year ago

joszamama commented 1 year ago

Hello!

I am currently working with Xatkit in my master thesis, and I have created a fork of the main repository.

I have developed an API with which I can build Chatbots automatically in a simple way using Xatkit in the backend. For this, I have developed a new module that parses a JSON object (with a syntax defined by my Xatkit-SPL-Backend project) and builds the chatbot definition in Java using the Xatkit DSL.

The main utility of this module is to support any kind of web application that wants to use Xatkit, since JSON is a standardized language in HTTP communications. With this parser, any application can send information in JSON format and build chatbots. No Java, no Maven, no dependencies.

In the folder ./src/bots/ExampleBot you can find a JSON file with the structure defined by my tool in JSON, and a Java file processed by this module when running the parser.

I make a pull request in case you are interested in this code. In the Readme documentation I have also left how it can be used to generate the Java file, and how to automate it using Docker.

Thanks and awesome tool btw!

jcabot commented 1 year ago

Thanks for the contribution. This feels more like a separate project that we could add under the organization umbrella. Let's talk about it in our next meeting