feat: Add Chatwoot Agent Bot prototype and FAQ knowledge base

- Created chatwoot-agent-bot/ with Node.js webhook server
- Bot detects intent (greeting, billing, technical, features, account)
- Auto-responds from FAQ knowledge base or escalates to human
- FAQ-KB.md: Living knowledge base that grows with customer questions
- CHATWOOT-SETUP.md: Complete deployment and configuration guide
- Supports Telegram notifications on escalation
- Bot runs on port 3001, ready for Chatwoot webhook integration
This commit is contained in:
2026-04-01 16:26:05 -04:00
parent 7ba19752de
commit 5319bcd30b
1074 changed files with 456376 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
#!/bin/bash
# Daily SEO Report - 8 AM UTC
WORKSPACE="/Users/claw/.openclaw/workspace/agents/marketing-seo"
LOG="$WORKSPACE/logs"
cd $WORKSPACE
# Get GA4 data
GA=$(python3 scripts/ga4-direct.py 2>/dev/null | grep -A3 "Traffic Data")
SESSIONS=$(echo "$GA" | grep Sessions | grep -o "[0-9]*")
USERS=$(echo "$GA" | grep Users | grep -o "[0-9]*")
# Get site status
WWW_UP=$(curl -s -o /dev/null -w "%{http_code}" https://www.hoaledgeriq.com -m 10)
APP_UP=$(curl -s -o /dev/null -w "%{http_code}" https://app.hoaledgeriq.com -m 10)
# Rankings
RANK_STATUS="Establishment phase (not yet in top 100)"
# Send Telegram report
MSG="📊 *DAILY SEO REPORT* - $(date '+%a %b %d')
🌐 *Sites:*
✅ www.hoaledgeriq.com: ${WWW_UP}
✅ app.hoaledgeriq.com: ${APP_UP}
📈 *Traffic (24h):*
• Sessions: ${SESSIONS:-0}
• Users: ${USERS:-0}
📈 *Rankings:*
${RANK_STATUS}
• 8 keywords tracked
• Baseline established
• Monitoring for break-through
⚡ Status: Healthy ✅"
openclaw message send --channel telegram --target telegram:8269921691 --message "$MSG" 2>/dev/null || echo "$MSG" >> "$LOG/daily-$(date +%Y%m%d).log"
echo "Report sent: $(date)" >> "$LOG/report-sent.log"