A custom AI-powered chatbot for www.ccwithai.com that uses ChatGPT to provide responses based on stored knowledge.
- AI-powered responses using ChatGPT
- Custom knowledge base integration
- Modern chat interface using Deep Chat
- API endpoints for chat and knowledge base management
- Clone this repository
- Install dependencies:
pip install -r requirements.txt
- Create a
.env
file based on.env.example
and add your OpenAI API key:OPENAI_API_KEY=your_openai_api_key_here
- Run the application:
python app.py
To add information to the knowledge base, send a POST request to /api/add-knowledge
with JSON data:
{
"content": "Your knowledge content here"
}
- Access the chat interface at
http://localhost:5000
- Type your questions in the chat interface
- The AI will respond based on the stored knowledge base
For production deployment:
- Use a proper database instead of file-based storage
- Implement proper security measures
- Use a production-grade server like Gunicorn
- Set up SSL/TLS for HTTPS
- Implement proper error handling and logging
- Add rate limiting and API key validation
MIT License