Update app.py
Browse files
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
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
Query:
|
| 56 |
{query}
|
| 57 |
-
CRM
|
| 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 |
|