Empowering Fitness with Twilio: Your Personal GymBuddy for Seamless Communication and Progress Tracking!
Tags: devchallenge, twiliochallenge, ai, twilio
Published: 2024-06-22 17:11:58


*This is a submission for [Twilio Challenge v24.06.12](https://dev.to/challenges/twilio)*

## What I Built
### GymBuddy

GymBuddy is a web application designed to help fitness enthusiasts track their workout performance and nutritional intake efficiently. Whether you're a beginner looking to establish a fitness routine or a seasoned athlete aiming to optimize your training, GymBuddy provides essential tools and insights to support your fitness journey.

### Key Features

- **Performance Metrics**: Track sets, reps, workout duration, and calories burned across different exercises.
- **Nutrition Tracking**: Monitor meals consumed throughout the day to maintain a balanced diet.
- **Daily Quotes**: Get inspired with daily motivational quotes to keep you motivated.
- **Interactive Charts**: Visualize your progress with interactive charts showing performance trends over time.

### Technologies Used

- **Frontend**: React.js, Chakra UI
- **Backend**: Flask
- **External APIs**: Twilio Api for whatsapp messaging and Cohere Api for AI responses

## Demo

{% embed https://www.youtube.com/embed/dm1YYX46k3Q %}

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/22d66xygq7k1c2vary2z.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7yif5w02xhln3975uhw1.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w39my3w3e131mnqy0ef0.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mhoq7i7akmrsu88zaawy.png)




## Twilio and AI
I utilized the Cohere API to generate AI-driven content, such as daily motivational quotes and personalized workout plans based on user input. When a user fills out the form, a workout plan is dynamically generated, including meal suggestions.

For communication, I integrated the Twilio API to send messages. Upon completing their workout, users can enter details in a specific format like "10 10 50 200". Twilio then sends this data to a Flask server via its API. The Flask server interprets the message to update the dashboard with details such as 10 reps, 10 sets, 50 minutes, and 200 calories burned.

I could not have achieved this functionality without Twilio Kudos to Twilio team.

Also I had already written [Blog](https://devspotlight.hashnode.dev/message-delivery-with-twilio-api-and-google-sheets) around Twilio so I had little experience with Twilio API and Whatsapp business API.

I wanted to use Twilio Whatsapp business API but time was less as it takes verification so I sticked to using Whatsapp Sandbox.

### Getting Started

To get started with GymBuddy, and follow these steps:

1.You can try it out by scanning the QR Code in the image or by texting the code **join four-mental** to the number +14155238886 on WhatsApp.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dtcbrx6vq2qji9583kj6.png)

Once that is done clone the repository.

## Source code 

{% embed https://github.com/AdityaGupta20871/GymBud
 %}

## Additional Prize Categories

<!-- Does your submission qualify for any additional prize categories 
`Twilio Times Two`: My usage of Twilio's Whatsapp Messaging API for outbound messages and the Twilio REST Client for handling incoming messages qualifies your project under the Twilio Times Two category.  

`Impactful Innovators`: My project, GymBuddy, innovatively integrates the Cohere API and Twilio to revolutionize fitness tracking and engagement. Using Cohere, GymBuddy generates personalized motivational quotes and custom workout plans. Twilio facilitates seamless communication, enabling users to log workout details via simple text messages and receive instant updates on their progress.




<!-- Thanks for participating! →