Spaces:
Sleeping
Sleeping
Update bullets/generator.py
Browse files- 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 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
-
|
| 22 |
-
-
|
| 23 |
-
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
-
|
| 29 |
-
-
|
| 30 |
-
-
|
| 31 |
-
-
|
| 32 |
-
-
|
| 33 |
-
-
|
| 34 |
-
-
|
| 35 |
-
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
-
|
| 41 |
-
-
|
| 42 |
-
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
-
|
| 59 |
-
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|