system-prompts-and-models-o.../salesflow-saas/knowledge-base/escalation-rules.md
Claude 84762f08ab
Add complete launch infrastructure: models, APIs, agents, compliance, docs, knowledge base
Phase 1 - Repo Hardening:
- README.md, LICENSE, SECURITY.md, CONTRIBUTING.md
- GitHub Actions repo-hygiene workflow
- docs/: ARCHITECTURE, DATA-MODEL, API-MAP, AGENT-MAP, DEPLOYMENT-NOTES

Phase 2 - Database Models (7 new):
- Company, Contact, Call, Commission, Payout, Dispute, GuaranteeClaim
- Consent, Complaint, Policy, KnowledgeArticle, SectorAsset
- Updated models/__init__.py with all 32+ models

Phase 3 - API Surfaces (16 new route files):
- companies, contacts, calls, meetings, commissions, payouts
- disputes, guarantees, consents, complaints, knowledge
- sectors, presentations, supervisor, admin, health
- Updated router.py with all 24 route groups

Phase 4 - AI Prompt Registry (18 agent contracts):
- Lead Qualification, Affiliate Recruitment Evaluator, Onboarding Coach
- Outreach Writer, Arabic WhatsApp, English Conversation, Voice Call
- Meeting Booking, Sector Strategist, Objection Handler
- Proposal Drafter, QA Reviewer, Compliance Reviewer
- Knowledge Retrieval, Revenue Attribution, Fraud Reviewer
- Guarantee Claim Reviewer, Management Summary

Phase 5 - Communication Templates:
- 15 production templates (WhatsApp, email, voice, internal)
- Arabic + English variants with variable interpolation

Phase 6 - Compliance Center (7 legal docs):
- Privacy policy, Terms of service, Refund policy
- Commission policy, Affiliate rules, Consent policy, Data protection
- All PDPL-compliant, Arabic

Phase 7 - Celery Workers (fully implemented):
- follow_up_tasks: automated lead follow-ups with workflow execution
- message_tasks: WhatsApp/email/SMS with retry logic
- notification_tasks: daily reports, meeting reminders, in-app notifications
- affiliate_tasks: target checking, commission calculation, weekly reports, AI outreach

Phase 8 - Knowledge Base OS (8 files):
- Services overview, Pricing policy, Channel policy, Meeting policy
- Identity rules, Escalation rules, Hiring path, Internal SOPs

https://claude.ai/code/session_01KnJgK7RwyeCvRZTRThHtfU
2026-03-31 07:57:48 +00:00

73 lines
2.4 KiB
Markdown

# قواعد التصعيد - Dealix
## مستويات التصعيد
### المستوى 1: البوت/الأتمتة
**يتعامل مع:**
- أسئلة عامة عن Dealix
- معلومات الباقات والأسعار
- حجز اجتماعات
- إرسال مواد تعريفية
- متابعة روتينية
**يُصعّد إذا:**
- العميل طلب شخص حقيقي
- مشاعر سلبية مستمرة (3+ رسائل)
- سؤال خارج قاعدة المعرفة
- اعتراض لم يُحل بعد محاولتين
### المستوى 2: مستشار المبيعات/المسوق
**يتعامل مع:**
- عملاء مؤهلين مهتمين
- اعتراضات متكررة
- عروض أسعار مخصصة
- متابعة ما بعد الديمو
**يُصعّد إذا:**
- العميل يطلب خصم خاص خارج الصلاحية
- مشكلة تقنية
- شكوى رسمية
- صفقة قيمتها أكبر من 5,000 ر.س/شهر
- عميل مؤسسي كبير
### المستوى 3: مدير المبيعات
**يتعامل مع:**
- صفقات كبيرة
- خصومات استثنائية
- شكاوى جدية
- نزاعات عمولات
**يُصعّد إذا:**
- طلب استرجاع/ضمان
- تهديد قانوني
- مشكلة أمنية
- شكوى خصوصية
### المستوى 4: المؤسس/الإدارة العليا
**يتعامل مع:**
- طلبات ضمان ذهبي
- نزاعات قانونية
- شكاوى خصوصية (PDPL)
- قرارات استراتيجية
- عملاء VIP
## مواعيد الاستجابة (SLA)
| المستوى | الأولوية | وقت الاستجابة |
|---------|---------|-------------|
| Level 1 (بوت) | كل الطلبات | < 30 ثانية |
| Level 2 (مبيعات) | عادي | < 4 ساعات |
| Level 2 (مبيعات) | عاجل | < 1 ساعة |
| Level 3 (مدير) | عادي | < 24 ساعة |
| Level 3 (مدير) | عاجل | < 4 ساعات |
| Level 4 (إدارة) | عادي | < 48 ساعة |
| Level 4 (إدارة) | عاجل | < 12 ساعة |
| Level 4 (إدارة) | طوارئ | < 2 ساعة |
## حالات تصعيد فوري (لا تنتظر)
1. تهديد بالشكوى للجهات الرسمية
2. ادعاء بتسريب بيانات
3. محاولة احتيال مكتشفة
4. عميل غاضب جداً ويرفض كل الحلول
5. خطأ في حساب العمولات اكتشفه المسوق