🛠️ AI CRM Setup

First-time installation helper — delete this file after setup!

1. Database Status

✓ Connected to u602691546_aicrm 10/10 tables found
TableStatus
company ✅ OK
users ✅ OK
ai_agents ✅ OK
contacts ✅ OK
campaigns ✅ OK
call_logs ✅ OK
appointments ✅ OK
followups ✅ OK
notifications ✅ OK
user_sessions ✅ OK

2. Users & Password Reset

NameEmailRoleHash OK?Status
Admin User admin@aicrm.com admin ❌ BAD active
Manager One manager@aicrm.com manager ❌ BAD active
Sales Agent agent@aicrm.com agent ❌ BAD active

3. Ready to Login?

✅ Everything looks good! Click below to go to the login page.
🚀 Go to Login →

Use: admin@aicrm.com with the password you just set above

📋 Quick Fix Checklist

1
Open includes/config.php — set DB_HOST, DB_NAME, DB_USER, DB_PASS to match your cPanel MySQL details
2
Refresh this page — if "Connected" shows green, DB is OK
3
If tables are missing → click "Auto-Import database.sql" above
4
Click "Reset All Passwords" above with your chosen password
5
Click "Go to Login" — use admin@aicrm.com + your password
6
Delete this setup.php file from your server!
⚠️ Security Warning: Delete setup.php and diagnostic.php from your server immediately after setup. They expose database information.