|
def prepare_text_input(data): |
|
return ( |
|
f"Stage: {data.get('stage')}, " |
|
f"Industry: {data.get('industry')}, " |
|
f"Lead Score: {data.get('lead_score')}, " |
|
f"Emails: {data.get('emails_last_7_days')}, " |
|
f"Meetings: {data.get('meetings_last_30_days')}, " |
|
f"Amount: {data.get('amount')}, " |
|
f"Close Gap: {data.get('close_date_gap')} days" |
|
) |
|
|
|
def generate_recommendation(data): |
|
stage = data.get("stage", "").lower() |
|
if stage == "negotiation": |
|
return "Follow up with final pricing discussion." |
|
elif stage == "proposal/price quote": |
|
return "Schedule one more meeting to present value." |
|
else: |
|
return "Send an email to re-engage the lead." |
|
|