karthikmn commited on
Commit
2d3dd8f
·
verified ·
1 Parent(s): 2a4c77b

Update recommender.py

Browse files
Files changed (1) hide show
  1. 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 "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."
 
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 cadenceopportunity looks promising."