Skip to content

Java chatbot WhatsApp Library#

license release

Java chatbot library for writing a chatbot in the WhatsApp messenger. service To use the library, you need to obtain a registration token and instance ID in console. There is a free developer instance plan.


Documentation for the REST API can be found at link. The library is a wrapper for the REST API, therefore the documentation in the link above also applies to the library itself.


To send a message or perform other GREEN API methods, the WhatsApp account in the phone app must be in authorized state. To authorize your instance, go to console and scan the QR code using the WhatsApp application.

How to import the library and configure your bot#

How to start receiving and responding to messages#

How to receive other notifications and process the notification body#

How to filter incoming messages#

How to manage state and scenes#

Bot example#

GREEN-API demo chatbot 🔥#

Documentation on service methods#

Documentation on service methods


Licensed under Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0) . LICENSE.