Chat.ai is a cutting-edge conversational AI chatbot powered by advanced language models, designed to provide intelligent and responsive interactions. This full-stack application leverages React for the frontend and Express for the backend, creating a seamless user experience.
- 💬 Real-time conversational interface
- 🌈 Elegant, responsive UI with gradient backgrounds
- 📨 Instant message sending and receiving
- 🔄 Loading indicators for smooth user experience
- 🛡️ Error handling and user feedback
- 🤖 AI-powered responses using OpenAI's language models
- React
- Axios
- Tailwind CSS
- Lucide React Icons
- Express.js
- OpenAI API
- Body-Parser
- CORS
- dotenv
- Node.js (v16+ recommended)
- npm or Yarn
- OpenAI API Key
git clone https://github.com/yourusername/chatbot-ai.git
cd chatbot-aiCreate .env files in both frontend and backend directories:
OPENAI_API_KEY=your_openai_api_key
MODEL=gpt-3.5-turbo
BASE_URL=https://api.openai.com/v1
BACKEND_PORT_NO=4000VITE_BACKEND_URL=http://localhost:4000cd backend
npm installcd frontend
npm installcd backend
npm startcd frontend
npm run dev- Adjust
maxTokensin backend to control response length - Modify
temperatureandtop_pfor different AI response behaviors - Customize UI in
ChatInterface.jsx
- State management for messages
- User input handling
- API communication
- Responsive UI design
- Express server setup
- OpenAI API integration
- Error handling
- Environment configuration
- Graceful error messages
- Console logging for debugging
- User-friendly error notifications
- Add user authentication
- Implement message history persistence
- Support multiple AI model selections
- Add voice input/output
- Create conversation themes/personalities
- Fork the repository
- Create your 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
Distributed under the MIT License. See LICENSE for more information.
Your Name - Shubham shinde Email - shubham.shindecs25@gmail.com Project Link: https://chat-ai-za82.vercel.app/
- OpenAI
- React
- Express
- Tailwind CSS
