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

80 lines
3.1 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""Structured commercial offers — deterministic, no payment execution."""
from __future__ import annotations
from typing import Any
def build_private_beta_offer() -> dict[str, Any]:
return {
"offer_id": "private_beta_shell",
"title_ar": "البيتا الخاصة — Dealix",
"summary_ar": "Pilot محدود: فرص، مسودات، موافقة، Proof — بدون إرسال حي افتراضياً.",
"price_sar": None,
"includes_ar": ["تشخيص أو سباق فرص", "كروت موافقة", "Proof Pack تجريبي"],
"no_live_send": True,
"demo": True,
}
def build_499_pilot_offer() -> dict[str, Any]:
return {
"offer_id": "pilot_7d_499",
"title_ar": "Pilot — ٧ أيام (٤٩٩ ريال)",
"price_sar": 499,
"duration_days": 7,
"deliverables_ar": [
"تشخيص نمو مختصر أو ٣ فرص عينة",
"١٠ فرص B2B مع لماذا الآن",
"١٠ رسائل عربية (مسودات)",
"فحص قابلية التواصل والمخاطر",
"خطة متابعة ٧ أيام",
"Proof Pack مختصر",
],
"payment_ar": "فاتورة أو رابط دفع يدوي عبر Moyasar (لوحة التحكم) — لا charge من API داخل Dealix في هذه المرحلة.",
"no_live_charge": True,
"no_live_send": True,
"demo": True,
}
def build_growth_os_pilot_offer() -> dict[str, Any]:
return {
"offer_id": "growth_os_pilot_30d",
"title_ar": "Growth OS Pilot — ٣٠ يوم",
"price_range_sar": {"min": 1500, "max": 3000},
"duration_days": 30,
"deliverables_ar": [
"موجز يومي تجريبي",
"١٠ فرص + ذكاء قوائم حسب الحالة",
"مسودات قنوات (بدون إرسال حي)",
"Proof Pack أسبوعي",
],
"no_live_charge": True,
"no_live_send": True,
"demo": True,
}
def build_case_study_free_offer() -> dict[str, Any]:
return {
"offer_id": "pilot_free_case_study",
"title_ar": "Pilot مجاني مقابل Case Study",
"price_sar": 0,
"conditions_ar": [
"موافقة على نشر نتائج معممة بدون بيانات حساسة",
"مقابلة قصيرة بعد الأسبوع",
],
"no_live_send": True,
"demo": True,
}
def recommend_offer_for_segment(segment: str) -> dict[str, Any]:
s = (segment or "").strip().lower()
if s in ("agency", "وكالة"):
return {"recommended": "growth_os_pilot_30d", "reason_ar": "وكالات غالباً تحتاج نطاق أوسع وتقارير لعملاء.", "demo": True}
if s in ("founder", "مؤسس", "b2b"):
return {"recommended": "pilot_7d_499", "reason_ar": "أسرع إثبات قيمة لشركة واحدة.", "demo": True}
return {"recommended": "pilot_7d_499", "reason_ar": "افتراضي آمن للبيع السريع.", "demo": True}