Spaces:
Sleeping
Sleeping
Update bonuses/generator.py
Browse files- bonuses/generator.py +7 -2
bonuses/generator.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
def create_bonus_instruction(avatar_description=None, product_name=None, selected_formula_name=None, target_audience=None, uploaded_content=None):
|
2 |
"""
|
3 |
Creates instructions for generating compelling bonuses that complement the main offer.
|
4 |
|
@@ -8,12 +8,13 @@ def create_bonus_instruction(avatar_description=None, product_name=None, selecte
|
|
8 |
selected_formula_name: Name of the formula used for the main offer
|
9 |
target_audience: Description of the target audience (alternative to avatar_description)
|
10 |
uploaded_content: Content from uploaded files (if any)
|
|
|
11 |
|
12 |
Returns:
|
13 |
str: Complete instruction for generating bonuses
|
14 |
"""
|
15 |
# Check if any information is provided
|
16 |
-
if not avatar_description and not product_name and not selected_formula_name and not target_audience and not uploaded_content:
|
17 |
return """
|
18 |
ADVERTENCIA: No se ha proporcionado ninguna informaci贸n para generar bonos.
|
19 |
|
@@ -23,6 +24,7 @@ def create_bonus_instruction(avatar_description=None, product_name=None, selecte
|
|
23 |
- F贸rmula seleccionada para la oferta principal
|
24 |
- Audiencia objetivo
|
25 |
- Contenido adicional relevante
|
|
|
26 |
|
27 |
Sin esta informaci贸n, los bonos generados ser谩n gen茅ricos y posiblemente menos efectivos para tu oferta espec铆fica.
|
28 |
"""
|
@@ -125,6 +127,9 @@ AVAILABLE INFORMATION FOR ANALYSIS:
|
|
125 |
3. UPLOADED CONTENT:
|
126 |
{uploaded_content if uploaded_content else "No additional content uploaded."}
|
127 |
|
|
|
|
|
|
|
128 |
{guidance}
|
129 |
|
130 |
IMPORTANT: Analyze ALL available information above to identify specific pain points, objections, and needs that can be addressed through bonuses.
|
|
|
1 |
+
def create_bonus_instruction(avatar_description=None, product_name=None, selected_formula_name=None, target_audience=None, uploaded_content=None, skills=None):
|
2 |
"""
|
3 |
Creates instructions for generating compelling bonuses that complement the main offer.
|
4 |
|
|
|
8 |
selected_formula_name: Name of the formula used for the main offer
|
9 |
target_audience: Description of the target audience (alternative to avatar_description)
|
10 |
uploaded_content: Content from uploaded files (if any)
|
11 |
+
skills: User's skills and expertise
|
12 |
|
13 |
Returns:
|
14 |
str: Complete instruction for generating bonuses
|
15 |
"""
|
16 |
# Check if any information is provided
|
17 |
+
if not avatar_description and not product_name and not selected_formula_name and not target_audience and not uploaded_content and not skills:
|
18 |
return """
|
19 |
ADVERTENCIA: No se ha proporcionado ninguna informaci贸n para generar bonos.
|
20 |
|
|
|
24 |
- F贸rmula seleccionada para la oferta principal
|
25 |
- Audiencia objetivo
|
26 |
- Contenido adicional relevante
|
27 |
+
- Habilidades y experiencia
|
28 |
|
29 |
Sin esta informaci贸n, los bonos generados ser谩n gen茅ricos y posiblemente menos efectivos para tu oferta espec铆fica.
|
30 |
"""
|
|
|
127 |
3. UPLOADED CONTENT:
|
128 |
{uploaded_content if uploaded_content else "No additional content uploaded."}
|
129 |
|
130 |
+
4. SKILLS AND EXPERTISE:
|
131 |
+
{skills if skills else "No specific skills provided."}
|
132 |
+
|
133 |
{guidance}
|
134 |
|
135 |
IMPORTANT: Analyze ALL available information above to identify specific pain points, objections, and needs that can be addressed through bonuses.
|