DEV Community

Andrea Melendez💜👩🏻‍💻
Andrea Melendez💜👩🏻‍💻

Posted on

🚀Bot-Whatsapp | COVID19-Colombia

What We built

EN:

Hey Everyone, My partner https://dev.to/jorgee97 and I, had built a whatsapp bot which brings useful information about the people that is infected in my country Colombia, besides, it has an option that sends the recommended name of a movie or series for the quarantine that we are living right now, this options sends a random movie or serie every time. The main idea is to have quick access to the information about our country situation. The bot has options like:

1. Sending 0 - Lineas MinSalud Colombia: If you use this option, the bot will reply with the call lines from the Ministry of Health of Colombia.

2. Sending 1 - Graphic of the current situation at Colombia: If you use this option, the bot will reply the updated image of the day provided by the Ministry of Health which list the number of cases by region in Colombia.

3. Sending 2 - Resume COVID19 Colombia: Using this option the bot will reply with the exact number of cases that exist in Colombia at the moment and will separate them for category.

4. Sending 3 - Movies and Series Recommendation (Random): The bot will reply with a randomly selected movie or series to watch while in quarantine.

5. If you would like to filter by city or state you just write the name of the city or state you want to get the information from:
Ex: (Bogota, Cordoba, Cali or Medellin) by doing that the bot will reply with the summariced information from the place you just asked for.

ES:

Hola a todos. Mi compañero https://dev.to/jorgee97 y mi persona, hemos creado un bot en Whatsapp que proporciona información útil de las personas contagiadas en nuestro país Colombia, ademas, tiene una opcion que envia un nombre de pelicula o serie recomendada para el tiempo de cuarentena que estamos viviendo, esto lo devuelve de forma aleatoria cada vez que se consulta, la idea es tener un lugar rapido y efectivo donde consultar como se encuentra la situacion del pais, el bot contiene opciones como:

1. Enviando 0 - Lineas MinSalud Colombia: Si se utiliza esta opcion, el bot devolvera las lineas del Ministerio de Salud en Colombia (Nacional, Bogota, Numero desde celular).

2. Enviando 1 - Gráfico de situación actual en Colombia: Si se utiliza esta opción, el bot devolverá la imagen actualizada, proporcionada por el Ministerio de salud de los casos que existen en el pais.

3. Enviando 2 - Resumen COVID19 Colombia: Si se utiliza esta opción, el bot devolverá el numero de casos que existen en Colombia separados por categoría (Hospital, fallecidos, recuperados, UCI, casa).

4. Enviando 3 - Recomendacion de peliculas o series (Aleatorio): Si se utiliza esta opcion, el bot devolvera la imagen y nombre de una pelicula o serie recomendada para ver durante la cuarentena.

5. Si se desea filtrar por ciudad o departamento se digita el nombre de ella. Ej: (Bogota, Cordoba, Cali o Medellin): Con esta opción, el bot devolverá la informacion del numero de casos que existen en dicha ciudad o departamento separados por categoria (Hospital, fallecidos, recuperados, UCI, casa).

Demo Link



Link to Code

https://github.com/Jorgee97/CovidTwilio

How I built it (what's the stack? did I run into issues or discover something new along the way?)

EN:

To build the our bot, We used Flask, MongoDB, BeautifulSoup, Twilio's WhatsApp API and Docker for deployment.

While doing our project we got some problems with the cache when we sent images twilio was caching those images and returning always the same one, but we did find a solution to the problem.
By completing this project we learned a lot of new knowledge which are always welcome at the programming world.

ES:

Para construir nuestro bot, utilizamos Flask, MongoDB, BeautifulSoup, Api Twilio Whatsapp y Docker.

Realizando nuestro proyecto tuvimos problemas con el cache que se mantenía al enviar imágenes durante la conversación de Whatsapp, al enviarse la primera, mantenía la misma siempre pero encontramos solución a nuestro error.
Al realizar este proyecto se adquirieron nuevos conocimientos, que son siempre bienvenidos dentro del mundo de la programación.

Additional Resources/Info

EN:

ES:

Top comments (0)