system-prompts-and-models-o.../dealix/auto_client_acquisition/targeting_os/free_diagnostic.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

40 lines
1.7 KiB
Python

"""Free growth diagnostic — small preview, upsell to pilot."""
from __future__ import annotations
from typing import Any
from auto_client_acquisition.targeting_os.account_finder import recommend_accounts
def build_free_growth_diagnostic(company_profile: dict[str, Any]) -> dict[str, Any]:
sector = str(company_profile.get("sector") or "b2b")
city = str(company_profile.get("city") or "الرياض")
acc = recommend_accounts(sector, city, company_profile.get("offer") or "خدمة", company_profile.get("goal") or "نمو", limit=3)
opps = acc["accounts"][:3]
return {
"opportunities": opps,
"sample_message_ar": "نقدّم تجربة 7 أيام مع مسودات معتمدة — هل نرسل ملخصاً؟",
"risk_ar": "تأكد من opt-in قبل أي واتساب جماعي.",
"next_step_ar": "اطلب Pilot بـ 499 ريال أو ما يعادله بعد الاتفاق.",
"demo": True,
}
def analyze_uploaded_list_preview(contacts: list[dict[str, Any]]) -> dict[str, Any]:
"""Thin wrapper shape for router; full analysis uses platform import preview."""
return {"row_count": len(contacts), "hint_ar": "استخدم POST /api/v1/platform/contacts/import-preview للتحليل الكامل.", "demo": True}
def recommend_paid_pilot_offer(diagnostic: dict[str, Any]) -> dict[str, Any]:
return {
"name": "First 10 Opportunities Sprint",
"price_hint_sar": "499-1500",
"includes_ar": ["10 فرص", "10 مسودات", "Proof Pack مصغر"],
"demo": True,
}
def build_mini_proof_plan() -> dict[str, Any]:
return {"week_1": ["فرص", "مسودات"], "week_2": ["متابعة", "تقرير"], "demo": True}