system-prompts-and-models-o.../dealix/auto_client_acquisition/targeting_os/social_strategy.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.3 KiB
Python

"""Social — official APIs and drafts only."""
from __future__ import annotations
from typing import Any
def social_do_not_do() -> list[str]:
return ["unauthorized_scraping", "auto_dm_without_permission", "firehose_access", "fake_engagement"]
def recommend_social_sources(sector: str, goal: str) -> dict[str, Any]:
return {
"sector": sector,
"goal": goal,
"recommended_sources": ["linkedin_lead_form", "meta_business_inbox_registered", "x_api_registered_webhook"],
"do_not_do": social_do_not_do(),
"summary_ar": "اربط القنوات التي تملك صلاحية رسمية لها فقط.",
"demo": True,
}
def build_social_listening_plan(sector: str, keywords: list[str]) -> dict[str, Any]:
return {
"sector": sector,
"keywords": keywords[:20],
"plan_ar": "راقب الكلمات عبر webhooks/APIs المسجّلة؛ حوّل الإشارات إلى كروت مسودة داخل المنصة.",
"approval_required": True,
"demo": True,
}
def draft_public_reply(comment: str, brand_voice: str) -> dict[str, Any]:
return {
"draft_reply_ar": f"شكراً لتعليقكم. نتواصل بالخاص لخدمتكم — [{brand_voice}]",
"original_snippet": comment[:200],
"approval_required": True,
"demo": True,
}