Update recommender.py
Browse files- recommender.py +7 -12
recommender.py
CHANGED
|
@@ -1,17 +1,12 @@
|
|
| 1 |
def generate_recommendation(stage, emails, meetings, risk):
|
| 2 |
if risk == "High":
|
| 3 |
if meetings == 0:
|
| 4 |
-
return "
|
| 5 |
elif emails < 2:
|
| 6 |
-
return "Send a
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
elif risk == "Medium":
|
| 10 |
if stage == "Proposal/Price Quote":
|
| 11 |
-
return "
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
else:
|
| 15 |
-
return "Monitor closely; engagement trend is average."
|
| 16 |
-
else:
|
| 17 |
-
return "Deal looks strong — continue with planned next steps and maintain momentum."
|
|
|
|
| 1 |
def generate_recommendation(stage, emails, meetings, risk):
|
| 2 |
if risk == "High":
|
| 3 |
if meetings == 0:
|
| 4 |
+
return "Book a discovery call immediately."
|
| 5 |
elif emails < 2:
|
| 6 |
+
return "Send a personalized follow-up email."
|
| 7 |
+
return "Escalate to AE for requalification."
|
| 8 |
+
if risk == "Medium":
|
|
|
|
| 9 |
if stage == "Proposal/Price Quote":
|
| 10 |
+
return "Suggest one more demo session before proposal."
|
| 11 |
+
return "Reinforce value proposition via email."
|
| 12 |
+
return "Maintain cadence — opportunity looks promising."
|
|
|
|
|
|
|
|
|
|
|
|