mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-19 15:59:37 +00:00
New agents: partnership_strategist, negotiation (10 objections), crm_revenue (16 statuses), learning, web_search, enrichment, campaign_orchestrator, competitor_intelligence, content_strategy New engines: - scoring/scoring_engine.py: unified scoring with 9 sector defaults - compliance/compliance_engine.py: channel policy + daily limits + stop words Evals: 10/10 PASS (100%) - Agency → email + agency_partner ✅ - Real estate → email + direct_customer ✅ - Clinic → whatsapp_warm ✅ - Ecommerce → email ✅ - Website agency → linkedin_manual + implementation_partner ✅ - Consulting → linkedin_manual + referral_partner ✅ - All: compliance=allowed, opt-out present, no prohibited actions https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
26 lines
1.8 KiB
Python
26 lines
1.8 KiB
Python
from dealix_gtm_os.agents.base_agent import BaseAgent
|
|
|
|
OBJECTION_RESPONSES = {
|
|
"غالي": "499 ريال لـ 7 أيام مع ضمان استرداد. لو حفظنا lead واحد = أكثر من 499.",
|
|
"عندنا CRM": "CRM يخزّن. Dealix يحرّك العميل للخطوة التالية. الطبقة اللي قبل.",
|
|
"نفكّر": "طبعاً. أرسل لكم مثال عملي تشوفونه بهدوء. وش يخليكم تترددون؟",
|
|
"أرسل تفاصيل": "10 دقائق ديمو أوضح من أي PDF. يناسبكم بكرا؟",
|
|
"مو الحين": "فاهم. أرسل لكم ملخص ترجعون لي وقت ما يناسبكم.",
|
|
"عندنا وكالة": "ممتاز — Dealix يكمّل شغل الوكالة بعد الإعلان.",
|
|
"ما نعرفكم": "عادي — نحن جدد. Pilot 499 ريال + ضمان. ما فيه مخاطرة.",
|
|
"كم السعر": "Pilot 499 ريال + ضمان. Starter 990/شهر. وكالات 20% لهم.",
|
|
"white-label": "ممكن لاحقاً بعد 3 عملاء. الحين نثبت الخدمة باسم Dealix.",
|
|
"مين يملك العميل": "العميل عميلك. أنت العلاقة، أنا التشغيل.",
|
|
}
|
|
|
|
class NegotiationAgent(BaseAgent):
|
|
name = "negotiation"
|
|
description = "Handles objections and negotiation"
|
|
|
|
async def run(self, input_data: dict) -> dict:
|
|
objection = input_data.get("objection", "")
|
|
for key, response in OBJECTION_RESPONSES.items():
|
|
if key in objection:
|
|
return {"objection": objection, "response": response, "next_action": "follow_up", "confidence": 0.9}
|
|
return {"objection": objection, "response": "أفهمك. خلني أشرح لك بالضبط كيف Dealix يخدم نشاطكم.", "next_action": "demo", "confidence": 0.6}
|