Spaces:
Sleeping
Sleeping
Update prompts.py
Browse files- prompts.py +21 -24
prompts.py
CHANGED
@@ -16,9 +16,6 @@ CRITICAL OUTPUT RULES:
|
|
16 |
- Do not include phrases like "Aquí tienes una oferta convincente" or "Esta es tu oferta"
|
17 |
"""
|
18 |
|
19 |
-
# Remove the circular import
|
20 |
-
# from formulas import offer_formulas
|
21 |
-
|
22 |
def create_offer_instruction(avatar_description, product_name, selected_formula_name, offer_formulas=None):
|
23 |
"""
|
24 |
Creates instructions for generating an offer based on the selected formula.
|
@@ -139,41 +136,41 @@ Create a compelling offer following the formula structure exactly.
|
|
139 |
|
140 |
return instruction
|
141 |
|
142 |
-
# System prompt for
|
143 |
-
system_prompt = """You are a world-class expert copywriter, experienced in creating
|
144 |
|
145 |
OBJECTIVE:
|
146 |
-
- Generate convincing and specific
|
147 |
- Connect emotionally with the audience
|
148 |
- Address real desires, problems, and motivations
|
149 |
- Maintain natural and conversational language
|
150 |
-
- Orient each
|
151 |
|
152 |
FORMAT RULES:
|
153 |
-
- Each
|
154 |
-
- One
|
155 |
- No numbers at the beginning
|
156 |
- No explanations or categories
|
157 |
-
- Add a line break between each
|
158 |
-
- Never include : symbols in
|
159 |
-
- Each
|
160 |
|
161 |
-
|
162 |
- Must be relevant to target audience
|
163 |
-
- Must show a specific result
|
164 |
- Must include an emotional element
|
165 |
- Must eliminate an objection or pain point
|
166 |
-
- Must inspire immediate action
|
167 |
|
168 |
EJEMPLO DE FORMATO:
|
169 |
-
•
|
170 |
|
171 |
-
•
|
172 |
|
173 |
-
•
|
174 |
|
175 |
IMPORTANT:
|
176 |
-
- Each
|
177 |
- Avoid repetitions and generalities
|
178 |
- Maintain a persuasive but honest tone
|
179 |
- Adapt language to audience comprehension level
|
@@ -187,15 +184,15 @@ def create_instruction(number_of_benefits, target_audience, product, selected_fo
|
|
187 |
|
188 |
return (
|
189 |
f"{system_prompt}\n\n"
|
190 |
-
f"Your task is to create {number_of_benefits} irresistible
|
191 |
-
f"The goal is to show how {product}
|
192 |
-
f"Avoid using literal or repetitive mentions, and highlight concrete
|
193 |
f"{angle_instruction}\n"
|
194 |
-
f"IMPORTANT: Keep
|
195 |
f"Use the selected formula as a guide:\n\n{selected_formula['description']}\n\n"
|
196 |
f"Get inspired by these examples:\n"
|
197 |
f"- {selected_formula['examples'][0]}\n"
|
198 |
f"- {selected_formula['examples'][1]}\n"
|
199 |
f"- {selected_formula['examples'][2]}\n\n"
|
200 |
-
f"Your goal is to inspire
|
201 |
)
|
|
|
16 |
- Do not include phrases like "Aquí tienes una oferta convincente" or "Esta es tu oferta"
|
17 |
"""
|
18 |
|
|
|
|
|
|
|
19 |
def create_offer_instruction(avatar_description, product_name, selected_formula_name, offer_formulas=None):
|
20 |
"""
|
21 |
Creates instructions for generating an offer based on the selected formula.
|
|
|
136 |
|
137 |
return instruction
|
138 |
|
139 |
+
# System prompt for promises generation (updated from benefits)
|
140 |
+
system_prompt = """You are a world-class expert copywriter, experienced in creating compelling promises that emotionally connect and address the desires, problems, and motivations of the target audience.
|
141 |
|
142 |
OBJECTIVE:
|
143 |
+
- Generate convincing and specific promise statements in Spanish
|
144 |
- Connect emotionally with the audience
|
145 |
- Address real desires, problems, and motivations
|
146 |
- Maintain natural and conversational language
|
147 |
+
- Orient each promise towards transformation and results
|
148 |
|
149 |
FORMAT RULES:
|
150 |
+
- Each promise must start with "• "
|
151 |
+
- One promise per line
|
152 |
- No numbers at the beginning
|
153 |
- No explanations or categories
|
154 |
+
- Add a line break between each promise
|
155 |
+
- Never include : symbols in promises
|
156 |
+
- Each promise must be a complete and concise phrase
|
157 |
|
158 |
+
PROMISE STRUCTURE:
|
159 |
- Must be relevant to target audience
|
160 |
+
- Must show a specific, measurable result
|
161 |
- Must include an emotional element
|
162 |
- Must eliminate an objection or pain point
|
163 |
+
- Must inspire immediate action or belief
|
164 |
|
165 |
EJEMPLO DE FORMATO:
|
166 |
+
• Te garantizamos duplicar tus ingresos en 90 días, sin sacrificar tu tiempo en familia, gracias a nuestras estrategias probadas.
|
167 |
|
168 |
+
• Conquistarás tu mercado con técnicas efectivas que te posicionan como autoridad, mientras mantienes el equilibrio entre trabajo y vida personal.
|
169 |
|
170 |
+
• Verás crecer tu empresa incluso mientras duermes con nuestros sistemas automatizados, eliminando la necesidad de trabajar más horas.
|
171 |
|
172 |
IMPORTANT:
|
173 |
+
- Each promise must be unique, specific and believable
|
174 |
- Avoid repetitions and generalities
|
175 |
- Maintain a persuasive but honest tone
|
176 |
- Adapt language to audience comprehension level
|
|
|
184 |
|
185 |
return (
|
186 |
f"{system_prompt}\n\n"
|
187 |
+
f"Your task is to create {number_of_benefits} irresistible promises designed for {target_audience}. "
|
188 |
+
f"The goal is to show how {product} will transform the reader's life, connecting naturally and emotionally. "
|
189 |
+
f"Avoid using literal or repetitive mentions, and highlight concrete results, showing how the product delivers specific outcomes or satisfies real desires. "
|
190 |
f"{angle_instruction}\n"
|
191 |
+
f"IMPORTANT: Keep promises clear, specific and credible. "
|
192 |
f"Use the selected formula as a guide:\n\n{selected_formula['description']}\n\n"
|
193 |
f"Get inspired by these examples:\n"
|
194 |
f"- {selected_formula['examples'][0]}\n"
|
195 |
f"- {selected_formula['examples'][1]}\n"
|
196 |
f"- {selected_formula['examples'][2]}\n\n"
|
197 |
+
f"Your goal is to inspire confidence and action, avoiding explanations or categories in the response."
|
198 |
)
|