Spaces:
Running
Running
Update prompts.py
Browse files- prompts.py +117 -68
prompts.py
CHANGED
@@ -5,20 +5,22 @@ offer_system_prompt = """You are a world-class expert copywriter, experienced in
|
|
5 |
|
6 |
OBJECTIVE:
|
7 |
- Generate 3 COMPLETELY DIFFERENT versions of a convincing offer in Spanish
|
8 |
-
-
|
9 |
-
-
|
10 |
-
-
|
11 |
|
12 |
CRITICAL OUTPUT RULES:
|
13 |
-
- Create 3
|
14 |
-
- Each version
|
15 |
-
- Ensure NO repetition of key phrases or selling points between versions
|
16 |
- Number each version clearly as "VERSI脫N 1:", "VERSI脫N 2:", and "VERSI脫N 3:"
|
17 |
-
-
|
18 |
-
- Output ONLY the offers themselves with NO introductory text, explanations, or additional commentary
|
19 |
- Start each version directly with its corresponding formula structure
|
20 |
-
- Do not include phrases like "Aqu铆 tienes una oferta convincente" or "Esta es tu oferta"
|
21 |
- Present all 3 versions one after another, clearly separated
|
|
|
|
|
|
|
|
|
|
|
22 |
"""
|
23 |
|
24 |
def create_offer_instruction(target_audience=None, product_service=None, selected_formula_name=None, file_content=None, skills=None, sophistication_level=None):
|
@@ -107,69 +109,116 @@ Create a compelling offer following the formula structure exactly, adapting it t
|
|
107 |
instruction += f"\n\nGet inspired by these examples:\n{examples_text}"
|
108 |
|
109 |
# Add sophistication level guidance using the dedicated function
|
110 |
-
if sophistication_level
|
111 |
-
# Get basic sophistication guidance
|
112 |
-
base_sophistication_guidance = create_sophistication_instruction(sophistication_level)
|
113 |
-
|
114 |
-
# Add formula-specific guidance for Nivel 1
|
115 |
-
formula_specific_guidance = f"\n\nFor this Level 1 market sophistication:\n- Make the hook educational or introduce the concept as new\n- Keep the promise direct, clear and impactful without comparisons\n- Focus on explaining what it is and how it works\n- Avoid complicated mechanisms or advanced explanations\n- Present the solution as if it's the first of its kind"
|
116 |
-
|
117 |
-
# Combine the base guidance with formula-specific guidance
|
118 |
-
instruction += f"\n\nMARKET SOPHISTICATION GUIDANCE:\n{base_sophistication_guidance}{formula_specific_guidance}\n\nEnsure the entire offer maintains consistency with this Level 1 sophistication while following the formula structure."
|
119 |
-
elif sophistication_level and sophistication_level == "Nivel 2: Competencia aparece con la misma promesa":
|
120 |
-
# Get basic sophistication guidance
|
121 |
-
base_sophistication_guidance = create_sophistication_instruction(sophistication_level)
|
122 |
-
|
123 |
-
# Add formula-specific guidance for Nivel 2
|
124 |
-
formula_specific_guidance = f"\n\nFor this Level 2 market sophistication:\n- Make the hook acknowledge that the solution exists but position yours as better\n- Add quantitative or qualitative differentiators to your promise (faster, easier, cheaper, more effective)\n- Include specific numbers or percentages when possible to strengthen your claims\n- Compare your solution favorably to alternatives without naming competitors\n- Focus on what makes your solution stand out from others in the market"
|
125 |
-
|
126 |
-
# Combine the base guidance with formula-specific guidance
|
127 |
-
instruction += f"\n\nMARKET SOPHISTICATION GUIDANCE:\n{base_sophistication_guidance}{formula_specific_guidance}\n\nEnsure the entire offer maintains consistency with this Level 2 sophistication while following the formula structure."
|
128 |
-
elif sophistication_level and sophistication_level == "Nivel 3: Mercado saturado de la misma promesa":
|
129 |
-
# Get basic sophistication guidance
|
130 |
-
base_sophistication_guidance = create_sophistication_instruction(sophistication_level)
|
131 |
-
|
132 |
-
# Add formula-specific guidance for Nivel 3
|
133 |
-
formula_specific_guidance = f"\n\nFor this Level 3 market sophistication:\n- Make the hook acknowledge market saturation and introduce a unique angle\n- Focus on a specific mechanism, method, or system that makes your solution different\n- Emphasize HOW your solution works, not just what it does\n- Introduce proprietary terminology or branded concepts\n- Present a new approach to solving the same problem\n- Highlight a unique feature or process that competitors don't have"
|
134 |
-
|
135 |
-
# Combine the base guidance with formula-specific guidance
|
136 |
-
instruction += f"\n\nMARKET SOPHISTICATION GUIDANCE:\n{base_sophistication_guidance}{formula_specific_guidance}\n\nEnsure the entire offer maintains consistency with this Level 3 sophistication while following the formula structure."
|
137 |
-
elif sophistication_level and sophistication_level == "Nivel 4: Mercado esc茅ptico y desconfiado":
|
138 |
-
# Get basic sophistication guidance
|
139 |
-
base_sophistication_guidance = create_sophistication_instruction(sophistication_level)
|
140 |
-
|
141 |
-
# Add formula-specific guidance for Nivel 4
|
142 |
-
formula_specific_guidance = f"\n\nFor this Level 4 market sophistication:\n- Make the hook directly challenge established beliefs with a provocative tone\n- Include specific research, verifiable data, and concrete evidence\n- Reference exact numbers, studies, or expert endorsements\n- Address deep objections that a skeptical audience would have\n- Add elements of exclusivity or limited access\n- Use language that makes the customer feel part of a select group\n- Highlight tangible and diversified results in multiple areas\n- Provide guarantees backed by concrete evidence\n- Use a tone that encourages immediate action"
|
143 |
-
|
144 |
-
# Combine the base guidance with formula-specific guidance
|
145 |
-
instruction += f"\n\nMARKET SOPHISTICATION GUIDANCE:\n{base_sophistication_guidance}{formula_specific_guidance}\n\nEnsure the entire offer maintains consistency with this Level 4 sophistication while following the formula structure."
|
146 |
-
elif sophistication_level and sophistication_level == "Nivel 5: Mercado insensibilizado y hastiado":
|
147 |
-
# Get basic sophistication guidance
|
148 |
-
base_sophistication_guidance = create_sophistication_instruction(sophistication_level)
|
149 |
-
|
150 |
-
# Add formula-specific guidance for Nivel 5
|
151 |
-
formula_specific_guidance = f"\n\nFor this Level 5 market sophistication:\n- Focus on emotional connection and values rather than product features\n- Convey a purpose or philosophy that resonates with the audience\n- Use storytelling that creates identity and belonging\n- Minimize direct selling or product mentions\n- Emphasize lifestyle and emotional experience\n- Use inspirational tone that transcends the product category\n- Focus on transformation of identity, not just results\n- Invite the audience to join a movement or philosophy\n- Use language that empowers and elevates the customer\n- Emphasize the journey and emotional transformation"
|
152 |
-
|
153 |
-
# Combine the base guidance with formula-specific guidance
|
154 |
-
instruction += f"\n\nMARKET SOPHISTICATION GUIDANCE:\n{base_sophistication_guidance}{formula_specific_guidance}\n\nEnsure the entire offer maintains consistency with this Level 5 sophistication while following the formula structure."
|
155 |
-
elif sophistication_level:
|
156 |
-
# Original code for other sophistication levels
|
157 |
# Get basic sophistication guidance
|
158 |
base_sophistication_guidance = create_sophistication_instruction(sophistication_level)
|
159 |
|
160 |
-
#
|
161 |
formula_specific_guidance = ""
|
|
|
162 |
|
163 |
-
# Apply conditional logic based on formula name
|
164 |
if selected_formula_name == "Oferta Dorada":
|
165 |
-
formula_specific_guidance = f"
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
|
175 |
-
return instruction
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
OBJECTIVE:
|
7 |
- Generate 3 COMPLETELY DIFFERENT versions of a convincing offer in Spanish
|
8 |
+
- Each version must be CLEAR, CONCISE and FOCUSED on a SINGLE transformation
|
9 |
+
- Connect emotionally with the audience's core desire
|
10 |
+
- Use natural and conversational language
|
11 |
|
12 |
CRITICAL OUTPUT RULES:
|
13 |
+
- Create 3 DISTINCT versions with different angles and emotional appeals
|
14 |
+
- Each version must focus on ONE problem/vision, ONE transformation, and ONE proof element
|
|
|
15 |
- Number each version clearly as "VERSI脫N 1:", "VERSI脫N 2:", and "VERSI脫N 3:"
|
16 |
+
- Output ONLY the offers themselves with NO explanations or commentary
|
|
|
17 |
- Start each version directly with its corresponding formula structure
|
|
|
18 |
- Present all 3 versions one after another, clearly separated
|
19 |
+
|
20 |
+
FORMULA-SPECIFIC FOCUS:
|
21 |
+
1. Oferta Dorada: ONE specific problem, ONE clear transformation, ONE proof element
|
22 |
+
2. Contraste Revelador: ONE inspiring vision, ONE transformative solution, ONE emotional result
|
23 |
+
3. Propuesta 脷nica de Valor: ONE powerful transformation, ONE emotional objection handler
|
24 |
"""
|
25 |
|
26 |
def create_offer_instruction(target_audience=None, product_service=None, selected_formula_name=None, file_content=None, skills=None, sophistication_level=None):
|
|
|
109 |
instruction += f"\n\nGet inspired by these examples:\n{examples_text}"
|
110 |
|
111 |
# Add sophistication level guidance using the dedicated function
|
112 |
+
if sophistication_level:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
# Get basic sophistication guidance
|
114 |
base_sophistication_guidance = create_sophistication_instruction(sophistication_level)
|
115 |
|
116 |
+
# Create concise formula-specific guidance based on sophistication level
|
117 |
formula_specific_guidance = ""
|
118 |
+
level_num = sophistication_level.split(":")[0].replace("Nivel ", "")
|
119 |
|
|
|
120 |
if selected_formula_name == "Oferta Dorada":
|
121 |
+
formula_specific_guidance = f"""
|
122 |
+
For Oferta Dorada (Nivel {level_num}):
|
123 |
+
- Headline: {get_headline_guidance(level_num)}
|
124 |
+
- Promise: {get_promise_guidance(level_num)}
|
125 |
+
- Subtitle: {get_subtitle_guidance(level_num)}"""
|
126 |
+
|
127 |
+
elif selected_formula_name == "Contraste Revelador":
|
128 |
+
formula_specific_guidance = f"""
|
129 |
+
For Contraste Revelador (Nivel {level_num}):
|
130 |
+
- Visi贸n: {get_vision_guidance(level_num)}
|
131 |
+
- Soluci贸n: {get_solution_guidance(level_num)}
|
132 |
+
- Resultado: {get_result_guidance(level_num)}"""
|
133 |
+
|
134 |
+
elif selected_formula_name == "Propuesta 脷nica de Valor":
|
135 |
+
formula_specific_guidance = f"""
|
136 |
+
For Propuesta 脷nica de Valor (Nivel {level_num}):
|
137 |
+
- Transformaci贸n: {get_transformation_guidance(level_num)}
|
138 |
+
- Objeciones: {get_objection_guidance(level_num)}"""
|
139 |
+
|
140 |
+
# Add the concise guidance to the instruction
|
141 |
+
instruction += f"\n\nSOPHISTICATION GUIDANCE (NIVEL {level_num}):{formula_specific_guidance}"
|
142 |
|
143 |
+
return instruction
|
144 |
+
|
145 |
+
# Helper functions for concise sophistication guidance
|
146 |
+
def get_headline_guidance(level):
|
147 |
+
guidance = {
|
148 |
+
"1": "Educational, introduce the concept as new",
|
149 |
+
"2": "Differentiate from competitors, add specific benefits",
|
150 |
+
"3": "Highlight unique mechanism or approach",
|
151 |
+
"4": "Use data, research or challenge beliefs",
|
152 |
+
"5": "Focus on identity and emotional transformation"
|
153 |
+
}
|
154 |
+
return guidance.get(level, "Match market awareness level")
|
155 |
+
|
156 |
+
def get_promise_guidance(level):
|
157 |
+
guidance = {
|
158 |
+
"1": "Direct and clear benefit without comparisons",
|
159 |
+
"2": "Quantified benefit with specific advantage",
|
160 |
+
"3": "Unique mechanism or proprietary method",
|
161 |
+
"4": "Evidence-backed transformation with specifics",
|
162 |
+
"5": "Identity shift and deeper meaning beyond results"
|
163 |
+
}
|
164 |
+
return guidance.get(level, "Focus on transformation")
|
165 |
+
|
166 |
+
def get_subtitle_guidance(level):
|
167 |
+
guidance = {
|
168 |
+
"1": "Simple proof with basic numbers",
|
169 |
+
"2": "Comparative results with timeframes",
|
170 |
+
"3": "Specific mechanism results with details",
|
171 |
+
"4": "Research-backed evidence and guarantees",
|
172 |
+
"5": "Community and movement-based validation"
|
173 |
+
}
|
174 |
+
return guidance.get(level, "Provide appropriate proof")
|
175 |
+
|
176 |
+
def get_vision_guidance(level):
|
177 |
+
guidance = {
|
178 |
+
"1": "Simple, aspirational future state",
|
179 |
+
"2": "Specific vision with clear advantages",
|
180 |
+
"3": "Unique approach to achieving desires",
|
181 |
+
"4": "Evidence-based optimal state",
|
182 |
+
"5": "Transcendent vision beyond conventional goals"
|
183 |
+
}
|
184 |
+
return guidance.get(level, "Create inspiring vision")
|
185 |
+
|
186 |
+
def get_solution_guidance(level):
|
187 |
+
guidance = {
|
188 |
+
"1": "Clear, straightforward solution",
|
189 |
+
"2": "Solution with specific advantages",
|
190 |
+
"3": "Unique mechanism or proprietary method",
|
191 |
+
"4": "Validated solution with research backing",
|
192 |
+
"5": "Paradigm-shifting approach"
|
193 |
+
}
|
194 |
+
return guidance.get(level, "Offer transformative solution")
|
195 |
+
|
196 |
+
def get_result_guidance(level):
|
197 |
+
guidance = {
|
198 |
+
"1": "Simple emotional outcome with basic proof",
|
199 |
+
"2": "Specific results with comparative advantages",
|
200 |
+
"3": "Detailed outcomes from unique approach",
|
201 |
+
"4": "Evidence-backed results with specifics",
|
202 |
+
"5": "Identity-level transformation stories"
|
203 |
+
}
|
204 |
+
return guidance.get(level, "Show emotional transformation")
|
205 |
+
|
206 |
+
def get_transformation_guidance(level):
|
207 |
+
guidance = {
|
208 |
+
"1": "Clear, direct transformation",
|
209 |
+
"2": "Specific, quantified transformation",
|
210 |
+
"3": "Unique mechanism transformation",
|
211 |
+
"4": "Evidence-backed, validated transformation",
|
212 |
+
"5": "Identity-level, paradigm-shifting transformation"
|
213 |
+
}
|
214 |
+
return guidance.get(level, "Focus on key transformation")
|
215 |
+
|
216 |
+
def get_objection_guidance(level):
|
217 |
+
guidance = {
|
218 |
+
"1": "Address basic concerns simply",
|
219 |
+
"2": "Counter specific objections with advantages",
|
220 |
+
"3": "Handle objections with unique approach",
|
221 |
+
"4": "Evidence-based objection handling",
|
222 |
+
"5": "Transform objections into strengths"
|
223 |
+
}
|
224 |
+
return guidance.get(level, "Handle emotional objections")
|