Spaces:
Running
Running
Upload 17 files
Browse files- avatar_analysis.py +157 -0
- formulas.py +232 -145
- offer/generator.py +95 -0
- prompts.py +11 -2
avatar_analysis.py
ADDED
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Nuevo archivo para el an谩lisis de avatar independiente
|
2 |
+
|
3 |
+
def analyze_avatar(target_audience=None, product_service=None, uploaded_content=None, skills=None):
|
4 |
+
"""
|
5 |
+
Performs a deep analysis of the avatar based on provided information.
|
6 |
+
|
7 |
+
Args:
|
8 |
+
target_audience: Description of the target audience
|
9 |
+
product_service: Kind of product or service
|
10 |
+
uploaded_content: Content from uploaded files (if any)
|
11 |
+
skills: User's skills and expertise
|
12 |
+
|
13 |
+
Returns:
|
14 |
+
dict: Complete avatar analysis
|
15 |
+
"""
|
16 |
+
# Information available for analysis
|
17 |
+
info_section = f"""
|
18 |
+
INFORMACI脫N DISPONIBLE PARA AN脕LISIS:
|
19 |
+
|
20 |
+
1. DESCRIPCI脫N DEL P脷BLICO OBJETIVO:
|
21 |
+
{target_audience if target_audience else "No se ha proporcionado descripci贸n espec铆fica del p煤blico objetivo."}
|
22 |
+
|
23 |
+
2. PRODUCTO/SERVICIO:
|
24 |
+
{product_service if product_service else "No se ha proporcionado nombre espec铆fico del producto/servicio."}
|
25 |
+
|
26 |
+
3. CONTENIDO ADICIONAL:
|
27 |
+
{uploaded_content if uploaded_content else "No se ha subido contenido adicional."}
|
28 |
+
|
29 |
+
4. HABILIDADES Y EXPERIENCIA:
|
30 |
+
{skills if skills else "No se han proporcionado habilidades espec铆ficas."}
|
31 |
+
|
32 |
+
IMPORTANTE: Analiza TODA la informaci贸n disponible para identificar puntos de dolor espec铆ficos, objeciones y necesidades que puedan abordarse en la oferta principal.
|
33 |
+
"""
|
34 |
+
|
35 |
+
# Complete avatar analysis framework
|
36 |
+
avatar_analysis = f"""
|
37 |
+
FRAMEWORK DE AN脕LISIS PROFUNDO DEL AVATAR:
|
38 |
+
|
39 |
+
PASO 1: DEFINE CON PRECISI脫N EL AVATAR
|
40 |
+
Tu avatar no es solo un t铆tulo profesional, sino una persona con miedos, aspiraciones y problemas espec铆ficos.
|
41 |
+
- Identifica qui茅n es exactamente (demograf铆a, psicograf铆a, rol, estatus)
|
42 |
+
- Determina qu茅 problema espec铆fico lo est谩 frenando ahora mismo
|
43 |
+
- Comprende c贸mo este problema impacta su negocio o vida personal
|
44 |
+
- Clarifica en qu茅 etapa se encuentra para resolver este problema
|
45 |
+
- Define su nivel de conciencia sobre las posibles soluciones
|
46 |
+
|
47 |
+
PASO 2: IDENTIFICA SUS DOLORES Y FRUSTRACIONES REALES
|
48 |
+
Los pains deben ir m谩s all谩 de lo superficial. Enf贸cate en lo que realmente los mantiene despiertos por la noche.
|
49 |
+
- 驴Qu茅 lo frustra d铆a a d铆a relacionado con este problema?
|
50 |
+
- 驴Qu茅 pensamientos negativos o creencias limitantes lo est谩n frenando?
|
51 |
+
- 驴Qu茅 ha intentado antes que no ha funcionado?
|
52 |
+
- 驴Qu茅 obst谩culos espec铆ficos le impiden avanzar?
|
53 |
+
|
54 |
+
PASO 3: CON脡CTALO CON LA EMOCI脫N QUE LE PROVOCA EL PROBLEMA
|
55 |
+
Las emociones son el verdadero motor de la compra. Identifica c贸mo se sienten al enfrentar sus problemas.
|
56 |
+
- 驴C贸mo se siente al enfrentar este problema? (avergonzado, abrumado, frustrado)
|
57 |
+
- 驴Qu茅 impacto tiene esto en su confianza y autoestima?
|
58 |
+
- 驴Qu茅 disparadores emocionales podr铆an impedirle tomar acci贸n?
|
59 |
+
|
60 |
+
PASO 4: MUESTRA EL IMPACTO DEL PROBLEMA EN SU VIDA REAL
|
61 |
+
El cliente debe verse reflejado en escenarios concretos.
|
62 |
+
- 驴C贸mo afecta espec铆ficamente a su negocio, relaciones o finanzas?
|
63 |
+
- 驴Qu茅 consecuencias est谩 sufriendo por no resolverlo?
|
64 |
+
- 驴Qu茅 oportunidades est谩 perdiendo?
|
65 |
+
- 驴Cu谩l es el costo de la inacci贸n (financiero, emocional, tiempo)?
|
66 |
+
|
67 |
+
PASO 5: DEFINE SU DESEO M脕S PROFUNDO
|
68 |
+
El "deseo ego铆sta" es lo que realmente quiere, sin filtros ni justificaciones.
|
69 |
+
- 驴Qu茅 quiere lograr realmente m谩s all谩 del objetivo superficial?
|
70 |
+
- 驴C贸mo ser铆a su vida sin este problema?
|
71 |
+
- 驴Qu茅 transformaci贸n est谩 buscando realmente?
|
72 |
+
- 驴Qu茅 cambio de estatus o identidad desea?
|
73 |
+
|
74 |
+
PASO 6: ILUSTRA ESE DESEO EN SU VIDA DIARIA
|
75 |
+
Haz tangible y concreto ese deseo profundo.
|
76 |
+
- 驴C贸mo se ver铆a un d铆a t铆pico despu茅s de lograr esa transformaci贸n?
|
77 |
+
- 驴Qu茅 podr铆a hacer o experimentar que ahora no puede?
|
78 |
+
- 驴C贸mo cambiar铆a su relaci贸n con los dem谩s?
|
79 |
+
- 驴Qu茅 nuevas oportunidades se abrir铆an para 茅l/ella?
|
80 |
+
|
81 |
+
PASO 7: IDENTIFICA LAS OBJECIONES PRINCIPALES
|
82 |
+
Las objeciones son las barreras mentales que impiden la compra.
|
83 |
+
- 驴Qu茅 dudas o preocupaciones tiene sobre la soluci贸n?
|
84 |
+
- 驴Qu茅 experiencias negativas previas podr铆an estar influyendo?
|
85 |
+
- 驴Qu茅 garant铆as o pruebas necesitar铆a para sentirse seguro?
|
86 |
+
- 驴Qu茅 factores externos podr铆an impedir su decisi贸n?
|
87 |
+
|
88 |
+
{info_section}
|
89 |
+
"""
|
90 |
+
|
91 |
+
return avatar_analysis
|
92 |
+
|
93 |
+
def get_avatar_analysis_for_formula(formula_name, target_audience=None, product_service=None, uploaded_content=None, skills=None):
|
94 |
+
"""
|
95 |
+
Gets avatar analysis tailored for a specific formula.
|
96 |
+
|
97 |
+
Args:
|
98 |
+
formula_name: Name of the formula to use
|
99 |
+
target_audience: Description of the target audience
|
100 |
+
product_service: Kind of product or service
|
101 |
+
uploaded_content: Content from uploaded files (if any)
|
102 |
+
skills: User's skills and expertise
|
103 |
+
|
104 |
+
Returns:
|
105 |
+
str: An谩lisis de avatar adaptado a la f贸rmula espec铆fica
|
106 |
+
"""
|
107 |
+
# Get the base avatar analysis
|
108 |
+
base_analysis = analyze_avatar(target_audience, product_service, uploaded_content, skills)
|
109 |
+
|
110 |
+
# Customize the analysis based on the formula
|
111 |
+
if formula_name == "Oferta Dorada":
|
112 |
+
return f"""
|
113 |
+
{base_analysis}
|
114 |
+
|
115 |
+
ENFOQUE ESPEC脥FICO PARA LA OFERTA DORADA:
|
116 |
+
|
117 |
+
Para crear una Oferta Dorada efectiva, enf贸cate especialmente en:
|
118 |
+
|
119 |
+
1. Los DOLORES m谩s agudos (para el headline de dolor)
|
120 |
+
2. El DESEO M脕S PROFUNDO (para la promesa en may煤sculas)
|
121 |
+
3. Las OBJECIONES PRINCIPALES (para neutralizarlas en el subt铆tulo de refuerzo)
|
122 |
+
|
123 |
+
Aseg煤rate de que estos tres elementos est茅n perfectamente alineados para crear una oferta coherente y persuasiva.
|
124 |
+
"""
|
125 |
+
|
126 |
+
elif formula_name == "Contraste Revelador":
|
127 |
+
return f"""
|
128 |
+
{base_analysis}
|
129 |
+
|
130 |
+
ENFOQUE ESPEC脥FICO PARA EL CONTRASTE REVELADOR:
|
131 |
+
|
132 |
+
Para crear un Contraste Revelador efectivo, enf贸cate especialmente en:
|
133 |
+
|
134 |
+
1. El DESEO M脕S PROFUNDO (para la visi贸n inspiradora)
|
135 |
+
2. La TRANSFORMACI脫N DESEADA (para la soluci贸n transformadora)
|
136 |
+
3. El IMPACTO EMOCIONAL POSITIVO (para el resultado emocional)
|
137 |
+
|
138 |
+
Aseg煤rate de crear un contraste claro entre la situaci贸n actual y la transformaci贸n deseada.
|
139 |
+
"""
|
140 |
+
|
141 |
+
elif formula_name == "Propuesta 脷nica de Valor":
|
142 |
+
return f"""
|
143 |
+
{base_analysis}
|
144 |
+
|
145 |
+
ENFOQUE ESPEC脥FICO PARA LA PROPUESTA 脷NICA DE VALOR:
|
146 |
+
|
147 |
+
Para crear una Propuesta 脷nica de Valor efectiva, enf贸cate especialmente en:
|
148 |
+
|
149 |
+
1. La TRANSFORMACI脫N CONCRETA (para la promesa en may煤sculas)
|
150 |
+
2. Las OBJECIONES PRINCIPALES (para abordarlas en la segunda parte)
|
151 |
+
3. La SITUACI脫N ACTUAL (para crear contraste con la transformaci贸n)
|
152 |
+
|
153 |
+
Aseg煤rate de que la transformaci贸n sea espec铆fica y medible, y que las objeciones se aborden de manera directa.
|
154 |
+
"""
|
155 |
+
|
156 |
+
# Si no es una f贸rmula espec铆fica, devolver el an谩lisis completo
|
157 |
+
return base_analysis
|
formulas.py
CHANGED
@@ -156,10 +156,11 @@ The element that solidifies credibility and reinforces the purchase decision. In
|
|
156 |
"instructions": """
|
157 |
SPECIFIC INSTRUCTIONS FOR THE GOLDEN OFFER:
|
158 |
|
159 |
-
1.
|
160 |
-
-
|
161 |
-
|
162 |
-
|
|
|
163 |
|
164 |
2. PAIN HEADLINE CREATION:
|
165 |
- Use one of the 5 headline types mentioned in the description:
|
@@ -239,171 +240,172 @@ SPECIFIC INSTRUCTIONS FOR THE GOLDEN OFFER:
|
|
239 |
},
|
240 |
"Contraste Revelador": {
|
241 |
"description": """
|
242 |
-
Formula: [
|
243 |
|
244 |
-
|
245 |
|
246 |
-
### **
|
247 |
|
248 |
-
#### **
|
249 |
-
|
250 |
-
-
|
251 |
-
-
|
252 |
-
-
|
253 |
-
-
|
254 |
|
255 |
-
#### **
|
256 |
-
|
257 |
-
-
|
258 |
-
-
|
259 |
-
-
|
260 |
-
-
|
261 |
|
262 |
-
#### **
|
263 |
-
|
264 |
-
-
|
265 |
-
-
|
266 |
-
-
|
267 |
-
-
|
268 |
|
269 |
-
### **
|
270 |
-
"[
|
271 |
|
272 |
-
[
|
273 |
|
274 |
-
[
|
275 |
""",
|
276 |
"sophistication_examples": {
|
277 |
"nivel_1": {
|
278 |
-
"
|
279 |
-
"
|
280 |
-
"
|
281 |
},
|
282 |
"nivel_1_ejemplo2": {
|
283 |
-
"
|
284 |
-
"
|
285 |
-
"
|
286 |
},
|
287 |
"nivel_1_ejemplo3": {
|
288 |
-
"
|
289 |
-
"
|
290 |
-
"
|
291 |
},
|
292 |
"nivel_2": {
|
293 |
-
"
|
294 |
-
"
|
295 |
-
"
|
296 |
},
|
297 |
"nivel_2_ejemplo2": {
|
298 |
-
"
|
299 |
-
"
|
300 |
-
"
|
301 |
},
|
302 |
"nivel_2_ejemplo3": {
|
303 |
-
"
|
304 |
-
"
|
305 |
-
"
|
306 |
},
|
307 |
"nivel_3": {
|
308 |
-
"
|
309 |
-
"
|
310 |
-
"
|
311 |
},
|
312 |
"nivel_3_ejemplo2": {
|
313 |
-
"
|
314 |
-
"
|
315 |
-
"
|
316 |
},
|
317 |
"nivel_3_ejemplo3": {
|
318 |
-
"
|
319 |
-
"
|
320 |
-
"
|
321 |
},
|
322 |
"nivel_4": {
|
323 |
-
"
|
324 |
-
"
|
325 |
-
"
|
326 |
},
|
327 |
"nivel_4_ejemplo2": {
|
328 |
-
"
|
329 |
-
"
|
330 |
-
"
|
331 |
},
|
332 |
"nivel_4_ejemplo3": {
|
333 |
-
"
|
334 |
-
"
|
335 |
-
"
|
336 |
},
|
337 |
"nivel_5": {
|
338 |
-
"
|
339 |
-
"
|
340 |
-
"
|
341 |
},
|
342 |
"nivel_5_ejemplo2": {
|
343 |
-
"
|
344 |
-
"
|
345 |
-
"
|
346 |
},
|
347 |
"nivel_5_ejemplo3": {
|
348 |
-
"
|
349 |
-
"
|
350 |
-
"
|
351 |
}
|
352 |
},
|
353 |
"instructions": """
|
354 |
-
|
355 |
-
|
356 |
-
1.
|
357 |
-
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
*
|
365 |
-
*
|
366 |
-
*
|
367 |
-
*
|
368 |
-
*
|
369 |
-
*
|
370 |
-
|
371 |
-
-
|
372 |
-
-
|
373 |
-
|
374 |
-
*
|
375 |
-
*
|
376 |
-
*
|
377 |
-
*
|
378 |
-
*
|
379 |
-
*
|
380 |
-
|
381 |
-
-
|
382 |
-
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
-
|
387 |
-
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
-
|
392 |
-
-
|
393 |
-
-
|
394 |
-
-
|
|
|
395 |
|
396 |
-
5.
|
397 |
-
-
|
398 |
-
-
|
399 |
-
-
|
400 |
-
-
|
401 |
|
402 |
-
[
|
403 |
|
404 |
-
[
|
405 |
|
406 |
-
[
|
407 |
"""
|
408 |
|
409 |
},
|
@@ -436,28 +438,113 @@ The second line, in lowercase, that addresses fears, doubts, or limiting beliefs
|
|
436 |
|
437 |
[even if + current situation + objections about the journey + concerns about maintaining results]"
|
438 |
""",
|
439 |
-
"
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
461 |
"""
|
462 |
}
|
463 |
}
|
|
|
156 |
"instructions": """
|
157 |
SPECIFIC INSTRUCTIONS FOR THE GOLDEN OFFER:
|
158 |
|
159 |
+
1. USE THE PROVIDED AVATAR ANALYSIS:
|
160 |
+
- Review the complete avatar analysis to identify:
|
161 |
+
* The main pains and frustrations
|
162 |
+
* The deepest desire and the transformation sought
|
163 |
+
* The objections and concerns that block the decision
|
164 |
|
165 |
2. PAIN HEADLINE CREATION:
|
166 |
- Use one of the 5 headline types mentioned in the description:
|
|
|
240 |
},
|
241 |
"Contraste Revelador": {
|
242 |
"description": """
|
243 |
+
Formula: [Inspiring Vision + TRANSFORMATIVE SOLUTION IN CAPITAL LETTERS + Emotional Result]
|
244 |
|
245 |
+
This concise and direct formula immediately connects with the target audience through a positive vision:
|
246 |
|
247 |
+
### **Elements of the Revealing Contrast:**
|
248 |
|
249 |
+
#### **Inspiring Vision**
|
250 |
+
This is [Tab 1] and here a positive and aspirational vision that the target audience desires to achieve is presented:
|
251 |
+
- An invitation to imagine an ideal or desired state ("Imagine...", "Visualize...", "Think...")
|
252 |
+
- A vivid description of the positive experience they seek
|
253 |
+
- An aspirational scenario that connects with their deepest desires
|
254 |
+
- A transformative possibility presented in an inspiring way
|
255 |
|
256 |
+
#### **TRANSFORMATIVE SOLUTION**
|
257 |
+
This is [Tab 2] and this is the core of the offer, written in capital letters for visual emphasis:
|
258 |
+
- Begins with a powerful action verb (MASTER, IMPLEMENT, DISCOVER)
|
259 |
+
- Focuses on amplifying strengths and potential
|
260 |
+
- Eliminates the main objection in the same promise
|
261 |
+
- Connects with the desired emotional result without adding complexity
|
262 |
|
263 |
+
#### **Emotional Result**
|
264 |
+
This is [Tab 3] and here a deep emotional connection is provided:
|
265 |
+
- Includes specific numbers of people/cases who have experienced the transformation
|
266 |
+
- Emphasizes the positive emotional experience they will live
|
267 |
+
- Connects with the resulting feelings of satisfaction and fulfillment
|
268 |
+
- Reinforces personal transformation and the new state of being
|
269 |
|
270 |
+
### **Structure:**
|
271 |
+
"[Tab 1]
|
272 |
|
273 |
+
[Tab 2]
|
274 |
|
275 |
+
[Tab 3]"
|
276 |
""",
|
277 |
"sophistication_examples": {
|
278 |
"nivel_1": {
|
279 |
+
"situation": "Imagina despertar cada ma帽ana con una claridad mental que te permite identificar exactamente qu茅 acciones mover谩n la aguja en tu d铆a.",
|
280 |
+
"solution": "DOMINA EL SISTEMA DE PRODUCTIVIDAD INTUITIVA QUE ALINEA TUS ACCIONES CON TUS VERDADERAS PRIORIDADES SIN COMPLICADOS SISTEMAS DE ORGANIZACI脫N.",
|
281 |
+
"result": "Cientos de personas ahora disfrutan de tardes libres con la satisfacci贸n de haber completado lo que realmente importa, creando espacio para lo que aman."
|
282 |
},
|
283 |
"nivel_1_ejemplo2": {
|
284 |
+
"situation": "Visualiza tu escritorio ordenado, tu mente clara y tus proyectos avanzando con un impulso constante que te llena de satisfacci贸n al final de cada d铆a.",
|
285 |
+
"solution": "DESCUBRE EL M脡TODO DE FLUJO NATURAL QUE TRANSFORMA TU POTENCIAL EN RESULTADOS TANGIBLES SIN CONVERTIR TU VIDA EN UNA INTERMINABLE LISTA DE TAREAS.",
|
286 |
+
"result": "M谩s de 500 profesionales han encontrado un ritmo de trabajo que respeta sus ciclos de energ铆a, experimentando la alegr铆a de crear con prop贸sito y sin presi贸n."
|
287 |
},
|
288 |
"nivel_1_ejemplo3": {
|
289 |
+
"situation": "Piensa en lo que lograr铆as si pudieras mantener una concentraci贸n inquebrantable durante horas, avanzando en tus proyectos m谩s importantes con precisi贸n l谩ser.",
|
290 |
+
"solution": "APRENDE EL SISTEMA DE ENFOQUE DELIBERADO QUE AMPLIFICA TU CAPACIDAD CREATIVA Y MULTIPLICA TUS RESULTADOS SIN T脡CNICAS QUE SOLO A脩ADEN COMPLEJIDAD.",
|
291 |
+
"result": "Cientos de personas han descubierto la satisfacci贸n de terminar proyectos significativos en tiempo r茅cord, experimentando la confianza que surge al ver sus ideas materializarse."
|
292 |
},
|
293 |
"nivel_2": {
|
294 |
+
"situation": "Visualiza un d铆a en el que cada hora est谩 dedicada a lo que realmente mueve la aguja, donde tu energ铆a fluye naturalmente hacia tus proyectos m谩s importantes.",
|
295 |
+
"solution": "IMPLEMENTA EL M脡TODO DE PRODUCTIVIDAD ESTRAT脡GICA QUE MAXIMIZA TU IMPACTO SIN SACRIFICAR TU BIENESTAR NI CONVERTIR TU VIDA EN UNA CARRERA SIN FIN.",
|
296 |
+
"result": "Profesionales como t煤 han descubierto la libertad de avanzar en proyectos significativos mientras mantienen el equilibrio, disfrutando del proceso tanto como de los resultados."
|
297 |
},
|
298 |
"nivel_2_ejemplo2": {
|
299 |
+
"situation": "Imagina la satisfacci贸n de completar proyectos importantes con facilidad, viendo c贸mo tus ideas se materializan mientras mantienes una sensaci贸n de calma y control.",
|
300 |
+
"solution": "DOMINA LA T脡CNICA DE EJECUCI脫N FLUIDA QUE TRANSFORMA TUS IDEAS EN REALIDADES TANGIBLES SIN CONVERTIRTE EN ESCLAVO DE COMPLICADOS SISTEMAS DE ORGANIZACI脫N.",
|
301 |
+
"result": "M谩s de 750 profesionales han experimentado la confianza y tranquilidad que surge cuando finalmente ven resultados concretos, completando proyectos en la mitad del tiempo previsto."
|
302 |
},
|
303 |
"nivel_2_ejemplo3": {
|
304 |
+
"situation": "Piensa en lo que lograr铆as si tu energ铆a mental se mantuviera constante durante todo el d铆a, permiti茅ndote crear con claridad y precisi贸n hora tras hora.",
|
305 |
+
"solution": "IMPLEMENTA EL PROTOCOLO DE OPTIMIZACI脫N MENTAL QUE POTENCIA TU CAPACIDAD CREATIVA SIN RECURRIR A ESTIMULANTES NI SACRIFICAR TU EQUILIBRIO PERSONAL.",
|
306 |
+
"result": "Profesionales de 23 pa铆ses han descubierto un nuevo nivel de rendimiento sostenible, experimentando la alegr铆a de crear con facilidad mientras mantienen su bienestar integral."
|
307 |
},
|
308 |
"nivel_3": {
|
309 |
+
"situation": "Imagina un sistema de trabajo tan alineado con tu naturaleza que la productividad surge espont谩neamente, sin esfuerzo, como el resultado natural de hacer lo que amas.",
|
310 |
+
"solution": "DOMINA EL SISTEMA DE PRODUCTIVIDAD ESENCIAL QUE AMPLIFICA TUS FORTALEZAS NATURALES Y MAXIMIZA TU IMPACTO SIN CAER EN LA TRAMPA DE LA HIPERACTIVIDAD.",
|
311 |
+
"result": "Un grupo selecto de emprendedores ha descubierto la libertad de crear con prop贸sito, duplicando sus resultados mientras trabajan menos horas y disfrutan m谩s del proceso."
|
312 |
},
|
313 |
"nivel_3_ejemplo2": {
|
314 |
+
"situation": "Visualiza un d铆a en el que tu mente est谩 completamente presente en cada tarea, donde las horas de trabajo profundo fluyen naturalmente y tus mejores ideas emergen sin esfuerzo.",
|
315 |
+
"solution": "IMPLEMENTA EL M脡TODO DE CONCENTRACI脫N AMPLIFICADA QUE DESBLOQUEA TU GENIO CREATIVO Y MAXIMIZA TU CAPACIDAD DE INNOVACI脫N SIN A脩ADIR COMPLEJIDAD.",
|
316 |
+
"result": "Un grupo exclusivo de profesionales ha incrementado su capacidad de trabajo profundo en un 300%, experimentando la satisfacci贸n de resolver problemas complejos con elegante simplicidad."
|
317 |
},
|
318 |
"nivel_3_ejemplo3": {
|
319 |
+
"situation": "Piensa en c贸mo ser铆a trabajar con un sistema perfectamente adaptado a tu estilo cognitivo 煤nico, donde cada herramienta y proceso amplifica tus fortalezas naturales.",
|
320 |
+
"solution": "ADOPTA EL PROTOCOLO DE TRABAJO PERSONALIZADO QUE POTENCIA TU ESTILO COGNITIVO 脷NICO Y MULTIPLICA TUS RESULTADOS SIN FORZARTE A ENCAJAR EN SISTEMAS GEN脡RICOS.",
|
321 |
+
"result": "Profesionales de industrias altamente competitivas han descubierto su propio ritmo de excelencia, aumentando su rendimiento en un 70% mientras disfrutan de 10 horas adicionales de libertad cada semana."
|
322 |
},
|
323 |
"nivel_4": {
|
324 |
+
"situation": "Imagina un estado mental donde tus mejores ideas fluyen sin esfuerzo, donde cada hora de trabajo equivale a tres de productividad convencional, transformando tu carrera y tu vida.",
|
325 |
+
"solution": "IMPLEMENTA EL PROTOCOLO DE PRODUCTIVIDAD AMPLIFICADA VALIDADO POR NEUROCIENT脥FICOS Y POTENCIA TU RENDIMIENTO COGNITIVO SIN SACRIFICAR TU BIENESTAR INTEGRAL.",
|
326 |
+
"result": "Profesionales de alto rendimiento han descubierto un nuevo nivel de claridad mental, completando proyectos estrat茅gicos en tiempo r茅cord mientras disfrutan de una presencia plena en cada momento."
|
327 |
},
|
328 |
"nivel_4_ejemplo2": {
|
329 |
+
"situation": "Visualiza tu mente operando en un estado 贸ptimo donde los problemas complejos se resuelven con elegante simplicidad y las soluciones creativas emergen naturalmente.",
|
330 |
+
"solution": "IMPLEMENTA EL SISTEMA DE OPTIMIZACI脫N COGNITIVA RESPALDADO POR ESTUDIOS DEL MIT Y EXPERIMENTA UN AUMENTO DEL 215% EN TU CAPACIDAD CREATIVA Y ANAL脥TICA.",
|
331 |
+
"result": "Ejecutivos de Fortune 500 han descubierto c贸mo lograr m谩s impacto estrat茅gico trabajando un 35% menos, seg煤n un estudio independiente que document贸 su transformaci贸n durante 12 meses."
|
332 |
},
|
333 |
"nivel_4_ejemplo3": {
|
334 |
+
"situation": "Piensa en lo que lograr铆as si cada minuto de tu tiempo estuviera perfectamente alineado con tus objetivos m谩s importantes, creando un impacto exponencial en tu carrera y negocio.",
|
335 |
+
"solution": "DOMINA EL PROTOCOLO DE TRABAJO DE ALTO IMPACTO VALIDADO CIENT脥FICAMENTE Y AMPLIFICA TU CAPACIDAD DE CREAR VALOR SIGNIFICATIVO SIN CAER EN EL BURNOUT.",
|
336 |
+
"result": "Un estudio con 1,457 profesionales document贸 c贸mo transformaron su rendimiento, aumentando sus ingresos en un 47% mientras reduc铆an su estr茅s en un 62%, creando una nueva definici贸n de 茅xito sostenible."
|
337 |
},
|
338 |
"nivel_5": {
|
339 |
+
"situation": "Imagina trascender completamente el paradigma de la productividad convencional, descubriendo un estado de creaci贸n donde el tiempo se expande y tu mejor trabajo emerge sin esfuerzo.",
|
340 |
+
"solution": "DESCUBRE EL ANTI-SISTEMA DE TRABAJO DELIBERADO QUE DESBLOQUEA TU GENIO NATURAL Y AMPLIFICA TU IMPACTO SIN CONVERTIR TU VIDA EN UNA INTERMINABLE B脷SQUEDA DE EFICIENCIA.",
|
341 |
+
"result": "L铆deres visionarios han redefinido su relaci贸n con el trabajo, creando resultados extraordinarios mientras disfrutan de una conexi贸n profunda con su prop贸sito y una presencia plena en cada momento."
|
342 |
},
|
343 |
"nivel_5_ejemplo2": {
|
344 |
+
"situation": "Visualiza una forma de trabajar que honre tu humanidad completa, donde tu creatividad, intuici贸n y genio 煤nico florecen naturalmente, creando un impacto que trasciende las m茅tricas convencionales.",
|
345 |
+
"solution": "LIB脡RATE DE LA DICTADURA DE LA EFICIENCIA Y ADOPTA UN NUEVO PARADIGMA DE CREACI脫N QUE INTEGRA TU MENTE, CUERPO Y ESP脥RITU EN UNA EXPRESI脫N UNIFICADA DE TU POTENCIAL.",
|
346 |
+
"result": "Una comunidad de innovadores est谩 redefiniendo el 茅xito en sus propios t茅rminos, creando un impacto profundo mientras disfrutan del proceso creativo y mantienen una conexi贸n 铆ntima con su prop贸sito vital."
|
347 |
},
|
348 |
"nivel_5_ejemplo3": {
|
349 |
+
"situation": "Piensa en una revoluci贸n silenciosa donde el valor no se mide por la cantidad sino por la profundidad, donde tu trabajo se convierte en una expresi贸n aut茅ntica de tu ser m谩s elevado.",
|
350 |
+
"solution": "脷NETE AL MOVIMIENTO DE TRABAJO CONSCIENTE Y TRANSFORMA TU RELACI脫N CON LA CREACI脫N, EL PROP脫SITO Y EL SIGNIFICADO EN CADA ASPECTO DE TU VIDA PROFESIONAL.",
|
351 |
+
"result": "Creadores y l铆deres visionarios est谩n descubriendo una forma de trabajar que nutre el alma mientras genera un impacto transformador, liberados finalmente de los confines de la productividad convencional."
|
352 |
}
|
353 |
},
|
354 |
"instructions": """
|
355 |
+
SPECIFIC INSTRUCTIONS FOR THE REVEALING CONTRAST:
|
356 |
+
|
357 |
+
1. USE THE AVATAR ANALYSIS:
|
358 |
+
- Review the complete avatar analysis:
|
359 |
+
* The main pains and frustrations
|
360 |
+
* The deepest desire and the transformation sought
|
361 |
+
* The objections and concerns that block the decision
|
362 |
+
|
363 |
+
2. CREATION OF THE INSPIRING VISION:
|
364 |
+
- Use a positive, aspirational, and evocative approach:
|
365 |
+
* Begin with "Imagine...", "Visualize..." or "Think about..."
|
366 |
+
* Create ideal scenarios that connect with their deepest desires
|
367 |
+
* Describe optimal mental states and desired experiences
|
368 |
+
* Present transformative possibilities in an inspiring way
|
369 |
+
* Evoke sensations of clarity, purpose, and satisfaction
|
370 |
+
* Connect with deep personal values and aspirations
|
371 |
+
* Create vivid mental images of a desired future
|
372 |
+
- Adapt the tone to the market sophistication level ({sophistication_level})
|
373 |
+
- Ensure the vision is immediately attractive to the target audience
|
374 |
+
- IMPORTANT: Incorporate inspiring and transformative elements:
|
375 |
+
* Use powerful metaphors that create a positive mental image
|
376 |
+
* Describe flow states and optimal performance
|
377 |
+
* Present possibilities that expand their vision of what's possible
|
378 |
+
* Use sensory descriptions that generate a positive emotional response
|
379 |
+
* Connect with universal aspirations for growth and fulfillment
|
380 |
+
* Present inspiring truths that resonate with their experience
|
381 |
+
* Create positive expectations with transformation visions
|
382 |
+
- Make sure each version of the solution is truly distinct in approach and main benefit
|
383 |
+
- Adjust according to the market sophistication level ({sophistication_level})
|
384 |
+
- Ensure the inspiring vision is attractive and aspirational
|
385 |
+
|
386 |
+
3. REFINEMENT AND OPTIMIZATION:
|
387 |
+
- Verify that the three parts are coherently connected
|
388 |
+
- Eliminate any vague or generic language
|
389 |
+
- Avoid exclamation marks and exaggerated language
|
390 |
+
|
391 |
+
4. FORMAT RESTRICTIONS:
|
392 |
+
- Keep each section concise and direct
|
393 |
+
- DO NOT use exclamation marks
|
394 |
+
- Use an inspiring and positive tone
|
395 |
+
- Eliminate any vague or generic language
|
396 |
+
- Avoid starting with statistics or percentages
|
397 |
|
398 |
+
5. DELIVERY FORMAT:
|
399 |
+
- Present the inspiring vision that connects with their aspirations
|
400 |
+
- Then show the TRANSFORMATIVE SOLUTION
|
401 |
+
- Finally present the emotional result
|
402 |
+
- The final format should be:
|
403 |
|
404 |
+
[Inspiring vision that connects with their aspirations and desires]
|
405 |
|
406 |
+
[TRANSFORMATIVE SOLUTION IN CAPITAL LETTERS]
|
407 |
|
408 |
+
[Social proof + Positive emotional experience they will live]
|
409 |
"""
|
410 |
|
411 |
},
|
|
|
438 |
|
439 |
[even if + current situation + objections about the journey + concerns about maintaining results]"
|
440 |
""",
|
441 |
+
"sophistication_examples": {
|
442 |
+
"nivel_1": {
|
443 |
+
"transformation": "DUPLICA TU PRODUCTIVIDAD EN 30 D脥AS CON UN SISTEMA SIMPLE DE GESTI脫N DEL TIEMPO",
|
444 |
+
|
445 |
+
"objections": "Incluso si nunca has logrado organizarte antes y crees que no tienes suficiente disciplina para mantener nuevos h谩bitos"
|
446 |
+
},
|
447 |
+
"nivel_1_ejemplo2": {
|
448 |
+
"transformation": "GENERA TU PRIMERA VENTA ONLINE EN MENOS DE 14 D脥AS SIN EXPERIENCIA PREVIA",
|
449 |
+
|
450 |
+
"objections": "Aunque no tengas conocimientos t茅cnicos, un gran presupuesto o una red de contactos establecida"
|
451 |
+
},
|
452 |
+
"nivel_1_ejemplo3": {
|
453 |
+
"transformation": "APRENDE A HABLAR INGL脡S CONVERSACIONAL EN SOLO 8 SEMANAS SIN ESTUDIAR GRAM脕TICA",
|
454 |
+
|
455 |
+
"objections": "Incluso si has intentado otros m茅todos sin 茅xito y crees que no tienes facilidad para los idiomas"
|
456 |
+
},
|
457 |
+
"nivel_2": {
|
458 |
+
"transformation": "CONSTRUYE UN NEGOCIO DIGITAL QUE GENERE $5,000 MENSUALES EN TU PRIMER TRIMESTRE",
|
459 |
+
|
460 |
+
"objections": "Aunque actualmente trabajes tiempo completo, no tengas experiencia en marketing digital o temas que tu nicho ya est茅 saturado"
|
461 |
+
},
|
462 |
+
"nivel_2_ejemplo2": {
|
463 |
+
"transformation": "TRANSFORMA TU CUERPO EN 60 D脥AS CON SOLO 3 ENTRENAMIENTOS SEMANALES DE 30 MINUTOS",
|
464 |
+
|
465 |
+
"objections": "Incluso si tienes un metabolismo lento, has fracasado con otras dietas o no dispones de mucho tiempo libre para ejercitarte"
|
466 |
+
},
|
467 |
+
"nivel_2_ejemplo3": {
|
468 |
+
"transformation": "DOMINA LA INVERSI脫N EN BOLSA Y GENERA UN 15% DE RENDIMIENTO ANUAL CONSISTENTE",
|
469 |
+
|
470 |
+
"objections": "Aunque nunca hayas invertido antes, no entiendas de finanzas o temas perder tu dinero en mercados vol谩tiles"
|
471 |
+
},
|
472 |
+
"nivel_3": {
|
473 |
+
"transformation": "ESCALA TU NEGOCIO DE SERVICIOS A 6 FIGURAS EN 6 MESES SIN TRABAJAR M脕S HORAS",
|
474 |
+
|
475 |
+
"objections": "Incluso si actualmente est谩s atrapado haciendo todo t煤 mismo, tus precios est谩n por debajo del mercado o temes perder calidad al delegar"
|
476 |
+
},
|
477 |
+
"nivel_3_ejemplo2": {
|
478 |
+
"transformation": "AUTOMATIZA EL 80% DE TUS PROCESOS DE VENTA Y DUPLICA TUS CONVERSIONES",
|
479 |
+
|
480 |
+
"objections": "Aunque tu equipo se resista al cambio, no tengas experiencia con herramientas digitales o creas que tu negocio requiere un toque personal"
|
481 |
+
},
|
482 |
+
"nivel_3_ejemplo3": {
|
483 |
+
"transformation": "POSICI脫NATE COMO AUTORIDAD EN TU INDUSTRIA EN 90 D脥AS Y ATRAE CLIENTES PREMIUM",
|
484 |
+
|
485 |
+
"objections": "Aunque actualmente seas desconocido, no tengas credenciales impresionantes o te sientas inc贸modo con la visibilidad p煤blica"
|
486 |
+
},
|
487 |
+
"nivel_4": {
|
488 |
+
"transformation": "IMPLEMENTA UN SISTEMA DE ADQUISICI脫N DE CLIENTES QUE GENERE UN ROI DEL 300% EN 45 D脥AS",
|
489 |
+
|
490 |
+
"objections": "Incluso si los costos de publicidad en tu industria est谩n en m谩ximos hist贸ricos, la competencia es feroz o tus ciclos de venta son tradicionalmente largos"
|
491 |
+
},
|
492 |
+
"nivel_4_ejemplo2": {
|
493 |
+
"transformation": "DESARROLLA UNA ESTRATEGIA DE CONTENIDO QUE CAPTURE EL 15% DE TU MERCADO EN 6 MESES",
|
494 |
+
|
495 |
+
"objections": "Aunque los algoritmos cambien constantemente, tu audiencia est茅 saturada de informaci贸n o no tengas un equipo de producci贸n dedicado"
|
496 |
+
},
|
497 |
+
"nivel_4_ejemplo3": {
|
498 |
+
"transformation": "CREA UN SISTEMA DE LIDERAZGO QUE REDUZCA LA ROTACI脫N EN UN 70% Y AUMENTE LA PRODUCTIVIDAD EN UN 40%",
|
499 |
+
|
500 |
+
"objections": "Incluso si tu equipo est谩 desmotivado, trabajas en una industria de alta presi贸n o has intentado m煤ltiples enfoques de gesti贸n sin resultados"
|
501 |
+
},
|
502 |
+
"nivel_5": {
|
503 |
+
"transformation": "REINVENTA TU MODELO DE NEGOCIO Y GENERA UN IMPACTO DE 7 FIGURAS TRABAJANDO SOLO 3 D脥AS A LA SEMANA",
|
504 |
+
|
505 |
+
"objections": "Aunque est茅s atrapado en paradigmas tradicionales de tu industria, temas perder clientes actuales o creas que el 茅xito requiere sacrificar tu vida personal"
|
506 |
+
},
|
507 |
+
"nivel_5_ejemplo2": {
|
508 |
+
"transformation": "TRASCIENDE LOS L脥MITES DE TU INDUSTRIA Y CREA UNA CATEGOR脥A COMPLETAMENTE NUEVA DONDE NO EXISTA COMPETENCIA",
|
509 |
+
|
510 |
+
"objections": "Incluso si has operado de la misma manera durante d茅cadas, tu mercado parece completamente definido o temes alienar a tu base de clientes actual"
|
511 |
+
},
|
512 |
+
"nivel_5_ejemplo3": {
|
513 |
+
"transformation": "LIB脡RATE DE LA TIRAN脥A DEL CRECIMIENTO CONSTANTE Y CONSTRUYE UN NEGOCIO QUE GENERE ABUNDANCIA MIENTRAS HONRA TUS VALORES M脕S PROFUNDOS",
|
514 |
+
|
515 |
+
"objections": "Aunque hayas interiorizado que m谩s grande siempre es mejor, temas decepcionar a inversores o creas que el 茅xito requiere comprometer tu visi贸n original"
|
516 |
+
}
|
517 |
+
},
|
518 |
+
"instructions": """
|
519 |
+
SPECIFIC INSTRUCTIONS FOR THE UNIQUE VALUE PROPOSITION:
|
520 |
+
|
521 |
+
1. USE THE AVATAR ANALYSIS:
|
522 |
+
- Review the complete avatar analysis to identify:
|
523 |
+
* The main pains and frustrations to address in the objections
|
524 |
+
* The deepest desire to include in the transformation
|
525 |
+
* The main objections to neutralize in the second line
|
526 |
+
* The level of awareness about the problem to adjust the tone
|
527 |
+
|
528 |
+
IMPORTANT: For each version, create ONE SINGLE value proposition with the following structure:
|
529 |
+
1. ONE main transformation (in capital letters) - Tab 1
|
530 |
+
2. ONE handling of objections (in lowercase) - Tab 2
|
531 |
+
3. Make sure each version has a completely different approach
|
532 |
+
|
533 |
+
DELIVERY FORMAT FOR EACH VERSION:
|
534 |
+
VERSION X:
|
535 |
+
[TRANSFORMATION IN CAPITAL LETTERS] - Tab 1
|
536 |
+
|
537 |
+
[Objections/concerns in lowercase, starting with capital letter] - Tab 2
|
538 |
+
|
539 |
+
Create 3 COMPLETELY DIFFERENT versions, each with:
|
540 |
+
- A different action verb
|
541 |
+
- A unique transformation approach
|
542 |
+
- A specific objection handling
|
543 |
+
- A different timeframe when possible
|
544 |
+
|
545 |
+
DO NOT repeat the same structure or approach between versions.
|
546 |
+
DO NOT use the same verbs or main benefits.
|
547 |
+
MAKE SURE each version is truly unique in its approach.
|
548 |
"""
|
549 |
}
|
550 |
}
|
offer/generator.py
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
def create_offer_instruction(product_service=None, uploaded_content=None, target_audience=None, skills=None, selected_formula=None):
|
2 |
+
"""
|
3 |
+
Creates instructions for generating a compelling main offer based on deep avatar analysis.
|
4 |
+
|
5 |
+
Args:
|
6 |
+
product_service: Kind of product or service
|
7 |
+
uploaded_content: Content from uploaded files (if any)
|
8 |
+
target_audience: Description of the target audience
|
9 |
+
skills: User's skills and expertise
|
10 |
+
selected_formula: The specific formula to use for the offer
|
11 |
+
|
12 |
+
Returns:
|
13 |
+
str: Complete instruction for generating the main offer
|
14 |
+
"""
|
15 |
+
# Check if any information is provided
|
16 |
+
if not product_service and not target_audience and not uploaded_content and not skills:
|
17 |
+
return """
|
18 |
+
ADVERTENCIA: No se ha proporcionado ninguna informaci贸n para generar la oferta principal.
|
19 |
+
|
20 |
+
Para crear una oferta efectiva y persuasiva, por favor proporciona al menos uno de los siguientes:
|
21 |
+
- Descripci贸n del p煤blico objetivo (avatar)
|
22 |
+
- Nombre del producto o servicio
|
23 |
+
- Contenido adicional relevante
|
24 |
+
- Habilidades y experiencia
|
25 |
+
|
26 |
+
Sin esta informaci贸n, la oferta generada ser谩 gen茅rica y posiblemente menos efectiva.
|
27 |
+
"""
|
28 |
+
|
29 |
+
# Import the avatar analysis module
|
30 |
+
try:
|
31 |
+
import sys
|
32 |
+
import os
|
33 |
+
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
34 |
+
from avatar_analysis import get_avatar_analysis_for_formula
|
35 |
+
|
36 |
+
# Get the formula-specific avatar analysis
|
37 |
+
avatar_analysis = get_avatar_analysis_for_formula(
|
38 |
+
selected_formula if selected_formula else "general",
|
39 |
+
target_audience,
|
40 |
+
product_service,
|
41 |
+
uploaded_content,
|
42 |
+
skills
|
43 |
+
)
|
44 |
+
except ImportError:
|
45 |
+
# Fallback if avatar_analysis module can't be imported
|
46 |
+
avatar_analysis = f"""
|
47 |
+
INFORMACI脫N DISPONIBLE PARA AN脕LISIS:
|
48 |
+
|
49 |
+
1. DESCRIPCI脫N DEL P脷BLICO OBJETIVO:
|
50 |
+
{target_audience if target_audience else "No se ha proporcionado descripci贸n espec铆fica del p煤blico objetivo."}
|
51 |
+
|
52 |
+
2. PRODUCTO/SERVICIO:
|
53 |
+
{product_service if product_service else "No se ha proporcionado nombre espec铆fico del producto/servicio."}
|
54 |
+
|
55 |
+
3. CONTENIDO ADICIONAL:
|
56 |
+
{uploaded_content if uploaded_content else "No se ha subido contenido adicional."}
|
57 |
+
|
58 |
+
4. HABILIDADES Y EXPERIENCIA:
|
59 |
+
{skills if skills else "No se han proporcionado habilidades espec铆ficas."}
|
60 |
+
|
61 |
+
IMPORTANTE: Analiza TODA la informaci贸n disponible para identificar puntos de dolor espec铆ficos, objeciones y necesidades que puedan abordarse en la oferta principal.
|
62 |
+
"""
|
63 |
+
|
64 |
+
# If a specific formula is selected, import and use it
|
65 |
+
if selected_formula:
|
66 |
+
try:
|
67 |
+
# Import the formula module
|
68 |
+
from formulas import offer_formulas
|
69 |
+
|
70 |
+
# Get the formula-specific instructions
|
71 |
+
formula_data = offer_formulas.get(selected_formula, {})
|
72 |
+
formula_instruction = formula_data.get("instructions", "")
|
73 |
+
|
74 |
+
# Combine with avatar analysis
|
75 |
+
return f"{avatar_analysis}\n\n{formula_instruction}"
|
76 |
+
except (ImportError, AttributeError, KeyError) as e:
|
77 |
+
# More comprehensive error handling
|
78 |
+
pass
|
79 |
+
|
80 |
+
# If no formula is selected or there was an error, use the default comprehensive instructions
|
81 |
+
base_instruction = """
|
82 |
+
INSTRUCTIONS FOR CREATING AN IRRESISTIBLE OFFER:
|
83 |
+
|
84 |
+
You are an expert in copywriting and persuasive marketing, specialized in creating offers that deeply connect with the avatar and generate conversions.
|
85 |
+
|
86 |
+
OBJECTIVE:
|
87 |
+
- Create a powerful and persuasive main offer in English
|
88 |
+
- Connect emotionally with the avatar
|
89 |
+
- Present a clear and desirable transformation
|
90 |
+
- Position the product/service as the ideal solution
|
91 |
+
- Use natural and conversational language
|
92 |
+
"""
|
93 |
+
|
94 |
+
# Combine base instruction with avatar analysis
|
95 |
+
return f"{avatar_analysis}\n\n{base_instruction}"
|
prompts.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
from formulas import offer_formulas
|
2 |
from sophistication.generator import create_sophistication_instruction
|
|
|
3 |
|
4 |
offer_system_prompt = """You are a world-class expert copywriter, experienced in creating compelling offers that connect emotionally with the target audience.
|
5 |
|
@@ -41,10 +42,15 @@ def create_offer_instruction(target_audience=None, product_service=None, selecte
|
|
41 |
# Get the selected formula
|
42 |
selected_formula = offer_formulas[selected_formula_name]
|
43 |
|
44 |
-
# Get formula-specific instructions
|
45 |
additional_instructions = selected_formula.get("instructions", "")
|
46 |
|
47 |
-
#
|
|
|
|
|
|
|
|
|
|
|
48 |
instruction = f"""{offer_system_prompt}
|
49 |
|
50 |
FORMULA TO USE:
|
@@ -58,6 +64,9 @@ PRODUCT/SERVICE:
|
|
58 |
TARGET AUDIENCE:
|
59 |
{target_audience}
|
60 |
|
|
|
|
|
|
|
61 |
ADDITIONAL INFORMATION:
|
62 |
{file_content}
|
63 |
|
|
|
1 |
from formulas import offer_formulas
|
2 |
from sophistication.generator import create_sophistication_instruction
|
3 |
+
from avatar_analysis import analyze_avatar
|
4 |
|
5 |
offer_system_prompt = """You are a world-class expert copywriter, experienced in creating compelling offers that connect emotionally with the target audience.
|
6 |
|
|
|
42 |
# Get the selected formula
|
43 |
selected_formula = offer_formulas[selected_formula_name]
|
44 |
|
45 |
+
# Get formula-specific instructions
|
46 |
additional_instructions = selected_formula.get("instructions", "")
|
47 |
|
48 |
+
# Process avatar analysis if target_audience is provided
|
49 |
+
avatar_insights = ""
|
50 |
+
if target_audience:
|
51 |
+
avatar_insights = analyze_avatar(target_audience) # This would call your avatar analysis function
|
52 |
+
|
53 |
+
# Create the base instruction with avatar insights
|
54 |
instruction = f"""{offer_system_prompt}
|
55 |
|
56 |
FORMULA TO USE:
|
|
|
64 |
TARGET AUDIENCE:
|
65 |
{target_audience}
|
66 |
|
67 |
+
AVATAR ANALYSIS:
|
68 |
+
{avatar_insights}
|
69 |
+
|
70 |
ADDITIONAL INFORMATION:
|
71 |
{file_content}
|
72 |
|