Spaces:
Sleeping
Sleeping
Update formulas.py
Browse files- formulas.py +0 -84
formulas.py
CHANGED
|
@@ -1,8 +1,3 @@
|
|
| 1 |
-
# The function create_offer_instruction remains unchanged
|
| 2 |
-
# Remove the random import since we no longer need it
|
| 3 |
-
# import random
|
| 4 |
-
|
| 5 |
-
# Import the system prompt from prompts.py
|
| 6 |
from prompts import offer_system_prompt
|
| 7 |
|
| 8 |
def create_offer_instruction(avatar_description, product_name, selected_formula_name):
|
|
@@ -139,64 +134,6 @@ Create a compelling offer following the formula structure exactly.
|
|
| 139 |
|
| 140 |
# The offer_formulas dictionary containing formula definitions
|
| 141 |
offer_formulas = {
|
| 142 |
-
"La Fórmula 3 en 1": {
|
| 143 |
-
"description": """
|
| 144 |
-
Formula: [Feature + Benefit + Meaning]
|
| 145 |
-
|
| 146 |
-
This formula creates an instant connection by linking three key elements:
|
| 147 |
-
|
| 148 |
-
1. Feature: The main characteristic or aspect of your offer
|
| 149 |
-
2. Benefit: What it allows the user to achieve or obtain
|
| 150 |
-
3. Meaning: The deeper impact or transformation in their life
|
| 151 |
-
|
| 152 |
-
**Instructions for Creating Connection Bullets:**
|
| 153 |
-
|
| 154 |
-
1. Identify Your Core Feature:
|
| 155 |
-
- What makes your offer unique?
|
| 156 |
-
- What's the main characteristic?
|
| 157 |
-
- What's the standout element?
|
| 158 |
-
|
| 159 |
-
2. Transform into Benefits:
|
| 160 |
-
- How does this feature help them?
|
| 161 |
-
- What can they achieve with it?
|
| 162 |
-
- What becomes possible?
|
| 163 |
-
|
| 164 |
-
3. Add Deeper Meaning:
|
| 165 |
-
- How does it transform their life?
|
| 166 |
-
- What's the emotional impact?
|
| 167 |
-
- What does it mean for their identity?
|
| 168 |
-
|
| 169 |
-
**Structure Formats:**
|
| 170 |
-
|
| 171 |
-
1. "[Feature] para que puedas [Benefit] con lo que [Meaning]"
|
| 172 |
-
2. "Con [Feature] podrás [Benefit] permitiéndote [Meaning]"
|
| 173 |
-
3. "Gracias a [Feature] lograrás [Benefit] haciendo que [Meaning]"
|
| 174 |
-
4. "Mediante [Feature] conseguirás [Benefit] lo que significa [Meaning]"
|
| 175 |
-
5. "Usando [Feature] alcanzarás [Benefit] transformando [Meaning]"
|
| 176 |
-
""",
|
| 177 |
-
"examples": [
|
| 178 |
-
# Format 1: Feature + Benefit + Meaning
|
| 179 |
-
"El Sistema de meditación guiada para que puedas alcanzar la paz mental con lo que por fin dejarás de sentirte abrumado por el caos diario.",
|
| 180 |
-
"El Método de escritura veloz para que puedas crear contenido sin esfuerzo con lo que te convertirás en una máquina de generar ideas brillantes.",
|
| 181 |
-
"La Técnica de respiración ancestral para que puedas multiplicar tu energía con lo que te sentirás imparable desde que despiertas.",
|
| 182 |
-
# Format 2: With + Feature + Benefit + Meaning
|
| 183 |
-
"Con nuestro algoritmo de enfoque profundo podrás duplicar tu productividad permitiéndote disfrutar más tiempo con quienes amas.",
|
| 184 |
-
"Con el sistema de aprendizaje acelerado podrás dominar cualquier habilidad permitiéndote reinventar tu carrera cuando quieras.",
|
| 185 |
-
"Con la metodología de visualización cuántica podrás manifestar tus metas permitiéndote vivir la vida que siempre soñaste.",
|
| 186 |
-
# Format 3: Thanks to + Feature + Benefit + Meaning
|
| 187 |
-
"Gracias a nuestra tecnología de reprogramación mental lograrás superar tus miedos haciendo que te sientas invencible ante cualquier reto.",
|
| 188 |
-
"Gracias al protocolo de optimización del sueño lograrás descansar como un bebé haciendo que tu energía sea legendaria todo el día.",
|
| 189 |
-
"Gracias al sistema de gestión emocional lograrás mantener la calma en cualquier situación haciendo que los demás te vean como un líder nato.",
|
| 190 |
-
# Format 4: Through + Feature + Benefit + Meaning
|
| 191 |
-
"Mediante nuestro framework de creatividad conseguirás ideas brillantes lo que significa que nunca más te quedarás en blanco.",
|
| 192 |
-
"Mediante el método de networking estratégico conseguirás conexiones poderosas lo que significa que las oportunidades vendrán solas.",
|
| 193 |
-
"Mediante la técnica de storytelling magnético conseguirás cautivar a tu audiencia lo que significa que tu mensaje será inolvidable.",
|
| 194 |
-
# Format 5: Using + Feature + Benefit + Meaning
|
| 195 |
-
"Usando nuestro sistema de automatización mental alcanzarás el estado de flow transformando cada tarea en una experiencia placentera.",
|
| 196 |
-
"Usando el protocolo de productividad zen alcanzarás más con menos esfuerzo transformando tu relación con el trabajo para siempre.",
|
| 197 |
-
"Usando la metodología de impacto profundo alcanzarás el corazón de tu audiencia transformando seguidores en fans incondicionales."
|
| 198 |
-
]
|
| 199 |
-
},
|
| 200 |
"Oferta Dorada": {
|
| 201 |
"description": """
|
| 202 |
Formula: [Attention Hook + QUANTIFIABLE PROMISE IN ALL CAPS + Benefit + Authority + Time or Effort]
|
|
@@ -341,26 +278,5 @@ This formula connects directly with the client's desires and concerns:
|
|
| 341 |
"Se trata de un servicio llamado \"Transformación Financiera Total\" que te va a permitir duplicar tus ingresos en 90 días aún y cuando ahora mismo estés endeudado hasta el cuello.",
|
| 342 |
"Se trata de un producto llamado \"Sistema de Meditación Rápida\" que te va a permitir alcanzar estados profundos de calma en solo 5 minutos aún y cuando tengas una mente hiperactiva que no para de pensar."
|
| 343 |
]
|
| 344 |
-
},
|
| 345 |
-
"Fórmula Problema-Solución": {
|
| 346 |
-
"description": """
|
| 347 |
-
Formula: [Problem + Solution + Result]
|
| 348 |
-
|
| 349 |
-
Esta fórmula conecta directamente con el dolor del cliente:
|
| 350 |
-
|
| 351 |
-
1. Problem: El problema o dolor que enfrenta tu cliente
|
| 352 |
-
2. Solution: La solución que ofreces
|
| 353 |
-
3. Result: El resultado transformador que obtendrán
|
| 354 |
-
|
| 355 |
-
**Structure Formats:**
|
| 356 |
-
1. "¿Cansado de [Problem]? Descubre [Solution] y logra [Result]"
|
| 357 |
-
2. "Olvídate de [Problem] con [Solution] para conseguir [Result]"
|
| 358 |
-
3. "Dile adiós a [Problem] gracias a [Solution] y disfruta de [Result]"
|
| 359 |
-
""",
|
| 360 |
-
"examples": [
|
| 361 |
-
"¿Cansado de perder tiempo con estrategias que no funcionan? Descubre nuestro sistema probado y logra resultados en la mitad del tiempo.",
|
| 362 |
-
"Olvídate de las dietas restrictivas con nuestro método de nutrición intuitiva para conseguir el cuerpo que deseas sin sacrificios.",
|
| 363 |
-
"Dile adiós al insomnio gracias a nuestra técnica de relajación profunda y disfruta de un descanso reparador cada noche."
|
| 364 |
-
]
|
| 365 |
}
|
| 366 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
from prompts import offer_system_prompt
|
| 2 |
|
| 3 |
def create_offer_instruction(avatar_description, product_name, selected_formula_name):
|
|
|
|
| 134 |
|
| 135 |
# The offer_formulas dictionary containing formula definitions
|
| 136 |
offer_formulas = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
"Oferta Dorada": {
|
| 138 |
"description": """
|
| 139 |
Formula: [Attention Hook + QUANTIFIABLE PROMISE IN ALL CAPS + Benefit + Authority + Time or Effort]
|
|
|
|
| 278 |
"Se trata de un servicio llamado \"Transformación Financiera Total\" que te va a permitir duplicar tus ingresos en 90 días aún y cuando ahora mismo estés endeudado hasta el cuello.",
|
| 279 |
"Se trata de un producto llamado \"Sistema de Meditación Rápida\" que te va a permitir alcanzar estados profundos de calma en solo 5 minutos aún y cuando tengas una mente hiperactiva que no para de pensar."
|
| 280 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 281 |
}
|
| 282 |
}
|