JeCabrera commited on
Commit
b53d55e
·
verified ·
1 Parent(s): 0625c7b

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +4 -16
prompts.py CHANGED
@@ -17,28 +17,16 @@ CRITICAL OUTPUT RULES:
17
  - Do not add any characters that could trigger text box formatting
18
  """
19
 
20
- def create_offer_instruction(avatar_description, product_name, selected_formula_name):
21
  """
22
  Creates instructions for generating an offer based on the selected formula.
23
  """
24
  # Get the selected formula
25
  selected_formula = offer_formulas[selected_formula_name]
26
 
27
- # Get formula-specific instructions (empty string if not found)
28
  additional_instructions = selected_formula.get("instructions", "")
29
-
30
- # Add benefit-focused instructions for Oferta Dorada
31
- if selected_formula_name == "Oferta Dorada":
32
- benefit_focus = """
33
- IMPORTANT BENEFIT FOCUS:
34
- - In the third line, emphasize BENEFITS and RESULTS, not mechanisms or tools
35
- - Focus on what the audience will GAIN, not how the product works
36
- - Highlight transformative outcomes and specific results
37
- - If product name is provided, use it naturally without inventing features
38
- - If no product name is provided, use generic terms like "our method" or "this system"
39
- - NEVER invent product names or specific features not mentioned in the input
40
- """
41
- additional_instructions = benefit_focus + "\n\n" + additional_instructions
42
 
43
  # Create the base instruction
44
  instruction = f"""{offer_system_prompt}
@@ -52,7 +40,7 @@ PRODUCT/SERVICE:
52
  {product_name}
53
 
54
  TARGET AUDIENCE:
55
- {avatar_description}
56
 
57
  Create a compelling offer following the formula structure exactly.
58
  """
 
17
  - Do not add any characters that could trigger text box formatting
18
  """
19
 
20
+ def create_offer_instruction(target_audience, product_name, selected_formula_name):
21
  """
22
  Creates instructions for generating an offer based on the selected formula.
23
  """
24
  # Get the selected formula
25
  selected_formula = offer_formulas[selected_formula_name]
26
 
27
+ # Get formula-specific instructions and description (empty string if not found)
28
  additional_instructions = selected_formula.get("instructions", "")
29
+ additional_description = selected_formula.get("description", "")
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  # Create the base instruction
32
  instruction = f"""{offer_system_prompt}
 
40
  {product_name}
41
 
42
  TARGET AUDIENCE:
43
+ {target_audience}
44
 
45
  Create a compelling offer following the formula structure exactly.
46
  """