Meet your next-level assistant: Product Control Agent β an AI-powered solution that makes controlling and analyzing your product website smarter and faster.
Product Control Agent is built to automate and simplify CRUD operations on your product website, leveraging the latest in AI to streamline workflows and supercharge productivity. With advanced analysis capabilities, it helps you make better decisions, faster. Vist this link to view the application demo.
Note: This repository does not include the Flask backend. Please visit: ai_product_agent to access or refer to the AI Agent implementation.
AI-Driven Automation: Leverages cutting-edge LLMs (like Llama 3 70B) to power intelligent CRUD operations and data analysis.
Seamless CRUD: Effortlessly manage products, categories, and data through an intuitive interface.
Rapid Analysis: Instantly generate AI-driven insights from your product data.
Modern Full-stack Architecture: Built on the robust MERN stack (MongoDB, Express, React, Node.js) with a Flask-based AI backend.
CORS Support: Enables smooth integration between frontend and backend services.
JWT Authentication: Ensures secure access to protected API endpoints.
MongoDB Storage: Scalable and efficient data storage for all your product records.
LLM-Powered Intelligence: Uses Llama 3 70B (or similar models) for deep data analysis and smart recommendations.
RESTful API: Provides clean, well-documented endpoints for seamless integration across your frontend and backend.
Secure Communication: Designed with security best practices for safe data exchange within your stack.
Configurable AI Model Path: Easily switch or upgrade AI models as needed.
Flexible Image Generation Options:
image_tools.py
.image_tools2.py
.Automatic AWS S3 Uploads: Downloaded images are automatically uploaded to your configured AWS S3 bucket. Ensure your AWS credentials are correctly set up.
node-jwt-frontend
)nodejs-jwt-auth
)product_agent_node/
βββ node-jwt-frontend/ # React.js + TailwindCSS frontend
βββ nodejs-jwt-auth/ # Node.js + Express + MongoDB + JWT + CORS backend
βββ flask-ai/ # Flask server for Llama 3 70B (if applicable)
βββ README.md
βββ ...
Clone the repository:
git clone https://github.com/YUGESHKARAN/product_agent_node.git cd product_agent_node
Install Frontend:
cd node-jwt-frontend npm install cd ..
Install Backend:
cd nodejs-jwt-auth npm install cd ..
Install Flask AI Server (optional):
cd flask-ai pip install -r requirements.txt cd ..
Backend (nodejs-jwt-auth/.env
):
PORT=5000 MONGODB_URI=mongodb://localhost:27017/your-db JWT_SECRET=your_jwt_secret
Backend (flask-ai/.env
):
GROQ_API_KEY= groq_api_key # To access the model llama3-70b SERPAPI_KEY=your_serpapi_key # Optional, for SerpAPI image generation UNSPLASH_ACCESS_KEY=your_unsplash_key # Optional, for Unsplash image generation AWS_ACCESS_KEY_ID=your_aws_access_key_id # Required, for S3 image storage AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key # Required, for S3 image storage AWS_S3_BUCKET_NAME=your_bucket_name # Required, for S3 image storage
Frontend (node-jwt-frontend/.env
):
REACT_APP_API_URL=http://localhost:5000
Flask AI (flask-ai/.env
):
MODEL_PATH=path/to/llama3-70b-8192
Express Backend:
cd nodejs-jwt-auth npm start
Frontend:
cd node-jwt-frontend npm start
Flask AI Server:
cd flask-ai python app.py
image_tools.py
β requires a valid SERPAPI_KEY
.image_tools2.py
β requires a valid UNSPLASH_ACCESS_KEY
.mongodb_database.py
:
from image_tools2 import search_and_download_image
Contributions and ideas are welcome! Open issues or submit pull requests.