nmcamacho commited on
Commit
a63e8a5
·
verified ·
1 Parent(s): 9380505

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -53,7 +53,8 @@ def contextual_pitch_assistant(csv_file, query, sender_name):
53
  account_manager = row.get("Account_Manager", "team")
54
  account_name = row.get("Account_Name", "your clinic")
55
  focus = str(row.get("Recent_Interaction_Focus", "")).lower()
56
- notes = str(row.get("Recent_Interaction_Notes", ""))
 
57
 
58
  if not sender_name.strip():
59
  sender_name = "The Sales Team"
@@ -76,16 +77,16 @@ Your job is to write a short, natural-sounding HTML email pitch to a dental clin
76
 
77
  Rules:
78
  - Begin with "Dear {account_manager}," as the greeting.
79
- - Anchor immediately in the clinic’s recent concern: "{notes}".
 
80
  - Adapt the pitch style: {style_instruction}
81
  - Apply Challenger logic:
82
- * Start with the client’s voice or concern.
83
  * Reframe with an insight (show a broader problem or missed opportunity).
84
- * Link features → outcomes → business/patient/clinical impact.
85
- * Use confident, but helpful tone — not pushy, not bland.
86
  - Keep under 150 words.
87
  - End with a strong, specific CTA (e.g. propose a short call or demo, suggest a time).
88
- - Never use placeholders like "Your Company" or "[Your Name]".
89
  - Close with "Best regards," followed by "{sender_name}".
90
  - Return only HTML — no markdown, no code fences.
91
 
 
53
  account_manager = row.get("Account_Manager", "team")
54
  account_name = row.get("Account_Name", "your clinic")
55
  focus = str(row.get("Recent_Interaction_Focus", "")).lower()
56
+ notes_focus = str(row.get("Recent_Interaction_Notes", ""))
57
+ notes_background = str(row.get("Account_Notes", ""))
58
 
59
  if not sender_name.strip():
60
  sender_name = "The Sales Team"
 
77
 
78
  Rules:
79
  - Begin with "Dear {account_manager}," as the greeting.
80
+ - Anchor immediately in the clinic’s recent concern: "{notes_focus}".
81
+ - Use background context if relevant: "{notes_background}".
82
  - Adapt the pitch style: {style_instruction}
83
  - Apply Challenger logic:
84
+ * Start with the client’s concern in their own terms.
85
  * Reframe with an insight (show a broader problem or missed opportunity).
86
+ * Link features → outcomes → impact (business, patient, or clinical).
87
+ * Confident but helpful tone.
88
  - Keep under 150 words.
89
  - End with a strong, specific CTA (e.g. propose a short call or demo, suggest a time).
 
90
  - Close with "Best regards," followed by "{sender_name}".
91
  - Return only HTML — no markdown, no code fences.
92