Spaces:
Sleeping
Sleeping
Update prompts.py
Browse files- prompts.py +20 -1
prompts.py
CHANGED
|
@@ -16,7 +16,9 @@ CRITICAL OUTPUT RULES:
|
|
| 16 |
- Do not include phrases like "Aqu铆 tienes una oferta convincente" or "Esta es tu oferta"
|
| 17 |
"""
|
| 18 |
|
| 19 |
-
def create_offer_instruction(target_audience
|
|
|
|
|
|
|
| 20 |
"""
|
| 21 |
Creates the instruction for generating an offer based on the selected formula.
|
| 22 |
|
|
@@ -128,4 +130,21 @@ Create a compelling offer following the formula structure exactly, adapting it t
|
|
| 128 |
# Combine the base guidance with formula-specific guidance
|
| 129 |
instruction += f"\n\nMARKET SOPHISTICATION GUIDANCE:\n{base_sophistication_guidance}{formula_specific_guidance}\n\nEnsure the entire offer maintains consistency with this sophistication level while following the formula structure."
|
| 130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
return instruction
|
|
|
|
| 16 |
- Do not include phrases like "Aqu铆 tienes una oferta convincente" or "Esta es tu oferta"
|
| 17 |
"""
|
| 18 |
|
| 19 |
+
def create_offer_instruction(target_audience, product_service, selected_formula_name,
|
| 20 |
+
file_content=None, skills=None, sophistication_level=None,
|
| 21 |
+
consciousness_level=None): # Nuevo par谩metro
|
| 22 |
"""
|
| 23 |
Creates the instruction for generating an offer based on the selected formula.
|
| 24 |
|
|
|
|
| 130 |
# Combine the base guidance with formula-specific guidance
|
| 131 |
instruction += f"\n\nMARKET SOPHISTICATION GUIDANCE:\n{base_sophistication_guidance}{formula_specific_guidance}\n\nEnsure the entire offer maintains consistency with this sophistication level while following the formula structure."
|
| 132 |
|
| 133 |
+
# Secci贸n actualizada que incluye ambos par谩metros
|
| 134 |
+
instruction += f"""
|
| 135 |
+
Par谩metros clave a considerar:
|
| 136 |
+
- Nivel de sofisticaci贸n del mercado: {sophistication_level if sophistication_level else 'No especificado'}
|
| 137 |
+
- Nivel de conciencia del cliente: {consciousness_level if consciousness_level else 'No especificado'}
|
| 138 |
+
|
| 139 |
+
Reglas de combinaci贸n obligatorias (NUNCA LAS INCUMPLAS):
|
| 140 |
+
"""
|
| 141 |
+
|
| 142 |
+
# Nueva secci贸n que integra el nivel de conciencia
|
| 143 |
+
if consciousness_level:
|
| 144 |
+
instruction += f"""
|
| 145 |
+
Directrices espec铆ficas de conciencia (nivel {consciousness_level}):
|
| 146 |
+
- {offer_formulas[selected_formula_name]['core_parameters']['validation_rules']['required_components']['hook'][0]}
|
| 147 |
+
- {offer_formulas[selected_formula_name]['core_parameters']['validation_rules']['required_components']['promise'][0]}
|
| 148 |
+
"""
|
| 149 |
+
|
| 150 |
return instruction
|