Whatsapp Bot Development – How to?

Today we are in the bot era (a while ago actually). But still, there, bots are everywhere and businesses are changing towards micro apps and cognitive bots for B2B andB2C. Whatsapp Bot development is a little tricky one for those with a basic understanding of the platform.

Everyone wants a WhatsApp Bot but WhatsApp support Bots (officially, for now). But soon going support bots but only with an approval process so that this is not misused for marketing.

We (users) want this because is where we are and is cool 🙂

There are a few libraries to make your own WhatsApp Bot, the most popular is https://github.com/tgalal/yowsup/wiki. It’s an awesome library but it has one little problem..

and the list goes on…

The problem here is a design problem, the library calls directly the WhatsApp APIs and from a static IP address, your server IP address. This makes it a lot easier for WhatsApp to block the number. We tried this.

We wanted to try another approach. The web.whatsapp app is built using ReactJS (Facebook framework). Check the DOM.

So, if we just open the browser console and write “Store” you get this result

Interesting.. right? if you watch more closely to the “Chat” object

Chat model messages

You get all the messages if they are already read or not 😉 everything…

Building a BOT from that point is very easy, just insert some javascript into the console and you can have a fully working WhatsApp chatbot. It works and does not get blocked by WhatsApp at all. In my next, I will publish the script probably.

Why this kind of bot is harder to block?

Because this is a real Phone and a real web.WhatsApp running, we are simulating the user behavior here and always using the latest version of WhatsApp official client (SKD and stuff)

Also, we have developed the audio parsing from WhatsApp to the Bot, it’s pretty awesome and it makes it even cooler.

Let us know if you want help in building a WhatsApp bot development for your business. Nexivo provides Bot Development Service for multiple platforms

Bot Development Services

Whatsapp for Business

Leave a Reply

how can we help you?

Contact us at Nexivo Consulting or submit a business inquiry online.