JeCabrera commited on
Commit
e9bb6a9
·
verified ·
1 Parent(s): e03d5ba

Update bullets/generator.py

Browse files
Files changed (1) hide show
  1. bullets/generator.py +108 -67
bullets/generator.py CHANGED
@@ -1,67 +1,108 @@
1
- def create_bullet_instruction():
2
- """
3
- Creates the instruction for generating benefit bullets.
4
-
5
- Returns:
6
- str: The complete instruction for generating bullets
7
- """
8
- bullet_points_instruction = """
9
- IMPORTANT: After creating the main offer, add a section with 5 powerful benefit bullets that reinforce the promise.
10
-
11
- Start the bullets section with an introduction like:
12
- "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:"
13
-
14
- For the benefit bullets section:
15
-
16
- 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.
17
-
18
- OBJECTIVE:
19
- - Generate 5 convincing and specific benefit bullets in Spanish
20
- - Connect emotionally with the audience
21
- - Address real desires, problems, and motivations
22
- - Maintain natural and conversational language
23
- - Orient each benefit towards action
24
-
25
- FORMAT RULES:
26
- - Each benefit must start with "• "
27
- - One benefit per line
28
- - No numbers at the beginning
29
- - No explanations or categories
30
- - Add a line break between each benefit
31
- - Never include : symbols in bullets
32
- - Never use exclamation marks (!) in any bullet
33
- - Each benefit must be a complete and concise phrase
34
- - Do not use any emojis in the bullets
35
- - Use natural, conversational language (avoid formal or technical jargon)
36
-
37
- BENEFIT STRUCTURE:
38
- - Must be relevant to target audience
39
- - Must show a specific result
40
- - Must include an emotional element
41
- - Must eliminate an objection or pain point
42
- - Must inspire immediate action
43
-
44
- EXAMPLE FORMAT:
45
- Además, al aprovechar esta oferta también obtendrás:
46
-
47
- Transforma tu negocio con estrategias probadas que duplican tus ingresos en 90 días, sin sacrificar tu tiempo en familia.
48
-
49
- • Domina las técnicas más efectivas para conquistar tu mercado, mientras mantienes el equilibrio entre trabajo y vida personal.
50
-
51
- Implementa sistemas automatizados que hacen crecer tu empresa incluso mientras duermes, eliminando la necesidad de trabajar más horas.
52
-
53
- • Elimina la ansiedad de las ventas con un proceso estructurado y predecible que funciona incluso cuando duermes.
54
-
55
- Transforma tu mentalidad de "vendedor insistente" a "asesor de confianza" que los clientes buscan y recomiendan.
56
-
57
- IMPORTANT:
58
- - Each benefit must be unique and specific
59
- - Avoid repetitions and generalities
60
- - Maintain a persuasive but honest tone
61
- - Adapt language to audience comprehension level
62
- - Focus on tangible and measurable results
63
- - Do not use emojis anywhere in the bullets
64
- - Write in a natural, conversational tone as if speaking directly to the reader
65
- - Never use exclamation marks in the bullets
66
- """
67
- return bullet_points_instruction
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ def create_bullet_instruction():
2
+ """
3
+ Creates the instruction for generating benefit bullets.
4
+ The model will randomly choose between different bullet formulas.
5
+
6
+ Returns:
7
+ str: The complete instruction for generating bullets
8
+ """
9
+ # Base instruction that applies to all formulas
10
+ base_instruction = """
11
+ IMPORTANT: After creating the main offer, add a section with 5 powerful benefit bullets that reinforce the promise.
12
+
13
+ Start the bullets section with an introduction like:
14
+ "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:"
15
+
16
+ For the benefit bullets section:
17
+
18
+ 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.
19
+
20
+ OBJECTIVE:
21
+ - Generate 5 convincing and specific benefit bullets in Spanish
22
+ - Connect emotionally with the audience
23
+ - Address real desires, problems, and motivations
24
+ - Maintain natural and conversational language
25
+ - Orient each benefit towards action
26
+
27
+ FORMAT RULES:
28
+ - Each benefit must start with "• "
29
+ - One benefit per line
30
+ - No numbers at the beginning
31
+ - No explanations or categories
32
+ - Add a line break between each benefit
33
+ - Never include : symbols in bullets
34
+ - Never use exclamation marks (!) in any bullet
35
+ - Each benefit must be a complete and concise phrase
36
+ - Do not use any emojis in the bullets
37
+ - Use natural, conversational language (avoid formal or technical jargon)
38
+
39
+ IMPORTANT:
40
+ - Each benefit must be unique and specific
41
+ - Avoid repetitions and generalities
42
+ - Maintain a persuasive but honest tone
43
+ - Adapt language to audience comprehension level
44
+ - Focus on tangible and measurable results
45
+ - Do not use emojis anywhere in the bullets
46
+ - Write in a natural, conversational tone as if speaking directly to the reader
47
+ - Never use exclamation marks in the bullets
48
+ """
49
+
50
+ # Multiple formula instructions
51
+ formula_instructions = """
52
+ IMPORTANT: Choose ONE of the following bullet formulas at random and use it consistently for ALL 5 bullets:
53
+
54
+ FORMULA 1 - STANDARD BENEFIT:
55
+ - Must be relevant to target audience
56
+ - Must show a specific result
57
+ - Must include an emotional element
58
+ - Must eliminate an objection or pain point
59
+ - Must inspire immediate action
60
+
61
+ EXAMPLE FORMAT FOR FORMULA 1:
62
+ •Transforma tu negocio con estrategias probadas que duplican tus ingresos en 90 días, sin sacrificar tu tiempo en familia.
63
+
64
+ FORMULA 2 - 3 EN 1 (FEATURE + BENEFIT + MEANING):
65
+ Formula: [Feature + Benefit + Meaning]
66
+
67
+ This formula creates an instant connection by linking three key elements:
68
+ 1. Feature: The main characteristic or aspect of your offer
69
+ 2. Benefit: What it allows the user to achieve or obtain
70
+ 3. Meaning: The deeper impact or transformation in their life
71
+
72
+ Instructions for Creating Connection Bullets:
73
+ 1. Identify Your Core Feature:
74
+ - What makes your offer unique?
75
+ - What's the main characteristic?
76
+ - What's the standout element?
77
+
78
+ 2. Transform into Benefits:
79
+ - How does this feature help them?
80
+ - What can they achieve with it?
81
+ - What becomes possible?
82
+
83
+ 3. Add Deeper Meaning:
84
+ - How does it transform their life?
85
+ - What's the emotional impact?
86
+ - What does it mean for their identity?
87
+
88
+ Structure Formats:
89
+ 1. "[Feature] para que puedas [Benefit] con lo que [Meaning]"
90
+ 2. "Con [Feature] podrás [Benefit] permitiéndote [Meaning]"
91
+ 3. "Gracias a [Feature] lograrás [Benefit] haciendo que [Meaning]"
92
+ 4. "Mediante [Feature] conseguirás [Benefit] lo que significa [Meaning]"
93
+ 5. "Usando [Feature] alcanzarás [Benefit] transformando [Meaning]"
94
+
95
+ EXAMPLES FOR FORMULA 2:
96
+ • El Sistema de meditación guiada para que puedas alcanzar la paz mental con lo que por fin dejarás de sentirte abrumado por el caos diario.
97
+ • Con nuestro algoritmo de enfoque profundo podrás duplicar tu productividad permitiéndote disfrutar más tiempo con quienes amas.
98
+ • Gracias a nuestra tecnología de reprogramación mental lograrás superar tus miedos haciendo que te sientas invencible ante cualquier reto.
99
+ • Mediante nuestro framework de creatividad conseguirás ideas brillantes lo que significa que nunca más te quedarás en blanco.
100
+ • Usando nuestro sistema de automatización mental alcanzarás el estado de flow transformando cada tarea en una experiencia placentera.
101
+
102
+ Remember to choose just ONE formula and apply it consistently to all 5 bullets.
103
+ """
104
+
105
+ # Combine base instruction with formula instructions
106
+ complete_instruction = base_instruction + formula_instructions
107
+
108
+ return complete_instruction