This project is a chatbot designed to help users prepare for behavioral interviews. It uses Flask for the backend and the Google Gemini API to generate and analyze responses, providing real-time or mock interview feedback tailored to the user's role, industry, and experience level.
- Real-Time Feedback Mode: Provides immediate feedback after each response.
- Mock Interview Mode: The user can either do a full interview session or summarize feedback at the end.
- Role-Specific Questions: Generates questions tailored to the user's job role, industry, and experience.
- Constructive Feedback: Uses the STAR method (Situation, Task, Action, Result) to evaluate responses.
- Python 3.9 or higher
- A valid Google Gemini API key
- Visual Studio Code (Recommended)
- Clone this repository to your local machine:
git clone https://github.com/nhatminh23-03/behavioral-interview-prep-chatbot.git
- Navigate to the project directory:
cd behavioral-interview-prep-chatbot - Create a virtual environment (optional but recommended):
python -m venv venv
- Activate the virtual environment:
source venv/bin/activate # For window: venv\Scripts\activate
- Install the required Python packages:
pip install -r requirements.txt
- Create an .env file to store your API key: In the project root, create a file named .env and add the following line:
GEMINI_API_KEY=your_api_key_here
- Open the project in VS Code (recommend):
code . - Run the chatbot:
python app.py
- Access the chatbot in your browser:
After running the command above, you will see a message in the terminal similar to this:
For example:
Running on http://127.0.0.1:5000/
Open your browser and navigate to the URL to interact with the chatbot.