A bot that pawrfectly returns cute cat images if you tail it to!!!

So what is this bot and how does it work. It simply is a normal WhatsApp bot which takes in input(a specific keyword) from the message we will send it and it will return the desired output. It was made as an attempt to understand how api’s work, how web apps work in general and how to deploy our web apps to Heroku platform.

Technologies used - Heroku to host the app, Twilio api which provides with the communication services where we can host our bot, Third party api’s which will provide us with data to return to the user, Flask for python based web frame working, ngrock for testing with a public URL.

Steps to use the bot :-

WhatsApp Image 2021-01-18 at 8.31.22 AM

Examples :-

WhatsApp Image 2021-01-18 at 8.31.49 AM

WhatsApp Image 2021-01-18 at 8.32.02 AM

WhatsApp Image 2021-01-18 at 8.32.12 AM

So yes this is the bot, I won’t get into technical details but basically. When we are sending a request for a “quote” it is going to Twilio and to give an response Twilio will use a webhook were the logic for processing that request is stored which in this case happen to be a Heroku web app. From there the program will run and provide Twilio a response to the message which it will show as an reply to us.

Acknowledgement:-

https://www.twilio.com/docs/whatsapp/api

https://www.twilio.com/blog/build-a-whatsapp-chatbot-with-python-flask-and-twilio

https://levelup.gitconnected.com/how-to-create-covid-whatsapp-bot-2d424c96a4d6