An intelligent feedback collection system that uses OpenAI to generate dynamic follow-up questions based on user responses.
- Beautiful UI with Tailwind CSS
- Dynamic question generation
- Progress tracking
- Automated follow-up questions using AI
- Secure data storage
- Clone the repository:
git clone https://github.com/2004yash/AI-Feedback-form
cd AI-Feedback-form
- Install dependencies:
pip install -r requirements.txt
- Create a
.env.local
file in the root directory with the following variables:
FLASK_SECRET_KEY=your-secret-key
OPENAI_API_KEY=your-openai-api-key
DB_HOST=your-database-host
DB_USER=your-database-username
DB_PASSWORD=your-database-password
DB_NAME=your-database-name
- Set up the database:
CREATE TABLE questions (
id INT PRIMARY KEY AUTO_INCREMENT,
question_text TEXT NOT NULL
);
CREATE TABLE feedback_qna2 (
id INT PRIMARY KEY AUTO_INCREMENT,
kid_name VARCHAR(255) NOT NULL,
phone_no VARCHAR(20) NOT NULL,
ques TEXT NOT NULL,
ans TEXT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
- Run the application:
python app.py
FLASK_SECRET_KEY
: Secret key for Flask sessionsOPENAI_API_KEY
: Your OpenAI API keyDB_HOST
: MySQL database hostDB_USER
: Database usernameDB_PASSWORD
: Database passwordDB_NAME
: Database name
- Flask
- MySQL
- OpenAI API
- Tailwind CSS
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.