nmcamacho commited on
Commit
0642839
verified
1 Parent(s): 63d328e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -5
app.py CHANGED
@@ -48,13 +48,20 @@ def contextual_pitch_assistant(csv_file, query):
48
  retrieved = [text_chunks[i] for i in I[0]]
49
 
50
  prompt = f"""
51
- You are an expert in B2B sales and digital pitching for dental clinics.
52
- Based on the following CRM insights and query, generate:
53
- 1) A short HTML email pitch (subject + body) ready to send.
54
- 2) A DALL路E 3 prompt for a matching header image.
 
 
 
 
 
 
 
55
  Query:
56
  {query}
57
- CRM data:
58
  {'---'.join(retrieved)}
59
  """
60
 
 
48
  retrieved = [text_chunks[i] for i in I[0]]
49
 
50
  prompt = f"""
51
+ You are an expert in B2B email sales and marketing for dental technology solutions.
52
+
53
+ Write a short, natural-sounding **HTML sales email** for a dental clinic.
54
+ Rules:
55
+ - Always begin with "Dear {retrieved[0].split('Account Manager: ')[1].split('\\n')[0].strip()}," (the Account Manager鈥檚 name).
56
+ - Refer naturally to the clinic "{retrieved[0].split('Clinic: ')[1].split('\\n')[0].strip()}" in the body.
57
+ - Focus on the value and benefits of the proposed solution (no metrics or internal KPIs).
58
+ - Do **not** include placeholders like "Your Company Name" or "[Your Name]".
59
+ - Keep it under 150 words, professional yet approachable.
60
+ - Include a polite call to action at the end (e.g. suggesting a demo or short call).
61
+ - Do not include any markdown formatting, only HTML tags.
62
  Query:
63
  {query}
64
+ CRM context (for your understanding, do not copy verbatim):
65
  {'---'.join(retrieved)}
66
  """
67