Connecting Botpress to Java client application

Hi, I’m new to botpress and I would like to create an intelligent chat application in Java. Would like to find out what are the steps to integrate botpress to the chat application.

How the chat application works is:
Messages will be sent from the application to the botpress nlu engine.
The messages will be processed by the nlu engine and a response will be displayed in the application.

The front end of the chat user interface will be written in Java.

Any form of guidance, assistance will be appreciated. Thanks.