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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -11
app.py CHANGED
@@ -69,21 +69,24 @@ def contextual_pitch_assistant(csv_file, query, sender_name):
69
  style_instruction = "Balance clinical, patient, and business value."
70
 
71
  # Build prompt
 
72
  prompt = f"""
73
- You are an expert in B2B email sales and marketing for dental technology solutions.
74
-
75
- Write a short, natural-sounding HTML sales email for a dental clinic.
76
 
77
  Rules:
78
- - Always begin with "Dear {account_manager}," as the greeting.
79
- - Refer naturally to the clinic "{account_name}" in the body.
80
  - Adapt the pitch style: {style_instruction}
81
- - Use this recent interaction note for inspiration: "{notes}"
82
- - Focus on value, benefits, and a helpful tone — avoid technical jargon or metrics like churn or satisfaction scores.
83
- - Never include placeholders such as "Your Company Name" or "[Your Name]".
84
- - End the email with "Best regards," followed by "{sender_name}".
85
- - Keep it under 150 words.
86
- - Include a polite call to action at the end (e.g. suggesting a demo or short call).
 
 
 
87
  - Return only HTML — no markdown, no code fences.
88
 
89
  Query:
@@ -93,6 +96,7 @@ CRM context (for your understanding, do not copy verbatim):
93
  {row_to_text(row)}
94
  """
95
 
 
96
  response = client.chat.completions.create(
97
  model="gpt-4o-mini",
98
  messages=[{"role": "user", "content": prompt}],
 
69
  style_instruction = "Balance clinical, patient, and business value."
70
 
71
  # Build prompt
72
+
73
  prompt = f"""
74
+ You are an expert in B2B sales messaging, inspired by Challenger Sales and Jeb Blount’s prospecting techniques.
75
+ Your job is to write a short, natural-sounding HTML email pitch to a dental clinic.
 
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
 
92
  Query:
 
96
  {row_to_text(row)}
97
  """
98
 
99
+
100
  response = client.chat.completions.create(
101
  model="gpt-4o-mini",
102
  messages=[{"role": "user", "content": prompt}],