Skip to content
My first Whatsapp bot ๐Ÿฎ๐Ÿ‘ธ๐Ÿผ๐Ÿคด๐Ÿ‘‘๐Ÿ‘จโ€๐ŸŒพ๐Ÿฒ
Python
Branch: master
Clone or download
Fetching latest commitโ€ฆ
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
apps
images
.gitignore
README.md
__init__.py
_config.yml
db.py
docker-compose.yml
handler.py
main.py
mycustom.cnf

README.md

Saint George's interactive story:

The Whatsapp bot that become viral on 23 April (27.325 users)

Hits

In Catalonia (Spain), Saint Gerorge's day is one of the most original celebrations, book and flower stalls are set up along the streets of Barcelona ๐ŸŒน๐Ÿ“š

So I created a gamechat that explains the Saint George's story from the point of view of one the characters (๐Ÿฎ๐Ÿ‘ธ๐Ÿผ๐Ÿคด๐Ÿ‘‘๐Ÿ‘จโ€๐ŸŒพ๐Ÿฒ), in order to advance the users have to interact with other participants and find the next character that unlock his story.

Let's see an example:

(Note that all the texts are in Catalan)

As you can see, to start the history you must start a conversation with the bot and text the keyword: conte.

Then, the bot explain the introduction of the story and assigns you a character (in this case the princess ๐Ÿ‘ธ๐Ÿผ). To continue, the user need to find another participant with the king ๐Ÿ‘‘ character and attach the contact:

Finally, to end the story, the princess must find the dragon ๐Ÿฒ

Results

  • 27.375 users started at least one story
  • 133.707 messages and contacts processed by the chatbot during the event
  • 2797 users complete the story as the cow ๐Ÿฎ
  • 3571 users complete the story as the ๐Ÿ‘ธ๐Ÿผ
  • 3196 users complete the story as the knight ๐Ÿคด
  • 3281 users complete the story as the king ๐Ÿ‘‘
  • 2918 users complete the story as the farmer ๐Ÿ‘จโ€๐ŸŒพ
  • 2067 users complete the story as the dragon ๐Ÿฒ

Infrastructure

I developed the Whatsapp bot using the following elements:

Issues during the event

I noticed several scalability problems when handling requests from more than 10k users. The first hours the new users income where 2/hour (basically my family and friends), then it started growing exponentially until 1000 new users per hour.

At this point the system collapsed and the response time raised to 5 minutes in some cases, that delay stopped the exponentially growing curve :(

Acknowledgements

I would like to thank my family and friends who trusted in my idea and forward the Whatsapp bot contact.

You canโ€™t perform that action at this time.