A powerful customer support chatbot built with Streamlit and OpenAI's GPT models, designed to handle customer inquiries efficiently and provide intelligent responses.
- Overview
- Features
- Installation
- Usage
- Configuration
- Project Structure
- Technologies Used
- Contributing
- License
This Customer Support Bot leverages advanced AI to provide instant, intelligent responses to customer queries. Built with Streamlit for a seamless user interface and powered by OpenAI's language models, it offers a modern solution for automated customer service.
- 🤖 AI-Powered Responses: Utilizes OpenAI's GPT models for intelligent conversation
- 💬 Real-time Chat Interface: Clean and intuitive chat UI built with Streamlit
- 🎯 Context-Aware Conversations: Maintains conversation context for coherent interactions
- ⚡ Easy Deployment: Simple setup and deployment process
- 🔧 Customizable: Easy to modify and extend for specific use cases
- 📱 Responsive Design: Works well on both desktop and mobile devices
- Python 3.8 or higher
- OpenAI API key
- Clone the repository
git clone https://github.com/znblrean/customer-support-bot.git
cd customer-support-bot- Create a virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies
pip install -r requirements.txt- Set up environment variables
- Create a
.envfile in the root directory - Add your OpenAI API key:
- Create a
OPENAI_API_KEY=your_openai_api_key_here- Start the Streamlit app
streamlit run app.py- Access the application
- Open your web browser and go to
http://localhost:8501 - Start chatting with the customer support bot!
- Open your web browser and go to
- Enter your message in the chat input box
- Press Enter or click the Send button
- The AI will generate a response based on your query
- Continue the conversation as needed
The following environment variables can be configured:
OPENAI_API_KEY: Your OpenAI API key (required)OPENAI_MODEL: GPT model to use (default: gpt-3.5-turbo)TEMPERATURE: Controls response creativity (default: 0.7)
You can customize the AI behavior by modifying:
- Temperature: Higher values (e.g., 0.8) make responses more creative, lower values (e.g., 0.2) make them more focused
- Max Tokens: Limit the length of responses
- System Prompt: Define the bot's personality and response style
customer-support-bot/
├── app.py # Main Streamlit application
├── requirements.txt # Python dependencies
├── .env.example # Example environment variables
├── README.md # Project documentation
├── utils/ # Utility functions
│ ├── __init__.py
│ └── chat_utils.py # Chat-related utilities
├── config/ # Configuration files
│ └── settings.py # Application settings
└── assets/ # Static assets (if any)
- Streamlit: Web application framework
- OpenAI API: AI-powered language model
- Python-dotenv: Environment variable management
- Python 3.8+: Programming language
We welcome contributions! Please feel free to submit pull requests or open issues for bugs and feature requests.
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Follow the installation steps above
- Make your changes
- Test thoroughly
- Ensure code follows PEP 8 guidelines
- Update documentation as needed
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions:
- Check the Issues page
- Create a new issue with detailed information
- Provide steps to reproduce any bugs
- OpenAI for providing the GPT API
- Streamlit for the excellent web framework
- Contributors and users who help improve this project
⭐ If you find this project helpful, please give it a star!