system-prompts-and-models-o.../dealix/auto_client_acquisition/service_excellence/research_lab.py
Sami Assiri b13cb389cc feat(dealix): sync full Dealix package to repo
- API routers, ACA modules, integrations (draft operators)
- Docs, landing pages, scripts (launch readiness, scorecard)
- Tests and CI workflow updates for Dealix

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-01 21:01:17 +03:00

38 lines
1.2 KiB
Python

"""Deterministic research brief — no web calls."""
from __future__ import annotations
from typing import Any
def build_service_research_brief(service_id: str) -> dict[str, Any]:
return {
"service_id": service_id,
"hypotheses_ar": [
"تحسين رسالة الـ CTA يزيد الردود.",
"تقليل المتابعات يقلل الشكاوى.",
],
"experiments_ar": ["A/B لنبرة سعودية قصيرة", "تغيير ترتيب القنوات في الخطة"],
"demo": True,
}
def generate_feature_hypotheses(service_id: str) -> list[str]:
return [f"{service_id}: إضافة checklist امتثال", f"{service_id}: تقرير مقارنة منافسين"]
def recommend_next_experiments(service_id: str) -> list[str]:
return [f"{service_id}: تجربة سعر Pilot أعلى قليلاً", f"{service_id}: دمج Proof مع targeting"]
def build_monthly_service_review(service_id: str) -> dict[str, Any]:
return {
"service_id": service_id,
"review_ar": [
"ماذا تحسّن؟",
"ماذا أوقفنا؟",
"ما التجربة القادمة؟",
],
"demo": True,
}