A bot that pawrfectly returns cute cat images if you tail it to!!!
Tech ·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 :-
-
Open your WhatsApp, now save this phone number +1 415 523-8886 with the name Bot
-
Now refresh your contacts and search for Bot now type in the message join zero-physical and send it
-
Now you are connected to the bot.
-
Just say Hi and you will get all the functionalities of the bot.
Examples :-
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