mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-17 23:09:35 +00:00
102 lines
6.2 KiB
Python
102 lines
6.2 KiB
Python
"""JSON summary for /strategy page and integrations."""
|
||
from __future__ import annotations
|
||
|
||
from fastapi import APIRouter
|
||
|
||
router = APIRouter(tags=["Strategy"])
|
||
|
||
_BLUEPRINT_VERSION = "4.0.0-legendary"
|
||
|
||
|
||
@router.get("/strategy/summary")
|
||
async def strategy_summary() -> dict:
|
||
return {
|
||
"product": "Dealix",
|
||
"blueprint_version": _BLUEPRINT_VERSION,
|
||
"positioning": "Revenue & Operations OS - B2B Saudi-first, governance, multi-tenant",
|
||
"vision": {
|
||
"tagline_ar": "ليس أداة فقط — شركة مبيعات رقمية مؤتمتة بالذكاء الاصطناعي تعمل 24/7",
|
||
"tagline_en": "Not just a tool — an AI-automated digital sales company operating 24/7",
|
||
},
|
||
"moat_pillars": [
|
||
"Local channels + compliance context (ZATCA, Arabic-first UX)",
|
||
"Governed actions (approvals before sensitive sends) vs generic chatbots",
|
||
"Multi-tenant CRM + integrations path (Salesforce, WhatsApp, Stripe, eSign)",
|
||
"Measurable self-improvement loops when enabled",
|
||
"OpenClaw-style durable flows + revision posture (see openclaw-config.yaml)",
|
||
],
|
||
"competitive_moat": {
|
||
"durable_runtime": "OpenClaw 2026.4.2 pattern — checkpoints, retries, bounded plugins",
|
||
"self_improvement": "6-phase loop: signals → diagnose → experiments → A/B → governance → promote/rollback",
|
||
"saudi_first": "WhatsApp-first, SAR, PDPL-aware handling; not generic US-centric sequences",
|
||
"knowledge": "In-app RAG only (PostgreSQL/pgvector, KnowledgeService) — no external RAG SaaS as SoT",
|
||
},
|
||
"auditable_targets": [
|
||
{"id": "revenue", "label_ar": "النمو الإيرادي", "target": "3–5× سنوياً مقابل خط أساس", "unit": "growth_vs_baseline"},
|
||
{"id": "efficiency", "label_ar": "كفاءة المبيعات", "target": "−70–80% عمل يدوي في المسار", "unit": "manual_work_reduction"},
|
||
{"id": "forecast", "label_ar": "دقة التنبؤ", "target": "أفق 30 يوماً — بيانات نظيفة ونماذج معايرة", "unit": "accuracy_horizon_30d"},
|
||
{"id": "cycle", "label_ar": "دورة الإغلاق", "target": "حوالي −40% زمن مقارنة بالخط الأساسي", "unit": "cycle_time_delta"},
|
||
{"id": "cac", "label_ar": "تكلفة الاكتساب", "target": "حوالي −31% عبر الأتمتة والتوجيه", "unit": "cac_delta"},
|
||
{"id": "compliance", "label_ar": "الامتثال", "target": "PDPL + جاهزية SOC2 للضوابط والسجلات", "unit": "policy"},
|
||
],
|
||
"design_principles": [
|
||
{"id": "value_first", "title_ar": "القيمة أولاً", "summary": "كل ميزة مربوطة بمؤشر عميل أو تشغيلي"},
|
||
{"id": "compliance_by_design", "title_ar": "الامتثال بالتصميم", "summary": "موافقات، سجلات، حدود بيانات وليست لاحقة"},
|
||
{"id": "self_evolving", "title_ar": "تطور ذاتي", "summary": "حلقة تحسين وتجارب بظلال/كاناري عند التفعيل"},
|
||
{"id": "simplicity", "title_ar": "بساطة ظاهرة", "summary": "تعقيد الداخل منظم؛ واجهة بسيطة"},
|
||
{"id": "measurable", "title_ar": "قابلية القياس", "summary": "ROI تنفيذي، تكلفة نماذج لكل مستأجر حيث ينطبق"},
|
||
{"id": "zero_trust", "title_ar": "أمان عبر عدم الثقة العمياء", "summary": "عزل مستأجرين؛ إجراءات حساسة خلف خطافات"},
|
||
],
|
||
"market_frame": "Global shift to Revenue Action Orchestration; high TCO on mega-platforms",
|
||
"phases": [
|
||
{"id": 0, "name": "Foundation", "horizon_days": 90},
|
||
{"id": 1, "name": "Differentiation", "horizon_months": "3-9"},
|
||
{"id": 2, "name": "Enterprise scale", "horizon_months": "9-18"},
|
||
{"id": 3, "name": "Geographic / category expansion", "horizon_months": "18-36"},
|
||
],
|
||
"execution_phases_detail": [
|
||
{
|
||
"id": 0,
|
||
"name_ar": "أساس الإنتاج",
|
||
"window": "0–90 يوماً",
|
||
"deliverables": ["CI واختبارات حرجة", "go-live gate", "pilot", "أصول تسويق موحّدة"],
|
||
},
|
||
{
|
||
"id": 1,
|
||
"name_ar": "MVP إيرادي",
|
||
"window": "شهر 2–3",
|
||
"deliverables": ["تأهيل أعمق", "عروض وعقود مسار", "لوحة ROI أساسية", "امتثال تشغيلي"],
|
||
},
|
||
{
|
||
"id": 2,
|
||
"name_ar": "توسع مؤسسي",
|
||
"window": "شهر 4–9",
|
||
"deliverables": ["أنماط multi-tenant أعمق", "مسار صوت", "طبقة تنبؤ إيرادات", "بوابة API"],
|
||
},
|
||
{
|
||
"id": 3,
|
||
"name_ar": "قيادة فئة",
|
||
"window": "شهر 10–36",
|
||
"deliverables": ["مناطق", "شراكات", "قطاعات عمودية", "سوق إضافات"],
|
||
},
|
||
],
|
||
"kpis": [
|
||
{"axis": "product", "metric": "API p95, 5xx rate"},
|
||
{"axis": "adoption", "metric": "channels enabled, approval usage"},
|
||
{"axis": "revenue", "metric": "NRR, pilot→paid"},
|
||
{"axis": "trust", "metric": "case studies, NPS"},
|
||
],
|
||
"doc_paths": {
|
||
"full_markdown_web": "/strategy/DEALIX_NEXT_LEVEL_MASTER_PLAN_AR.md",
|
||
"ultimate_execution_ar": "/strategy/ULTIMATE_EXECUTION_MASTER_AR.md",
|
||
"integration_master_ar": "/strategy/INTEGRATION_MASTER_AR.md",
|
||
"investor_html": "/dealix-marketing/investor/00-investor-dealix-full-ar.html",
|
||
},
|
||
"repo_paths": {
|
||
"blueprint": "salesflow-saas/MASTER-BLUEPRINT.mdc",
|
||
"openclaw_config": "salesflow-saas/openclaw/openclaw-config.yaml",
|
||
"ultimate_doc": "salesflow-saas/docs/ULTIMATE_EXECUTION_MASTER_AR.md",
|
||
"integration_master": "salesflow-saas/docs/INTEGRATION_MASTER_AR.md",
|
||
},
|
||
}
|