Create recommender.py
Browse files- recommender.py +17 -0
recommender.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
def generate_recommendation(stage, emails, meetings, risk):
|
2 |
+
if risk == "High":
|
3 |
+
if meetings == 0:
|
4 |
+
return "Engagement is too low — schedule a call ASAP."
|
5 |
+
elif emails < 2:
|
6 |
+
return "Send a strong follow-up email to revive the deal."
|
7 |
+
else:
|
8 |
+
return "Evaluate lead quality and consider requalification."
|
9 |
+
elif risk == "Medium":
|
10 |
+
if stage == "Proposal/Price Quote":
|
11 |
+
return "One more meeting may help close the deal."
|
12 |
+
elif stage == "Negotiation":
|
13 |
+
return "Follow up with urgency — include timeline in next steps."
|
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."
|