JeCabrera commited on
Commit
5488a1b
·
verified ·
1 Parent(s): d69b083

Update formulas.py

Browse files
Files changed (1) hide show
  1. formulas.py +35 -0
formulas.py CHANGED
@@ -25,6 +25,7 @@ def create_offer_instruction(avatar_description, product_name, selected_formula_
25
 
26
  # Add specific instructions for Sueño-Obstáculo formula
27
  # Add specific instructions for handling uploaded content
 
28
  additional_instructions = ""
29
  if selected_formula_name == "Fórmula Sueño-Obstáculo":
30
  additional_instructions = """
@@ -81,6 +82,40 @@ SPECIFIC INSTRUCTIONS FOR THIS FORMULA:
81
  - The entire response should be ONLY the offer itself
82
  """
83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  # Create the instruction
85
  instruction = f"""
86
  You are a world-class expert copywriter, experienced in creating compelling offers that connect emotionally with the target audience.
 
25
 
26
  # Add specific instructions for Sueño-Obstáculo formula
27
  # Add specific instructions for handling uploaded content
28
+ # Add specific instructions for each formula
29
  additional_instructions = ""
30
  if selected_formula_name == "Fórmula Sueño-Obstáculo":
31
  additional_instructions = """
 
82
  - The entire response should be ONLY the offer itself
83
  """
84
 
85
+ elif selected_formula_name == "Oferta Dorada":
86
+ additional_instructions = """
87
+ SPECIFIC INSTRUCTIONS FOR THIS FORMULA:
88
+ 1. ATTENTION HOOK HANDLING:
89
+ - Analyze the avatar_description carefully to understand their pain points, frustrations, and desires
90
+ - Select a powerful attention hook that directly connects with the avatar's current reality
91
+ - Choose randomly from different hook formats (questions, statistics, shocking statements, etc.)
92
+ - CUSTOMIZE the hook specifically for this avatar - don't use generic examples
93
+
94
+ 2. Analyze ALL available information:
95
+ - Target audience description (avatar_description)
96
+ - Product/service name (product_name variable)
97
+ - Content from uploaded files (if any)
98
+
99
+ 3. Create a compelling QUANTIFIABLE PROMISE that:
100
+ - Is written COMPLETELY IN CAPITAL LETTERS
101
+ - Includes concrete numbers (money, time, results)
102
+ - Uses powerful action verbs (EARN, MULTIPLY, ACHIEVE, MASTER)
103
+ - Specifies the exact result they will obtain
104
+ - Optionally includes time or effort required
105
+ - NEVER uses exclamation marks (!)
106
+
107
+ 4. Craft a benefit statement that:
108
+ - Clearly explains the result they will obtain
109
+ - Includes an authority element (proven method, studies, experience)
110
+ - Establishes a realistic timeframe or effort needed
111
+
112
+ 5. CRITICAL: Output ONLY the offer itself with NO introductory text, explanations, or additional commentary.
113
+ - DO NOT include phrases like "Aquí tienes una oferta convincente" or "Esta es tu oferta"
114
+ - DO NOT include any text before or after the offer
115
+ - Start directly with the attention hook
116
+ - The entire response should be ONLY the offer itself following the formula structure
117
+ """
118
+
119
  # Create the instruction
120
  instruction = f"""
121
  You are a world-class expert copywriter, experienced in creating compelling offers that connect emotionally with the target audience.