This is an AI-powered chatbot that automatically engages with users who sign up on your website. It can answer questions about your company based on PDF documents and send automated emails.
- User signup and authentication
- AI-powered chat interface
- PDF document processing
- Automated email responses
- Modern, responsive UI
- Secure user data storage
- Python 3.7+
- OpenAI API key
- Gmail account (for sending emails)
-
Clone the repository
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.env
file in the root directory with the following variables:SECRET_KEY=your-secret-key-here OPENAI_API_KEY=your-openai-api-key-here EMAIL_USER=your-email@gmail.com EMAIL_PASSWORD=your-email-app-password
-
Place your company information PDF in the root directory as
company_info.pdf
-
Run the application:
python app.py
- Open your browser and navigate to
http://localhost:5000
- Sign up with your email and password
- Start chatting with the AI assistant
- The chatbot will automatically answer questions based on your company's PDF information
- Welcome emails are sent automatically upon signup
- Never commit your
.env
file to version control - Use strong passwords for your email and OpenAI API key
- Keep your company information PDF secure and up-to-date
- Modify the email templates in the
app.py
file - Update the UI by editing
templates/index.html
- Add more features by extending the Flask routes in
app.py
MIT License