Spaces:
Sleeping
Sleeping
Upload formulas.py
Browse files- formulas.py +30 -12
formulas.py
CHANGED
|
@@ -23,6 +23,8 @@ def create_offer_instruction(avatar_description, product_name, selected_formula_
|
|
| 23 |
# Format examples
|
| 24 |
examples_text = "\n\n".join([f"Example {i+1}:\n{example}" for i, example in enumerate(random_examples)])
|
| 25 |
|
|
|
|
|
|
|
| 26 |
# Add specific instructions for each formula
|
| 27 |
additional_instructions = ""
|
| 28 |
if selected_formula_name == "Fórmula Sueño-Obstáculo":
|
|
@@ -88,23 +90,37 @@ SPECIFIC INSTRUCTIONS FOR THIS FORMULA:
|
|
| 88 |
- Select a powerful attention hook that DIRECTLY connects with the avatar's current reality
|
| 89 |
- DO NOT use questions as hooks - use statements, statistics, or shocking revelations instead
|
| 90 |
- CUSTOMIZE the hook specifically for this avatar - don't use generic examples
|
|
|
|
| 91 |
- The hook MUST address the SAME problem that your promise will solve
|
| 92 |
|
| 93 |
-
Choose randomly from these
|
| 94 |
-
- "El 83% de los
|
| 95 |
-
- "9 de cada 10
|
| 96 |
-
- "Lo que nadie te dice sobre
|
| 97 |
-
- "El secreto que
|
| 98 |
-
- "
|
| 99 |
-
- "
|
| 100 |
-
- "
|
| 101 |
-
- "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
|
| 103 |
2. MAINTAIN THEMATIC CONSISTENCY:
|
| 104 |
- The attention hook, quantifiable promise, and benefit statement MUST all address the SAME problem
|
|
|
|
|
|
|
| 105 |
- Create a LOGICAL PROGRESSION from problem (hook) to solution (promise) to implementation (benefit)
|
| 106 |
|
| 107 |
-
3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
- Is written COMPLETELY IN CAPITAL LETTERS
|
| 109 |
- Includes concrete numbers (money, time, results)
|
| 110 |
- Uses powerful action verbs (EARN, MULTIPLY, ACHIEVE, MASTER)
|
|
@@ -113,13 +129,15 @@ SPECIFIC INSTRUCTIONS FOR THIS FORMULA:
|
|
| 113 |
- NEVER uses exclamation marks (!)
|
| 114 |
- DIRECTLY addresses the same problem mentioned in the hook
|
| 115 |
|
| 116 |
-
|
| 117 |
- Clearly explains the result they will obtain
|
| 118 |
- Includes an authority element (proven method, studies, experience)
|
| 119 |
- Establishes a realistic timeframe or effort needed
|
| 120 |
- CONTINUES the same theme established in the hook and promise
|
| 121 |
|
| 122 |
-
|
|
|
|
|
|
|
| 123 |
- Start directly with the attention hook
|
| 124 |
- The entire response should be ONLY the offer itself following the formula structure
|
| 125 |
"""
|
|
|
|
| 23 |
# Format examples
|
| 24 |
examples_text = "\n\n".join([f"Example {i+1}:\n{example}" for i, example in enumerate(random_examples)])
|
| 25 |
|
| 26 |
+
# Add specific instructions for Sueño-Obstáculo formula
|
| 27 |
+
# Add specific instructions for handling uploaded content
|
| 28 |
# Add specific instructions for each formula
|
| 29 |
additional_instructions = ""
|
| 30 |
if selected_formula_name == "Fórmula Sueño-Obstáculo":
|
|
|
|
| 90 |
- Select a powerful attention hook that DIRECTLY connects with the avatar's current reality
|
| 91 |
- DO NOT use questions as hooks - use statements, statistics, or shocking revelations instead
|
| 92 |
- CUSTOMIZE the hook specifically for this avatar - don't use generic examples
|
| 93 |
+
- CRITICAL: Ensure the hook is DIRECTLY RELATED to the promise and benefit that follow
|
| 94 |
- The hook MUST address the SAME problem that your promise will solve
|
| 95 |
|
| 96 |
+
Choose randomly from these hooks (avoiding questions) and CUSTOMIZE for your avatar:
|
| 97 |
+
- "El 83% de los emprendedores pierden dinero en anuncios que nadie convierte."
|
| 98 |
+
- "9 de cada 10 negocios online fracasan en sus primeros 6 meses por este error."
|
| 99 |
+
- "Lo que nadie te dice sobre el marketing digital es que la mayoría fracasa en los primeros 3 meses."
|
| 100 |
+
- "El secreto que las agencias de marketing no quieren que sepas sobre tu tráfico web."
|
| 101 |
+
- "Ah, otro día más tirando dinero en anuncios que no convierten... ¡Qué divertido!"
|
| 102 |
+
- "Felicidades, acabas de unirte al club de 'Invertí miles en mi web y nadie la visita'."
|
| 103 |
+
- "Tu lista de email está tan muerta que hasta los mensajes de spam tienen más aperturas."
|
| 104 |
+
- "Tu página de ventas convierte tan poco que hasta tu mamá cerró la pestaña sin comprar."
|
| 105 |
+
- "Mientras algunos facturan $10,000 al mes, tú sigues preguntándote por qué nadie compra."
|
| 106 |
+
- "Tus competidores están cerrando ventas mientras tú sigues 'perfeccionando' tu oferta."
|
| 107 |
+
- "La mayoría de cursos de marketing digital son una pérdida total de tiempo y dinero."
|
| 108 |
+
- "Tu estrategia actual de contenido está ahuyentando a tus clientes ideales."
|
| 109 |
+
- "Hace 6 meses estaba exactamente donde tú estás: creando contenido que nadie veía."
|
| 110 |
+
- "Recuerdo cuando mi negocio estaba al borde del colapso por no tener un sistema de ventas."
|
| 111 |
|
| 112 |
2. MAINTAIN THEMATIC CONSISTENCY:
|
| 113 |
- The attention hook, quantifiable promise, and benefit statement MUST all address the SAME problem
|
| 114 |
+
- If the hook mentions language learning struggles, the promise and benefit must also focus on language learning
|
| 115 |
+
- If the hook addresses marketing challenges, the promise and benefit must provide marketing solutions
|
| 116 |
- Create a LOGICAL PROGRESSION from problem (hook) to solution (promise) to implementation (benefit)
|
| 117 |
|
| 118 |
+
3. Analyze ALL available information:
|
| 119 |
+
- Target audience description (avatar_description) - THIS IS YOUR PRIMARY SOURCE OF TRUTH
|
| 120 |
+
- Product/service name (product_name variable)
|
| 121 |
+
- Content from uploaded files (if any)
|
| 122 |
+
|
| 123 |
+
4. Create a compelling QUANTIFIABLE PROMISE that:
|
| 124 |
- Is written COMPLETELY IN CAPITAL LETTERS
|
| 125 |
- Includes concrete numbers (money, time, results)
|
| 126 |
- Uses powerful action verbs (EARN, MULTIPLY, ACHIEVE, MASTER)
|
|
|
|
| 129 |
- NEVER uses exclamation marks (!)
|
| 130 |
- DIRECTLY addresses the same problem mentioned in the hook
|
| 131 |
|
| 132 |
+
5. Craft a benefit statement that:
|
| 133 |
- Clearly explains the result they will obtain
|
| 134 |
- Includes an authority element (proven method, studies, experience)
|
| 135 |
- Establishes a realistic timeframe or effort needed
|
| 136 |
- CONTINUES the same theme established in the hook and promise
|
| 137 |
|
| 138 |
+
6. CRITICAL: Output ONLY the offer itself with NO introductory text, explanations, or additional commentary.
|
| 139 |
+
- DO NOT include phrases like "Aquí tienes una oferta convincente" or "Esta es tu oferta"
|
| 140 |
+
- DO NOT include any text before or after the offer
|
| 141 |
- Start directly with the attention hook
|
| 142 |
- The entire response should be ONLY the offer itself following the formula structure
|
| 143 |
"""
|