This project provides an AI-powered customer support interface for Ayesha's Shopping Store, featuring:
- Natural language conversation with customers
- Order tracking functionality
- Product and policy information
- Beautiful, animated UI with Tailwind CSS
- Fully responsive design
✨ Elegant Chat Interface
🎨 Tailwind CSS Styling
🌐 Responsive Design
🤖 AI-Powered Responses
📦 Order Tracking Integration
⏱️ Real-time Message Timestamps
🌀 Smooth Animations
🚀 FastAPI Backend Integration
- Node.js (v16 or later)
- Python (3.8 or later)
- npm or yarn
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install # or yarn install -
Create a
.env.localfile with:NEXT_PUBLIC_API_URL=http://localhost:8000
-
Run the development server:
npm run dev # or yarn dev
-
Navigate to the backend directory:
cd backend -
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Create a
.envfile with:GEMINI_API_KEY=your_api_key_here
-
Run the FastAPI server:
uvicorn main:app --reload
- Access the frontend at
http://localhost:3000 - Interact with the AI customer support agent
- Ask about orders, products, or store policies
/ayesha-shopping-support
├── /frontend # Next.js application
│ ├── /pages # Application pages
│ ├── /public # Static files
│ └── package.json # Frontend dependencies
│
├── /backend # FastAPI application
│ ├── main.py # API endpoints
│ └── .env # Environment variables
│
├── README.md # This file
├── .gitignore # Git ignore rules
Modify the AI responses in:
backend/main.py
Hydration Errors:
- Ensure all dynamic content is client-side rendered
- Verify consistent timestamp formatting
API Connection Issues:
- Check CORS settings in backend
Missing Environment Variables:
- Ensure both
.env(backend)
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License.
For questions or support, please contact:
- Email: ayeshanasir07000@gmail.com
- Linkedln:
https://www.linkedin.com/in/ayeshanasirwin/
Enjoy your enhanced customer support experience! 🛍️💬