Spaces:
Sleeping
Sleeping
Upload 6 files
Browse files- app.py +3 -3
- bonuses/__init__.py +4 -0
- bonuses/generator.py +120 -0
- formulas.py +2 -85
app.py
CHANGED
|
@@ -12,6 +12,8 @@ import io
|
|
| 12 |
|
| 13 |
# Import the bullet generator
|
| 14 |
from bullets.generator import create_bullet_instruction
|
|
|
|
|
|
|
| 15 |
|
| 16 |
# Set page to wide mode to use full width
|
| 17 |
st.set_page_config(layout="wide")
|
|
@@ -221,13 +223,11 @@ with col2:
|
|
| 221 |
instruction += create_bullet_instruction()
|
| 222 |
|
| 223 |
# Add instruction for generating bonuses that complement the offer
|
| 224 |
-
|
| 225 |
-
bonus_instruction = create_bonus_instruction(
|
| 226 |
avatar_description=avatar_description,
|
| 227 |
product_name=product_name,
|
| 228 |
selected_formula_name=st.session_state.formula_type
|
| 229 |
)
|
| 230 |
-
instruction += "\n\n" + bonus_instruction
|
| 231 |
|
| 232 |
# Add additional context based on input type
|
| 233 |
if st.session_state.input_type == "manual":
|
|
|
|
| 12 |
|
| 13 |
# Import the bullet generator
|
| 14 |
from bullets.generator import create_bullet_instruction
|
| 15 |
+
# Import the bonus generator
|
| 16 |
+
from bonuses.generator import create_bonus_instruction
|
| 17 |
|
| 18 |
# Set page to wide mode to use full width
|
| 19 |
st.set_page_config(layout="wide")
|
|
|
|
| 223 |
instruction += create_bullet_instruction()
|
| 224 |
|
| 225 |
# Add instruction for generating bonuses that complement the offer
|
| 226 |
+
instruction += create_bonus_instruction(
|
|
|
|
| 227 |
avatar_description=avatar_description,
|
| 228 |
product_name=product_name,
|
| 229 |
selected_formula_name=st.session_state.formula_type
|
| 230 |
)
|
|
|
|
| 231 |
|
| 232 |
# Add additional context based on input type
|
| 233 |
if st.session_state.input_type == "manual":
|
bonuses/__init__.py
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .generator import create_bonus_instruction
|
| 2 |
+
|
| 3 |
+
# Export the main function
|
| 4 |
+
__all__ = ['create_bonus_instruction']
|
bonuses/generator.py
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def create_bonus_instruction(avatar_description=None, product_name=None, selected_formula_name=None):
|
| 2 |
+
"""
|
| 3 |
+
Creates instructions for generating compelling bonuses that complement the main offer.
|
| 4 |
+
|
| 5 |
+
Args:
|
| 6 |
+
avatar_description: Description of the target audience
|
| 7 |
+
product_name: Name of the product or service
|
| 8 |
+
selected_formula_name: Name of the formula used for the main offer
|
| 9 |
+
|
| 10 |
+
Returns:
|
| 11 |
+
str: Complete instruction for generating bonuses
|
| 12 |
+
"""
|
| 13 |
+
# Base instruction for bonus generation
|
| 14 |
+
base_instruction = """
|
| 15 |
+
|
| 16 |
+
BONUS CREATION SECTION:
|
| 17 |
+
|
| 18 |
+
You are now tasked with creating compelling bonuses that complement the main offer and overcome purchase objections.
|
| 19 |
+
|
| 20 |
+
"""
|
| 21 |
+
|
| 22 |
+
# Detailed instructions for creating effective bonuses
|
| 23 |
+
bonus_instructions = """
|
| 24 |
+
SPECIFIC INSTRUCTIONS FOR CREATING BONUSES:
|
| 25 |
+
|
| 26 |
+
1. BONUS CREATION GUIDELINES:
|
| 27 |
+
- Create 3-5 high-value bonuses that COMPLEMENT (not compete with) the main offer
|
| 28 |
+
- Each bonus should address a specific objection or accelerate results from the main offer
|
| 29 |
+
- Focus on tools, templates, checklists, and quick-wins rather than additional training
|
| 30 |
+
- The combined perceived value of all bonuses should exceed the value of the main offer
|
| 31 |
+
|
| 32 |
+
2. BONUS STRUCTURE FOR EACH BONUS:
|
| 33 |
+
- Attractive Name: Create a compelling name that communicates immediate value
|
| 34 |
+
- Clear Description: Explain what it is and how it helps in 2-4 sentences
|
| 35 |
+
- Specific Benefit: Address exactly how it solves a specific problem or accelerates results
|
| 36 |
+
- Value Statement: Include a monetary value for each bonus (e.g., "Valor: $X")
|
| 37 |
+
- Urgency/Scarcity Element: Add a time-limited or limited-availability element
|
| 38 |
+
|
| 39 |
+
3. BONUS TYPES TO CONSIDER:
|
| 40 |
+
- Tools that simplify implementation of the main offer
|
| 41 |
+
- Templates that save time and ensure success
|
| 42 |
+
- Checklists that prevent mistakes and ensure completion
|
| 43 |
+
- Quick-start guides that accelerate initial results
|
| 44 |
+
- Swipe files or examples that can be immediately used
|
| 45 |
+
- Limited access to exclusive resources or communities
|
| 46 |
+
- Personal feedback or review opportunities
|
| 47 |
+
|
| 48 |
+
4. PSYCHOLOGICAL TRIGGERS TO INCLUDE:
|
| 49 |
+
- Address specific objections the prospect might have
|
| 50 |
+
- Solve the "next problem" they would encounter after using the main offer
|
| 51 |
+
- Add elements of scarcity (limited availability) or urgency (time-limited)
|
| 52 |
+
- Emphasize how the bonuses reduce effort, time, or complexity
|
| 53 |
+
- Show how the bonuses enhance the results of the main offer
|
| 54 |
+
|
| 55 |
+
5. FORMATTING REQUIREMENTS:
|
| 56 |
+
- Start with a brief introduction about the additional value (max 2 sentences)
|
| 57 |
+
- Format each bonus as: "BONO #1: [Nombre Atractivo]" in bold
|
| 58 |
+
- Follow with 2-4 sentences describing the bonus and its specific benefit
|
| 59 |
+
- Include a value statement for each bonus
|
| 60 |
+
- Add an urgency or scarcity element for each bonus
|
| 61 |
+
- End with a total value statement for all bonuses combined
|
| 62 |
+
|
| 63 |
+
EXAMPLES OF EFFECTIVE BONUSES:
|
| 64 |
+
|
| 65 |
+
EXAMPLE 1:
|
| 66 |
+
Y eso no es todo, también disfrutarás de estos beneficios adicionales:
|
| 67 |
+
|
| 68 |
+
**BONO #1: Kit de Plantillas de Email "Respuesta Inmediata"**
|
| 69 |
+
5 plantillas de email probadas que generan respuestas en menos de 24 horas. Estas plantillas han sido optimizadas con técnicas de psicología persuasiva y han aumentado las tasas de respuesta en un 78% en pruebas con más de 1,000 envíos. Valor: $197 - Disponible solo para los primeros 50 inscritos.
|
| 70 |
+
|
| 71 |
+
**BONO #2: Checklist "Propuesta Perfecta"**
|
| 72 |
+
Una guía paso a paso con 27 puntos de verificación para asegurar que tus propuestas comerciales sean irresistibles. Elimina los errores comunes que hacen que los clientes digan "lo pensaré" y aumenta tu tasa de cierre en un 35%. Valor: $97 - Acceso por tiempo limitado.
|
| 73 |
+
|
| 74 |
+
**BONO #3: Sesión Estratégica Personalizada de 30 Minutos**
|
| 75 |
+
Una consulta privada donde analizaremos tu situación específica y crearemos un plan de acción personalizado. Identificaremos tus mayores oportunidades de crecimiento y los obstáculos que debes eliminar primero. Valor: $250 - Solo 10 espacios disponibles cada mes.
|
| 76 |
+
|
| 77 |
+
Valor total de los bonos: $544 - Todo incluido hoy con tu inscripción.
|
| 78 |
+
|
| 79 |
+
EXAMPLE 2:
|
| 80 |
+
Como parte de esta oferta especial, recibirás estos valiosos recursos adicionales:
|
| 81 |
+
|
| 82 |
+
**BONO #1: Biblioteca de Scripts de Ventas "Cierre Garantizado"**
|
| 83 |
+
10 scripts de conversación probados para superar las 7 objeciones más comunes en tu industria. Cada script incluye respuestas específicas, preguntas de control y frases de transición que han generado más de $1.2 millones en ventas. Valor: $297 - Disponible solo esta semana.
|
| 84 |
+
|
| 85 |
+
**BONO #2: Software "Cliente Tracker Pro"**
|
| 86 |
+
Una herramienta exclusiva que automatiza el seguimiento de prospectos y te alerta exactamente cuándo contactarlos para maximizar conversiones. Reduce el tiempo de gestión en un 68% y aumenta la tasa de conversión en un 23%. Valor: $197/año - Acceso gratuito por 12 meses.
|
| 87 |
+
|
| 88 |
+
**BONO #3: Comunidad VIP "Crecimiento Acelerado"**
|
| 89 |
+
Acceso a nuestro grupo privado con más de 500 profesionales de tu industria, sesiones de preguntas semanales con expertos y biblioteca de recursos exclusivos. El 87% de los miembros reportan un aumento de ingresos en los primeros 60 días. Valor: $47/mes - Membresía gratuita por 6 meses.
|
| 90 |
+
|
| 91 |
+
**BONO #4: Análisis Competitivo Personalizado**
|
| 92 |
+
Un informe detallado que analiza a tus 3 principales competidores, identifica sus debilidades y te muestra exactamente cómo posicionarte para captar su clientela. Incluye estrategias específicas para diferenciarte inmediatamente. Valor: $497 - Solo para los primeros 25 clientes.
|
| 93 |
+
|
| 94 |
+
Valor total de bonos: $1,273 - Todo incluido hoy sin costo adicional.
|
| 95 |
+
|
| 96 |
+
EXAMPLE 3:
|
| 97 |
+
Para maximizar tus resultados, he incluido estos recursos exclusivos:
|
| 98 |
+
|
| 99 |
+
**BONO #1: Calculadora de ROI "Inversión Inteligente"**
|
| 100 |
+
Una herramienta digital que proyecta con precisión tus retornos basados en 5 años de datos de clientes reales. Te muestra exactamente cuánto ganarás y en qué plazo, eliminando la incertidumbre de tu inversión. Valor: $147 - Acceso inmediato con tu compra hoy.
|
| 101 |
+
|
| 102 |
+
**BONO #2: Masterclass "Optimización Rápida"**
|
| 103 |
+
Una sesión de 60 minutos donde te muestro los 3 ajustes que puedes implementar en 24 horas para ver resultados inmediatos. El 92% de los participantes reportan mejoras medibles en la primera semana. Valor: $197 - La grabación se elimina en 30 días.
|
| 104 |
+
|
| 105 |
+
**BONO #3: Plantillas "Listo para Implementar"**
|
| 106 |
+
Un conjunto de 15 documentos, hojas de cálculo y presentaciones que puedes personalizar en minutos para implementar lo aprendido sin demora. Ahorra más de 40 horas de trabajo de preparación. Valor: $97 - Actualizado trimestralmente solo para clientes actuales.
|
| 107 |
+
|
| 108 |
+
**BONO #4: Certificación "Especialista Verificado"**
|
| 109 |
+
Completa el programa y recibe una certificación oficial que puedes mostrar en tu perfil profesional. Nuestros certificados son reconocidos por más de 200 empresas que buscan activamente profesionales con estas habilidades. Valor: $297 - Las certificaciones se emiten solo 4 veces al año.
|
| 110 |
+
|
| 111 |
+
**BONO #5: Sesiones de "Implementación Guiada"**
|
| 112 |
+
Dos sesiones grupales mensuales donde implementamos juntos, resolvemos dudas específicas y superamos bloqueos. El 78% de quienes asisten a estas sesiones implementan el doble de rápido que quienes no lo hacen. Valor: $97/mes - Acceso por 3 meses incluido.
|
| 113 |
+
|
| 114 |
+
Valor total de bonos: $1,032 - Todo incluido con tu inversión hoy.
|
| 115 |
+
"""
|
| 116 |
+
|
| 117 |
+
# Combine base instruction with bonus instructions
|
| 118 |
+
complete_instruction = base_instruction + bonus_instructions
|
| 119 |
+
|
| 120 |
+
return complete_instruction
|
formulas.py
CHANGED
|
@@ -197,91 +197,6 @@ Create a compelling offer following the formula structure exactly.
|
|
| 197 |
|
| 198 |
return instruction
|
| 199 |
|
| 200 |
-
|
| 201 |
-
def create_bonus_instruction(avatar_description, product_name, selected_formula_name):
|
| 202 |
-
"""
|
| 203 |
-
Creates instructions for generating compelling bonuses that complement the main offer.
|
| 204 |
-
|
| 205 |
-
Args:
|
| 206 |
-
avatar_description: Description of the target audience
|
| 207 |
-
product_name: Name of the product or service
|
| 208 |
-
selected_formula_name: Name of the formula used for the main offer
|
| 209 |
-
|
| 210 |
-
Returns:
|
| 211 |
-
str: Complete instruction for generating bonuses
|
| 212 |
-
"""
|
| 213 |
-
# Extract the actual product name
|
| 214 |
-
extracted_name = extract_product_name(product_name)
|
| 215 |
-
|
| 216 |
-
bonus_system_prompt = """You are a world-class expert copywriter, specialized in creating high-value bonuses that complement main offers and accelerate purchase decisions.
|
| 217 |
-
|
| 218 |
-
OBJECTIVE:
|
| 219 |
-
- Generate 3-5 compelling bonuses in Spanish that complement the main offer
|
| 220 |
-
- Each bonus must address a specific objection or accelerate results
|
| 221 |
-
- Focus on tools, templates, and quick-wins rather than additional training
|
| 222 |
-
- Create urgency and scarcity elements for each bonus
|
| 223 |
-
- Maintain natural and conversational language
|
| 224 |
-
|
| 225 |
-
CRITICAL OUTPUT RULES:
|
| 226 |
-
- Start with a brief introduction paragraph about the additional value (max 2 sentences)
|
| 227 |
-
- Then list each bonus with a clear format: "BONO #1: [Nombre Atractivo]" followed by description
|
| 228 |
-
- Each bonus description should be 2-4 sentences maximum
|
| 229 |
-
- End with a value statement and urgency/scarcity element
|
| 230 |
-
- Use emotive language that creates desire
|
| 231 |
-
"""
|
| 232 |
-
|
| 233 |
-
bonus_instructions = f"""
|
| 234 |
-
SPECIFIC INSTRUCTIONS FOR CREATING BONUSES:
|
| 235 |
-
|
| 236 |
-
1. BONUS CREATION GUIDELINES:
|
| 237 |
-
- Create 3-5 high-value bonuses that COMPLEMENT (not compete with) the main offer: {extracted_name if extracted_name else product_name}
|
| 238 |
-
- Each bonus should address a specific objection or accelerate results from the main offer
|
| 239 |
-
- Focus on tools, templates, checklists, and quick-wins rather than additional training
|
| 240 |
-
- The combined perceived value of all bonuses should exceed the value of the main offer
|
| 241 |
-
|
| 242 |
-
2. BONUS STRUCTURE FOR EACH BONUS:
|
| 243 |
-
- Attractive Name: Create a compelling name that communicates immediate value
|
| 244 |
-
- Clear Description: Explain what it is and how it helps in 2-4 sentences
|
| 245 |
-
- Specific Benefit: Address exactly how it solves a specific problem or accelerates results
|
| 246 |
-
- Value Statement: Include a monetary value for each bonus (e.g., "Valor: $X")
|
| 247 |
-
- Urgency/Scarcity Element: Add a time-limited or limited-availability element
|
| 248 |
-
|
| 249 |
-
3. BONUS TYPES TO CONSIDER:
|
| 250 |
-
- Tools that simplify implementation of the main offer
|
| 251 |
-
- Templates that save time and ensure success
|
| 252 |
-
- Checklists that prevent mistakes and ensure completion
|
| 253 |
-
- Quick-start guides that accelerate initial results
|
| 254 |
-
- Swipe files or examples that can be immediately used
|
| 255 |
-
- Limited access to exclusive resources or communities
|
| 256 |
-
- Personal feedback or review opportunities
|
| 257 |
-
|
| 258 |
-
4. PSYCHOLOGICAL TRIGGERS TO INCLUDE:
|
| 259 |
-
- Address specific objections the prospect might have
|
| 260 |
-
- Solve the "next problem" they would encounter after using the main offer
|
| 261 |
-
- Add elements of scarcity (limited availability) or urgency (time-limited)
|
| 262 |
-
- Emphasize how the bonuses reduce effort, time, or complexity
|
| 263 |
-
- Show how the bonuses enhance the results of the main offer
|
| 264 |
-
|
| 265 |
-
5. FORMATTING REQUIREMENTS:
|
| 266 |
-
- Start with a brief introduction about the additional value (max 2 sentences)
|
| 267 |
-
- Format each bonus as: "BONO #1: [Nombre Atractivo]" in bold
|
| 268 |
-
- Follow with 2-4 sentences describing the bonus and its specific benefit
|
| 269 |
-
- Include a value statement for each bonus
|
| 270 |
-
- Add an urgency or scarcity element for each bonus
|
| 271 |
-
- End with a total value statement for all bonuses combined
|
| 272 |
-
|
| 273 |
-
TARGET AUDIENCE:
|
| 274 |
-
{avatar_description}
|
| 275 |
-
|
| 276 |
-
MAIN OFFER:
|
| 277 |
-
{product_name}
|
| 278 |
-
|
| 279 |
-
Create compelling bonuses that complement this offer and overcome purchase objections.
|
| 280 |
-
"""
|
| 281 |
-
|
| 282 |
-
return bonus_system_prompt + bonus_instructions
|
| 283 |
-
|
| 284 |
-
|
| 285 |
def generate_complete_offer(avatar_description, product_name, selected_formula_name, include_bonuses=True):
|
| 286 |
"""
|
| 287 |
Generates a complete offer including the main offer and optional bonuses.
|
|
@@ -301,6 +216,8 @@ def generate_complete_offer(avatar_description, product_name, selected_formula_n
|
|
| 301 |
# Create bonus instruction if requested
|
| 302 |
bonus_instruction = None
|
| 303 |
if include_bonuses:
|
|
|
|
|
|
|
| 304 |
bonus_instruction = create_bonus_instruction(avatar_description, product_name, selected_formula_name)
|
| 305 |
|
| 306 |
return {
|
|
|
|
| 197 |
|
| 198 |
return instruction
|
| 199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
def generate_complete_offer(avatar_description, product_name, selected_formula_name, include_bonuses=True):
|
| 201 |
"""
|
| 202 |
Generates a complete offer including the main offer and optional bonuses.
|
|
|
|
| 216 |
# Create bonus instruction if requested
|
| 217 |
bonus_instruction = None
|
| 218 |
if include_bonuses:
|
| 219 |
+
# Import the bonus generator from the new module
|
| 220 |
+
from bonuses.generator import create_bonus_instruction
|
| 221 |
bonus_instruction = create_bonus_instruction(avatar_description, product_name, selected_formula_name)
|
| 222 |
|
| 223 |
return {
|