Update mock_model.py
Browse files- mock_model.py +11 -0
mock_model.py
CHANGED
@@ -1,5 +1,16 @@
|
|
1 |
import random
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
def generate_recommendation(stage, emails, meetings):
|
4 |
if stage == "Negotiation":
|
5 |
return "Follow up with final pricing discussion."
|
|
|
1 |
import random
|
2 |
|
3 |
+
# New function: stage-based lead score generator
|
4 |
+
def get_lead_score_for_stage(stage):
|
5 |
+
stage_scores = {
|
6 |
+
"Prospecting": (20, 40),
|
7 |
+
"Proposal/Price Quote": (50, 70),
|
8 |
+
"Negotiation": (70, 90),
|
9 |
+
"Closed Won": (90, 100),
|
10 |
+
"Closed Lost": (10, 30)
|
11 |
+
}
|
12 |
+
return random.randint(*stage_scores.get(stage, (30, 70)))
|
13 |
+
|
14 |
def generate_recommendation(stage, emails, meetings):
|
15 |
if stage == "Negotiation":
|
16 |
return "Follow up with final pricing discussion."
|