A simple web-based FitnessTrainer Bot that generates a workout plan.
- HTML
- CSS
- JavaScript
- Rapid API ChatGPT - Used for generating interactive chatbot responses.
- Clone the repository:
git clone https://github.com/your-username/FitnessTrainer-Bot.git
- Generate an API key:
- Visit the ChatGPT53 API on RapidAPI.
- Sign up for an account (if you don't have one already).
- Subscribe to the ChatGPT53 API and generate an API key.
- Update the API key in the code:
- Open the
index.js
file in the project. - Locate these lines of code and replace the content of quotated string in commented line with your generated API key.
"content-type": "application/json", // "X-RapidAPI-Key": "enter your api key here", "X-RapidAPI-Host": "chatgpt53.p.rapidapi.com", },
- Open the
- Open the project folder.
- Open
index.html
in your web browser.
- Open the FitnessTrainer Bot in your web browser.
- Fill in the required information such as age, gender, weight, height, and fitness goals.
- Click the button to generate a custom workout plan.
- The generated workout plan will be displayed in the chat area.
- Inspired by AsmrProg's ChatGPT Bot Coding project: Link to AsmrProg's project
- Inspired by the One click personal trainer w/ macros prompt on Snack Prompt: Link to Snack Prompt
- Icons provided by Font Awesome: Link to Font Awesome