JeCabrera commited on
Commit
dc65432
·
verified ·
1 Parent(s): 31a5a91

Upload 4 files

Browse files
Files changed (3) hide show
  1. app.py +9 -0
  2. bullets/generator.py +319 -319
  3. formulas.py +111 -0
app.py CHANGED
@@ -220,6 +220,15 @@ with col2:
220
  # Add instruction for generating benefit bullets based on the promise
221
  instruction += create_bullet_instruction()
222
 
 
 
 
 
 
 
 
 
 
223
  # Add additional context based on input type
224
  if st.session_state.input_type == "manual":
225
  additional_context = f"""
 
220
  # Add instruction for generating benefit bullets based on the promise
221
  instruction += create_bullet_instruction()
222
 
223
+ # Add instruction for generating bonuses that complement the offer
224
+ from formulas import create_bonus_instruction
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":
234
  additional_context = f"""
bullets/generator.py CHANGED
@@ -1,320 +1,320 @@
1
- import random
2
-
3
- def create_bullet_instruction():
4
- """
5
- Creates the instruction for generating benefit bullets.
6
- The model will randomly choose between different bullet formulas.
7
-
8
- Returns:
9
- str: The complete instruction for generating bullets
10
- """
11
- # Base instruction that applies to all formulas
12
- base_instruction = """
13
- IMPORTANT: After creating the main offer, add a section with 5 powerful benefit bullets that reinforce the promise.
14
-
15
- Start the bullets section with an introduction like:
16
- "Además, al aprovechar esta oferta también obtendrás:" or "Y eso no es todo, también disfrutarás de estos beneficios adicionales:" or "Con esta solución también conseguirás:"
17
-
18
- For the benefit bullets section:
19
-
20
- You are a world-class expert copywriter, experienced in creating benefits that emotionally connect and address the desires, problems, and motivations of the target audience.
21
-
22
- OBJECTIVE:
23
- - Generate 5 convincing and specific benefit bullets in Spanish
24
- - Connect emotionally with the audience
25
- - Address real desires, problems, and motivations
26
- - Maintain natural and conversational language
27
- - Orient each benefit towards action
28
-
29
- FORMAT RULES:
30
- - Each benefit must start with "• "
31
- - One benefit per line
32
- - No explanations or categories
33
- - Add a line break between each benefit
34
- - Never include : symbols in bullets
35
- - Never use exclamation marks (!) in any bullet
36
- - Each benefit must be a complete and concise phrase
37
- - Do not use any emojis in the bullets
38
- - Use natural, conversational language (avoid formal or technical jargon)
39
-
40
- IMPORTANT:
41
- - Each benefit must be ultra-specific with concrete, measurable outcomes
42
- - NEVER use generic phrases like "mejorar tu vida" or "aumentar tu productividad"
43
- - Always include specific numbers, percentages, or exact timeframes
44
- - Each bullet must solve a very specific problem with a detailed solution
45
- - Include at least one bullet that directly counters a common objection with evidence
46
- - Each bullet should contain a clear call to action with a specific next step
47
- - Avoid all generalizations - be precise about exactly what the user will get
48
- - Maintain a persuasive but honest tone with verifiable claims
49
- - Focus on tangible and measurable results that can be verified
50
- - Ensure each bullet addresses a different aspect of the offer
51
- - Write in a natural, conversational tone as if speaking directly to the reader
52
- - Never use exclamation marks in the bullets
53
- """
54
-
55
- # Multiple formula instructions
56
- formula_instructions = """
57
- IMPORTANT: Choose ONE of the following bullet formulas at random and use it consistently for ALL 5 bullets:
58
-
59
- FORMULA 1 - STANDARD BENEFIT:
60
- - Must be relevant to a specific segment of your target audience
61
- - Must show a specific result with exact numbers or percentages
62
- - Must include a precise emotional element tied to a specific desire
63
- - Must eliminate a specific objection with evidence
64
- - Must inspire immediate action with a clear next step
65
-
66
- EXAMPLE FORMAT FOR FORMULA 1:
67
- •Transforma tu estrategia de email marketing con plantillas que aumentan la tasa de apertura un 37% en 14 días, incluso si nunca has escrito una campaña exitosa.
68
-
69
- FORMULA 2 - 3 EN 1 (FEATURE + BENEFIT + MEANING):
70
- Formula: [Feature + Benefit + Meaning]
71
-
72
- This formula creates an instant connection by linking three key elements:
73
- 1. Feature: A specific, tangible characteristic of your offer
74
- 2. Benefit: The exact, measurable result it delivers
75
- 3. Meaning: The precise transformation in their life
76
-
77
- Instructions for Creating Connection Bullets:
78
- 1. Identify Your Core Feature:
79
- - What specific component makes your offer unique?
80
- - What exact characteristic can be measured?
81
- - What concrete element can they use immediately?
82
-
83
- 2. Transform into Benefits:
84
- - What specific metric will improve?
85
- - What exact problem will it solve?
86
- - What measurable outcome will they achieve?
87
-
88
- 3. Add Deeper Meaning:
89
- - How exactly will it transform their specific situation?
90
- - What precise emotional impact will they experience?
91
- - What concrete identity shift will occur?
92
-
93
- Structure Formats:
94
- 1. "[Specific Feature] para que puedas [Measurable Benefit] con lo que [Concrete Meaning]"
95
- 2. "Con [Specific Feature] podrás [Measurable Benefit] permitiéndote [Concrete Meaning]"
96
- 3. "Gracias a [Specific Feature] lograrás [Measurable Benefit] haciendo que [Concrete Meaning]"
97
- 4. "Mediante [Specific Feature] conseguirás [Measurable Benefit] lo que significa [Concrete Meaning]"
98
- 5. "Usando [Specific Feature] alcanzarás [Measurable Benefit] transformando [Concrete Meaning]"
99
-
100
- EXAMPLES FOR FORMULA 2:
101
- • El Sistema de inmersión bilingüe de 21 días para que puedas mantener conversaciones de 15 minutos en inglés con lo que por fin dejarás de depender de traductores en tus reuniones internacionales.
102
-
103
- • Con nuestro algoritmo de enfoque profundo de 3 pasos podrás completar proyectos en 4 horas en lugar de 8 permitiéndote disfrutar 20 horas adicionales semanales con tu familia.
104
-
105
- • Gracias a nuestra tecnología de reprogramación mental de 28 días lograrás superar el miedo a hablar en público haciendo que te sientas seguro al presentar ante audiencias de hasta 500 personas.
106
-
107
- • Mediante nuestro framework de creatividad de 5 fases conseguirás generar 10 ideas innovadoras por sesión lo que significa que nunca más perderás oportunidades de negocio por falta de propuestas.
108
-
109
- • Usando nuestro sistema de automatización de tareas alcanzarás una reducción del 68% en tiempo administrativo transformando 15 horas semanales de trabajo tedioso en tiempo productivo para hacer crecer tu negocio.
110
-
111
- FORMULA 3 - ANTI-PROCRASTINACIÓN (ACTION + RESULT + TIME):
112
- Formula: [Action + Result + Time]
113
-
114
- This formula uses a clear action followed by a direct result and the time in which that result will be achieved. You can modify the order of elements as needed.
115
-
116
- Instructions:
117
- 1. Establish the clear action that the user must take (specific action with details)
118
- 2. Define the exact result with numbers/percentages that the user will obtain
119
- 3. Indicate the precise time period with exact days/weeks/months
120
-
121
- Response Format (choose one for each bullet):
122
- 1. Action + Result + Time
123
- 2. Action + Time + Result
124
- 3. Result + Action + Time
125
- 4. Result + Time + Action
126
- 5. Time + Action + Result
127
- 6. Time + Result + Action
128
- 7. Result + Time + Action
129
-
130
- EXAMPLES FOR FORMULA 3:
131
- • Implementa nuestra estrategia de email marketing y aumenta tus ventas un 27% en los próximos 30 días, incluso si tu lista tiene menos de 500 suscriptores.
132
-
133
- • Aplica las 3 técnicas de copywriting en tus próximos 5 posts y en 14 días verás un incremento del 42% en engagement, eliminando por completo los comentarios negativos.
134
-
135
- • Tu tasa de conversión aumentará del 2% al 5.7% cuando implementes nuestro sistema de embudos en los próximos 21 días, sin necesidad de aumentar tu presupuesto publicitario.
136
-
137
- • En 28 días exactos dominarás las 7 habilidades fundamentales de negociación aplicando nuestro método paso a paso, incluso si actualmente cedes en cada discusión.
138
-
139
- • 8 semanas es todo lo que necesitas para transformar tu cuerpo con nuestro programa de 15 minutos diarios, reduciendo hasta 8 kg de grasa y aumentando tu energía un 65% desde la primera semana.
140
-
141
- FORMULA 4 - NÚMERICA SUPREMA:
142
- La Fórmula Suprema de Istvanova combina 5 elementos clave más artículos plurales para crear bullets persuasivos e interesantes:
143
-
144
- 1. Artículos Plurales (Art):
145
- - Los (para masculino plural)
146
- - Las (para femenino plural)
147
- - Dan naturalidad y autoridad al texto
148
-
149
- 2. Números (N):
150
- - Específicos y creíbles (3, 5, 7, 10...)
151
- - Crean estructura y expectativas claras
152
- - Se combinan con artículos: "Los 5...", "Las 3..."
153
-
154
- 3. Adjetivo (A):
155
- - Emocionales y descriptivos
156
- - Conectan con deseos/miedos específicos
157
- - Ejemplos: comprobados, científicos, revolucionarios
158
-
159
- 4. Palabra Clave (P):
160
- - Término central del beneficio en plural
161
- - Fácil de entender y recordar
162
- - Ejemplos: métodos, estrategias, técnicas, secretos
163
-
164
- 5. Razón (R):
165
- - Justifica el beneficio con datos concretos
166
- - Añade credibilidad con evidencia específica
167
- - Conecta con la motivación específica del lector
168
-
169
- 6. Promesa (P):
170
- - Resultado específico y medible con números
171
- - Timeframe realista con días/semanas exactas
172
- - Beneficio final atractivo y verificable
173
-
174
- EXAMPLES FOR FORMULA 4:
175
- • Los 3 rituales científicamente probados para reducir tu estrés un 47% en 14 días, validados por la Universidad de Stanford.
176
-
177
- • Las 5 rutinas efectivas para fortalecer tu core en solo 12 minutos diarios, eliminando el dolor lumbar en el 89% de los casos.
178
-
179
- • Los 7 hábitos esenciales para aumentar tu productividad un 63%, permitiéndote completar en 4 horas lo que antes hacías en 8.
180
-
181
- • Las 3 técnicas comprobadas para dormir 7 horas ininterrumpidas basadas en neurociencia, que han ayudado a 1,243 personas con insomnio crónico.
182
-
183
- • Los 5 movimientos efectivos para fortalecer tu core sin equipamiento, que activan un 78% más de fibras musculares que los ejercicios tradicionales.
184
-
185
- FORMULA 5 - EL TRIÁNGULO DE ORO:
186
- Formula: [Benefit 1 + Benefit 2 + Great Promise]
187
-
188
- This formula creates high-impact bullets by combining three key benefits persuasively:
189
- 1. Benefit 1: The first benefit that addresses an immediate client need
190
- 2. Benefit 2: An additional benefit that generates more value
191
- 3. Great Promise: The main or most impactful promise that closes the proposal
192
-
193
- Instructions for Creating Powerful Bullets:
194
- 1. Identify Your Audience's Great Dream:
195
- - What's their ultimate aspiration?
196
- - What keeps them awake at night?
197
- - What's their ideal scenario?
198
- - What transformation do they deeply desire?
199
-
200
- 2. Structure Your Benefits:
201
- - Write in a natural, conversational tone (like talking to a friend)
202
- - Flow elements together without forced pauses or commas
203
- - Make transitions smooth and invisible
204
- - Keep the rhythm flowing from start to finish
205
-
206
- 3. Craft Your Benefits:
207
- - Benefit 1: Hook them with their biggest pain point using casual language
208
- - Benefit 2: Build momentum with an exciting complementary gain
209
- - Great Promise: Deliver the knockout punch that makes them say "I need this!"
210
-
211
- 4. Tips for Maximum Impact:
212
- - Write like you speak (but better)
213
- - Avoid formal language or stiff transitions
214
- - Make each element flow naturally into the next
215
- - Create a rhythm that pulls the reader through
216
- - Use conversational connectors instead of commas
217
- - Read it aloud - if you stumble, rewrite it
218
- - Make it so engaging they can't stop reading
219
- - Keep the energy high from start to finish
220
-
221
- Structure Formats:
222
- 1. "[benefit 1] [benefit 2] [great promise]"
223
- 2. "[benefit 2] [benefit 1] [great promise]"
224
- 3. "[great promise] [benefit 2] [benefit 1]"
225
- 4. "[great promise] [benefit 1] [benefit 2]"
226
- 5. "[benefit 1] [benefit 2] [great promise]"
227
- 6. "[benefit 1] + question + [benefit 2] + [great promise]"
228
- 7. "question + [benefit 1] + [benefit 2] + [great promise]"
229
- 8. "[benefit 1] + while + [benefit 2] + and also + [great promise]"
230
- 9. "Not only + [benefit 1] + but also + [benefit 2] + and best of all + [great promise]"
231
- 10. "Imagine + [benefit 1] + at the same time as + [benefit 2] + and finally + [great promise]"
232
- 11. "From + [benefit 1] + going through + [benefit 2] + until + [great promise]"
233
- 12. "First + [benefit 1] + then + [benefit 2] + and at the end + [great promise]"
234
- 13. "Start with + [benefit 1] + transform with + [benefit 2] + culminate with + [great promise]"
235
- 14. "Tired of the opposite of [benefit 1]? + Discover + [benefit 2] + and achieve + [great promise]"
236
- 15. "Finally + [benefit 1] + plus + [benefit 2] + and as a bonus + [great promise]"
237
-
238
- EXAMPLES FOR FORMULA 5:
239
- • Reduce tu estrés laboral en un 42% mientras aumentas tu productividad un 37% y transforma tu carrera profesional con nuestro sistema de gestión del tiempo basado en neurociencia aplicada.
240
-
241
- • Domina 5 idiomas extranjeros mientras duermes 8 horas ininterrumpidas y activa el 89% de tu potencial cerebral con nuestro revolucionario programa de aprendizaje durante el sueño profundo.
242
-
243
- • No solo eliminarás el dolor de espalda crónico en 14 días sino que también fortalecerás tu core un 78% y lo mejor de todo es que recuperarás la capacidad de disfrutar actividades que creías imposibles.
244
-
245
- • ¿Cansado de perder tiempo en reuniones improductivas? Descubre cómo reducir tu jornada laboral 3 horas diarias y consigue resultados un 65% superiores con nuestro framework de productividad cuántica.
246
-
247
- • Imagina generar 10 ideas innovadoras por día al mismo tiempo que reduces tu estrés un 47% y finalmente te conviertes en el referente creativo de tu industria con nuestro método de pensamiento lateral estructurado.
248
-
249
- Remember to choose just ONE formula and apply it consistently to all 5 bullets.
250
- """
251
-
252
- # Combine base instruction with formula instructions
253
- complete_instruction = base_instruction + formula_instructions
254
-
255
- return complete_instruction
256
-
257
-
258
- def get_random_bullet_formula():
259
- """
260
- Randomly selects a bullet formula type to ensure variety in generated bullets.
261
- Extracts formula names automatically from the instruction text.
262
-
263
- Returns:
264
- str: The name of the randomly selected formula
265
- """
266
- # Get the full instruction text
267
- full_instruction = create_bullet_instruction()
268
-
269
- # Extract formula names using regex pattern matching
270
- import re
271
-
272
- # Pattern to find formula names (looks for "FORMULA X - NAME:")
273
- formula_pattern = r"FORMULA\s+\d+\s+-\s+([^:]+):"
274
-
275
- # Find all matches in the instruction text
276
- formula_matches = re.findall(formula_pattern, full_instruction)
277
-
278
- # If no formulas found, fallback to manual list
279
- if not formula_matches:
280
- formulas = [
281
- "STANDARD BENEFIT",
282
- "3 EN 1 (FEATURE + BENEFIT + MEANING)",
283
- "ANTI-PROCRASTINACIÓN (ACTION + RESULT + TIME)",
284
- "NÚMERICA SUPREMA",
285
- "EL TRIÁNGULO DE ORO"
286
- ]
287
- else:
288
- formulas = formula_matches
289
-
290
- # Select a random formula
291
- selected_formula = random.choice(formulas)
292
-
293
- return selected_formula
294
-
295
-
296
- def create_bullet_instruction_with_formula():
297
- """
298
- Creates the instruction for generating benefit bullets with a specific
299
- randomly selected formula to ensure consistency.
300
-
301
- Returns:
302
- str: The complete instruction for generating bullets with the selected formula
303
- """
304
- # Get base instruction
305
- base_instruction = create_bullet_instruction()
306
-
307
- # Get a random formula
308
- selected_formula = get_random_bullet_formula()
309
-
310
- # Add specific instruction to use the selected formula
311
- formula_directive = f"""
312
-
313
- IMPORTANT OVERRIDE: For this specific task, you MUST use FORMULA {selected_formula}
314
- for ALL 5 bullets. Do not choose randomly - you must use this exact formula consistently.
315
- """
316
-
317
- # Combine instructions
318
- complete_instruction = base_instruction + formula_directive
319
-
320
  return complete_instruction
 
