{"repo":"green-api/whatsapp-chatbot-js","free":true,"listed":false,"github":"https://github.com/green-api/whatsapp-chatbot-js","clone":"git clone https://github.com/green-api/whatsapp-chatbot-js.git","description":"The library to develop WhatsApp bot","language":"JavaScript","stars":40,"topics":["whatsapp","whatsapp-bot-api","bot","botapi","bot-framework","whatsapp-api","whatsapp-bot","whatsapp-chat"],"license":"MIT","category":"chat-messaging","readme_excerpt":"WhatsApp chat bot library for nodejs Introduction The WhatsApp chat bot designed for writing own chat bots. Users can interact with bots by sending them command messages in private or group chats. The bot uses Green-API (green-api.com) provider WhatsApp API protocol under hood to support WhatsApp. Green API whatsApp protocol exists in two versions: V0 - requires plugged and active phone. The protocol provides reach WhatsApp API including messages, media, phone state, location etc. Have look at whatsapp-api-client wrapper REST protocol library for more information - V1 - phone-free protocol that requires only phone number without physical device. The protocol implements only limited part of WhatsApp API. See details here v1-whatsapp-api-client Installation Getting started 1. Get green api account To use the WhatsApp Bot API, you first have to visit green-api.com and get free developer account for API-V0. Green Api will give you id instance and api token, something like In case you want API-V1 protocol you also have to visit green-api.com and choose Chat bot price option. Green API will give you a free trial period if you ask them. Access token looks like this: 2. Add import You can import library using modern ES6 syntax (you have to add \"type\":\"module\" to package.json ): or using classic syntax: 2.5 Setup Before launching the bot you should enable incoming notifications in instance settings by using SetSettings method . 3. Initiliaze new WhatsApp Bot with aquired account data ","default_branch":null,"files":null,"tree":[],"storefront":"/r/green-api","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/green-api/whatsapp-chatbot-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}