Two-part solution for automating WordPress/WooCommerce tasks and monitoring competitor market intelligence.
Natural language → WooCommerce REST API.
# Set your WooCommerce credentials
export WOO_STORE_URL="https://your-store.com"
export WOO_CONSUMER_KEY="ck_..."
export WOO_CONSUMER_SECRET="cs_..."
# Run commands
python woo_agent.py "change price of Red Shirt to $29.99"
python woo_agent.py "set Red Shirt out of stock"
python woo_agent.py "set Red Shirt in stock"Scrapes competitor websites, compares prices, generates AI report, emails.
# Configure competitors in config.yaml
cp config.example.yaml config.yaml
# Edit config.yaml with your competitor URLs
# Run monitor (Mon/Thu via cron)
python market_monitor.py --config config.yaml
# Dry run (no email)
python market_monitor.py --config config.yaml --dry-runCron schedule (Mon/Thu 9am):
0 9 * * 1,4 cd /path/to/wordpress-automation && python market_monitor.py --config config.yaml- NL command parsing via free LLM (Groq) with regex fallback
- WooCommerce REST API v3
- Competitor web scraping (JSON-LD + CSS selectors)
- SQLite price history with diff detection
- AI report synthesis (Groq free tier)
- MAP (Minimum Advertised Price) enforcement
- Out-of-stock detection
- Email delivery via SMTP
pip install -r requirements.txtMIT