1
+ import random
2
+
3
+ def create_bullet_instruction():
4
+ """
5
+ Creates the instruction for generating benefit bullets.
6
+ The model will randomly choose between different bullet formulas.
7
+
8
+ Returns:
9
+ str: The complete instruction for generating bullets
10
+ """
11
+ # Base instruction that applies to all formulas
12
+ base_instruction = """
13
+ IMPORTANT: After creating the main offer, add a section with 5 powerful benefit bullets that reinforce the promise.
14
+
15
+ Start the bullets section with an introduction like:
16
+ "Además, al aprovechar esta oferta también obtendrás:" or "Y eso no es todo, también disfrutarás de estos beneficios adicionales:" or "Con esta solución también conseguirás:"
17
+
18
+ For the benefit bullets section:
19
+
20
+ You are a world-class expert copywriter, experienced in creating benefits that emotionally connect and address the desires, problems, and motivations of the target audience.
21
+
22
+ OBJECTIVE:
23
+ - Generate 5 convincing and specific benefit bullets in Spanish
24
+ - Connect emotionally with the audience
25
+ - Address real desires, problems, and motivations
26
+ - Maintain natural and conversational language
27
+ - Orient each benefit towards action
28
+
29
+ FORMAT RULES:
30
+ - Each benefit must start with "• "
31
+ - One benefit per line
32
+ - No explanations or categories
33
+ - Add a line break between each benefit
34
+ - Never include : symbols in bullets
35
+ - Never use exclamation marks (!) in any bullet
36
+ - Each benefit must be a complete and concise phrase
37
+ - Do not use any emojis in the bullets
38
+ - Use natural, conversational language (avoid formal or technical jargon)
39
+
40
+ IMPORTANT:
41
+ - Each benefit must be ultra-specific with concrete, measurable outcomes
42
+ - NEVER use generic phrases like "mejorar tu vida" or "aumentar tu productividad"
43
+ - Always include specific numbers, percentages, or exact timeframes
44
+ - Each bullet must solve a very specific problem with a detailed solution
45
+ - Include at least one bullet that directly counters a common objection with evidence
46
+ - Each bullet should contain a clear call to action with a specific next step
47
+ - Avoid all generalizations - be precise about exactly what the user will get
48
+ - Maintain a persuasive but honest tone with verifiable claims
49
+ - Focus on tangible and measurable results that can be verified
50
+ - Ensure each bullet addresses a different aspect of the offer
51
+ - Write in a natural, conversational tone as if speaking directly to the reader
52
+ - Never use exclamation marks in the bullets
53
+ """
54
+
55
+ # Multiple formula instructions
56
+ formula_instructions = """
57
+ IMPORTANT: Choose ONE of the following bullet formulas at random and use it consistently for ALL 5 bullets:
58
+
59
+ FORMULA 1 - STANDARD BENEFIT:
60
+ - Must be relevant to a specific segment of your target audience
61
+ - Must show a specific result with exact numbers or percentages
62
+ - Must include a precise emotional element tied to a specific desire
63
+ - Must eliminate a specific objection with evidence
64
+ - Must inspire immediate action with a clear next step
65
+
66
+ EXAMPLE FORMAT FOR FORMULA 1:
67
+ •Transforma tu estrategia de email marketing con plantillas que aumentan la tasa de apertura un 37% en 14 días, incluso si nunca has escrito una campaña exitosa.
68
+
69
+ FORMULA 2 - 3 EN 1 (FEATURE + BENEFIT + MEANING):
70
+ Formula: [Feature + Benefit + Meaning]
71
+
72
+ This formula creates an instant connection by linking three key elements:
73
+ 1. Feature: A specific, tangible characteristic of your offer
74
+ 2. Benefit: The exact, measurable result it delivers
75
+ 3. Meaning: The precise transformation in their life
76
+
77
+ Instructions for Creating Connection Bullets:
78
+ 1. Identify Your Core Feature:
79
+ - What specific component makes your offer unique?
80
+ - What exact characteristic can be measured?
81
+ - What concrete element can they use immediately?
82
+
83
+ 2. Transform into Benefits:
84
+ - What specific metric will improve?
85
+ - What exact problem will it solve?
86
+ - What measurable outcome will they achieve?
87
+
88
+ 3. Add Deeper Meaning:
89
+ - How exactly will it transform their specific situation?
90
+ - What precise emotional impact will they experience?
91
+ - What concrete identity shift will occur?
92
+
93
+ Structure Formats:
94
+ 1. "[Specific Feature] para que puedas [Measurable Benefit] con lo que [Concrete Meaning]"
95
+ 2. "Con [Specific Feature] podrás [Measurable Benefit] permitiéndote [Concrete Meaning]"
96
+ 3. "Gracias a [Specific Feature] lograrás [Measurable Benefit] haciendo que [Concrete Meaning]"
97
+ 4. "Mediante [Specific Feature] conseguirás [Measurable Benefit] lo que significa [Concrete Meaning]"
98
+ 5. "Usando [Specific Feature] alcanzarás [Measurable Benefit] transformando [Concrete Meaning]"
99
+
100
+ EXAMPLES FOR FORMULA 2:
101
+ • El Sistema de inmersión bilingüe de 21 días para que puedas mantener conversaciones de 15 minutos en inglés con lo que por fin dejarás de depender de traductores en tus reuniones internacionales.
102
+
103
+ • Con nuestro algoritmo de enfoque profundo de 3 pasos podrás completar proyectos en 4 horas en lugar de 8 permitiéndote disfrutar 20 horas adicionales semanales con tu familia.
104
+
105
+ • Gracias a nuestra tecnología de reprogramación mental de 28 días lograrás superar el miedo a hablar en público haciendo que te sientas seguro al presentar ante audiencias de hasta 500 personas.
106
+
107
+ • Mediante nuestro framework de creatividad de 5 fases conseguirás generar 10 ideas innovadoras por sesión lo que significa que nunca más perderás oportunidades de negocio por falta de propuestas.
108
+
109
+ • Usando nuestro sistema de automatización de tareas alcanzarás una reducción del 68% en tiempo administrativo transformando 15 horas semanales de trabajo tedioso en tiempo productivo para hacer crecer tu negocio.
110
+
111
+ FORMULA 3 - ANTI-PROCRASTINACIÓN (ACTION + RESULT + TIME):
112
+ Formula: [Action + Result + Time]
113
+
114
+ This formula uses a clear action followed by a direct result and the time in which that result will be achieved. You can modify the order of elements as needed.
115
+
116
+ Instructions:
117
+ 1. Establish the clear action that the user must take (specific action with details)
118
+ 2. Define the exact result with numbers/percentages that the user will obtain
119
+ 3. Indicate the precise time period with exact days/weeks/months
120
+
121
+ Response Format (choose one for each bullet):
122
+ 1. Action + Result + Time
123
+ 2. Action + Time + Result
124
+ 3. Result + Action + Time
125
+ 4. Result + Time + Action
126
+ 5. Time + Action + Result
127
+ 6. Time + Result + Action
128
+ 7. Result + Time + Action
129
+
130
+ EXAMPLES FOR FORMULA 3:
131
+ • Implementa nuestra estrategia de email marketing y aumenta tus ventas un 27% en los próximos 30 días, incluso si tu lista tiene menos de 500 suscriptores.
132
+
133
+ • Aplica las 3 técnicas de copywriting en tus próximos 5 posts y en 14 días verás un incremento del 42% en engagement, eliminando por completo los comentarios negativos.
134
+
135
+ • Tu tasa de conversión aumentará del 2% al 5.7% cuando implementes nuestro sistema de embudos en los próximos 21 días, sin necesidad de aumentar tu presupuesto publicitario.
136
+
137
+ • En 28 días exactos dominarás las 7 habilidades fundamentales de negociación aplicando nuestro método paso a paso, incluso si actualmente cedes en cada discusión.
138
+
139
+ • 8 semanas es todo lo que necesitas para transformar tu cuerpo con nuestro programa de 15 minutos diarios, reduciendo hasta 8 kg de grasa y aumentando tu energía un 65% desde la primera semana.
140
+
141
+ FORMULA 4 - NÚMERICA SUPREMA:
142
+ La Fórmula Suprema de Istvanova combina 5 elementos clave más artículos plurales para crear bullets persuasivos e interesantes:
143
+
144
+ 1. Artículos Plurales (Art):
145
+ - Los (para masculino plural)
146
+ - Las (para femenino plural)
147
+ - Dan naturalidad y autoridad al texto
148
+
149
+ 2. Números (N):
150
+ - Específicos y creíbles (3, 5, 7, 10...)
151
+ - Crean estructura y expectativas claras
152
+ - Se combinan con artículos: "Los 5...", "Las 3..."
153
+
154
+ 3. Adjetivo (A):
155
+ - Emocionales y descriptivos
156
+ - Conectan con deseos/miedos específicos
157
+ - Ejemplos: comprobados, científicos, revolucionarios
158
+
159
+ 4. Palabra Clave (P):
160
+ - Término central del beneficio en plural
161
+ - Fácil de entender y recordar
162
+ - Ejemplos: métodos, estrategias, técnicas, secretos
163
+
164
+ 5. Razón (R):
165
+ - Justifica el beneficio con datos concretos
166
+ - Añade credibilidad con evidencia específica
167
+ - Conecta con la motivación específica del lector
168
+
169
+ 6. Promesa (P):
170
+ - Resultado específico y medible con números
171
+ - Timeframe realista con días/semanas exactas
172
+ - Beneficio final atractivo y verificable
173
+
174
+ EXAMPLES FOR FORMULA 4:
175
+ • Los 3 rituales científicamente probados para reducir tu estrés un 47% en 14 días, validados por la Universidad de Stanford.
176
+
177
+ • Las 5 rutinas efectivas para fortalecer tu core en solo 12 minutos diarios, eliminando el dolor lumbar en el 89% de los casos.
178
+
179
+ • Los 7 hábitos esenciales para aumentar tu productividad un 63%, permitiéndote completar en 4 horas lo que antes hacías en 8.
180
+
181
+ • Las 3 técnicas comprobadas para dormir 7 horas ininterrumpidas basadas en neurociencia, que han ayudado a 1,243 personas con insomnio crónico.
182
+
183
+ • Los 5 movimientos efectivos para fortalecer tu core sin equipamiento, que activan un 78% más de fibras musculares que los ejercicios tradicionales.
184
+
185
+ FORMULA 5 - EL TRIÁNGULO DE ORO:
186
+ Formula: [Benefit 1 + Benefit 2 + Great Promise]
187
+
188
+ This formula creates high-impact bullets by combining three key benefits persuasively:
189
+ 1. Benefit 1: The first benefit that addresses an immediate client need
190
+ 2. Benefit 2: An additional benefit that generates more value
191
+ 3. Great Promise: The main or most impactful promise that closes the proposal
192
+
193
+ Instructions for Creating Powerful Bullets:
194
+ 1. Identify Your Audience's Great Dream:
195
+ - What's their ultimate aspiration?
196
+ - What keeps them awake at night?
197
+ - What's their ideal scenario?
198
+ - What transformation do they deeply desire?
199
+
200
+ 2. Structure Your Benefits:
201
+ - Write in a natural, conversational tone (like talking to a friend)
202
+ - Flow elements together without forced pauses or commas
203
+ - Make transitions smooth and invisible
204
+ - Keep the rhythm flowing from start to finish
205
+
206
+ 3. Craft Your Benefits:
207
+ - Benefit 1: Hook them with their biggest pain point using casual language
208
+ - Benefit 2: Build momentum with an exciting complementary gain
209
+ - Great Promise: Deliver the knockout punch that makes them say "I need this!"
210
+
211
+ 4. Tips for Maximum Impact:
212
+ - Write like you speak (but better)
213
+ - Avoid formal language or stiff transitions
214
+ - Make each element flow naturally into the next
215
+ - Create a rhythm that pulls the reader through
216
+ - Use conversational connectors instead of commas
217
+ - Read it aloud - if you stumble, rewrite it
218
+ - Make it so engaging they can't stop reading
219
+ - Keep the energy high from start to finish
220
+
221
+ Structure Formats:
222
+ 1. "[benefit 1] [benefit 2] [great promise]"
223
+ 2. "[benefit 2] [benefit 1] [great promise]"
224
+ 3. "[great promise] [benefit 2] [benefit 1]"
225
+ 4. "[great promise] [benefit 1] [benefit 2]"
226
+ 5. "[benefit 1] [benefit 2] [great promise]"
227
+ 6. "[benefit 1] + question + [benefit 2] + [great promise]"
228
+ 7. "question + [benefit 1] + [benefit 2] + [great promise]"
229
+ 8. "[benefit 1] + while + [benefit 2] + and also + [great promise]"
230
+ 9. "Not only + [benefit 1] + but also + [benefit 2] + and best of all + [great promise]"
231
+ 10. "Imagine + [benefit 1] + at the same time as + [benefit 2] + and finally + [great promise]"
232
+ 11. "From + [benefit 1] + going through + [benefit 2] + until + [great promise]"
233
+ 12. "First + [benefit 1] + then + [benefit 2] + and at the end + [great promise]"
234
+ 13. "Start with + [benefit 1] + transform with + [benefit 2] + culminate with + [great promise]"
235
+ 14. "Tired of the opposite of [benefit 1]? + Discover + [benefit 2] + and achieve + [great promise]"
236
+ 15. "Finally + [benefit 1] + plus + [benefit 2] + and as a bonus + [great promise]"
237
+
238
+ EXAMPLES FOR FORMULA 5:
239
+ • Reduce tu estrés laboral en un 42% mientras aumentas tu productividad un 37% y transforma tu carrera profesional con nuestro sistema de gestión del tiempo basado en neurociencia aplicada.
240
+
241
+ • Domina 5 idiomas extranjeros mientras duermes 8 horas ininterrumpidas y activa el 89% de tu potencial cerebral con nuestro revolucionario programa de aprendizaje durante el sueño profundo.
242
+
243
+ • No solo eliminarás el dolor de espalda crónico en 14 días sino que también fortalecerás tu core un 78% y lo mejor de todo es que recuperarás la capacidad de disfrutar actividades que creías imposibles.
244
+
245
+ • ¿Cansado de perder tiempo en reuniones improductivas? Descubre cómo reducir tu jornada laboral 3 horas diarias y consigue resultados un 65% superiores con nuestro framework de productividad cuántica.
246
+
247
+ • Imagina generar 10 ideas innovadoras por día al mismo tiempo que reduces tu estrés un 47% y finalmente te conviertes en el referente creativo de tu industria con nuestro método de pensamiento lateral estructurado.
248
+
249
+ Remember to choose just ONE formula and apply it consistently to all 5 bullets.
250
+ """
251
+
252
+ # Combine base instruction with formula instructions
253
+ complete_instruction = base_instruction + formula_instructions
254
+
255
+ return complete_instruction
256
+
257
+
258
+ def get_random_bullet_formula():
259
+ """
260
+ Randomly selects a bullet formula type to ensure variety in generated bullets.
261
+ Extracts formula names automatically from the instruction text.
262
+
263
+ Returns:
264
+ str: The name of the randomly selected formula
265
+ """
266
+ # Get the full instruction text
267
+ full_instruction = create_bullet_instruction()
268
+
269
+ # Extract formula names using regex pattern matching
270
+ import re
271
+
272
+ # Pattern to find formula names (looks for "FORMULA X - NAME:")
273
+ formula_pattern = r"FORMULA\s+\d+\s+-\s+([^:]+):"
274
+
275
+ # Find all matches in the instruction text
276
+ formula_matches = re.findall(formula_pattern, full_instruction)
277
+
278
+ # If no formulas found, fallback to manual list
279
+ if not formula_matches:
280
+ formulas = [
281
+ "STANDARD BENEFIT",
282
+ "3 EN 1 (FEATURE + BENEFIT + MEANING)",
283
+ "ANTI-PROCRASTINACIÓN (ACTION + RESULT + TIME)",
284
+ "NÚMERICA SUPREMA",
285
+ "EL TRIÁNGULO DE ORO"
286
+ ]
287
+ else:
288
+ formulas = formula_matches
289
+
290
+ # Select a random formula
291
+ selected_formula = random.choice(formulas)
292
+
293
+ return selected_formula
294
+
295
+
296
+ def create_bullet_instruction_with_formula():
297
+ """
298
+ Creates the instruction for generating benefit bullets with a specific
299
+ randomly selected formula to ensure consistency.
300
+
301
+ Returns:
302
+ str: The complete instruction for generating bullets with the selected formula
303
+ """
304
+ # Get base instruction
305
+ base_instruction = create_bullet_instruction()
306
+
307
+ # Get a random formula
308
+ selected_formula = get_random_bullet_formula()
309
+
310
+ # Add specific instruction to use the selected formula
311
+ formula_directive = f"""
312
+
313
+ IMPORTANT OVERRIDE: For this specific task, you MUST use FORMULA {selected_formula}
314
+ for ALL 5 bullets. Do not choose randomly - you must use this exact formula consistently.
315
+ """
316
+
317
+ # Combine instructions
318
+ complete_instruction = base_instruction + formula_directive
319
+
320
  return complete_instruction
formulas.py CHANGED
@@ -197,6 +197,117 @@ Create a compelling offer following the formula structure exactly.
197
 
198
  return instruction
199
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  # The rest of your offer_formulas dictionary remains unchanged
201
  offer_formulas = {
202
  "Oferta Dorada": {
 
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.
288
+
289
+ Args:
290
+ avatar_description: Description of the target audience
291
+ product_name: Name of the product or service
292
+ selected_formula_name: Name of the formula to use
293
+ include_bonuses: Whether to include bonuses in the offer
294
+
295
+ Returns:
296
+ dict: Instructions for generating the complete offer
297
+ """
298
+ # Create main offer instruction
299
+ main_offer_instruction = create_offer_instruction(avatar_description, product_name, selected_formula_name)
300
+
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 {
307
+ "main_offer_instruction": main_offer_instruction,
308
+ "bonus_instruction": bonus_instruction
309
+ }
310
+
311
  # The rest of your offer_formulas dictionary remains unchanged
312
  offer_formulas = {
313
  "Oferta Dorada": {