JeCabrera commited on
Commit
62c4e98
·
verified ·
1 Parent(s): 92a34b8

Update formulas.py

Browse files
Files changed (1) hide show
  1. formulas.py +30 -36
formulas.py CHANGED
@@ -29,46 +29,40 @@ def create_offer_instruction(avatar_description, product_name, selected_formula_
29
  if selected_formula_name == "Fórmula Sueño-Obstáculo":
30
  additional_instructions = """
31
  SPECIFIC INSTRUCTIONS FOR THIS FORMULA:
32
- 1. Analyze ALL available information:
33
- - Product/service name (product_name variable)
 
 
 
 
 
 
 
 
 
34
  - Target audience description (avatar_description)
35
- - Content from uploaded files:
36
- * Text files (TXT, PDF, DOCX): Extract key information about the product/service and target audience
37
- * Images (JPG, JPEG, PNG): Analyze visual elements that provide context about the product or audience
38
-
39
- 2. When working with uploaded content:
40
- - For text files: Extract and incorporate relevant details about:
41
- * Product features and benefits
42
- * Target audience characteristics
43
- * Pain points and challenges
44
- * Desired outcomes
45
- - For images: Consider visual elements that might inform:
46
- * Product presentation
47
- * Target audience demographics
48
- * Context of use
49
- * Visual benefits or results
50
-
51
- 3. IMPORTANT: NEVER change the name of the product/service provided in product_name. Use it EXACTLY as written.
52
-
53
- 4. If product_name contains a full phrase like "Un curso llamado Inglés sin problemas", extract only the real name ("Inglés sin problemas") and keep that exact name.
54
-
55
- 5. Create a comprehensive offer by combining:
56
- - Information from the product_name
57
- - Details from avatar_description
58
- - Relevant content from uploaded files
59
- - Visual insights from uploaded images (if any)
60
-
61
- 6. The dream should be ambitious but believable, incorporating:
62
- - Explicit goals mentioned in uploaded content
63
  - Target audience desires from avatar_description
64
- - Visual aspirations shown in images (if applicable)
65
 
66
- 7. The obstacle should reflect:
67
- - Real problems mentioned in uploaded text
68
- - Challenges described in avatar_description
69
- - Visual pain points shown in images (if applicable)
70
 
71
- 8. IMPORTANT: Vary the way you start the phrase. Instead of always using "Se trata de un...", use different openings such as:
72
  - "Presentamos un..."
73
  - "Te ofrecemos un..."
74
  - "Descubre nuestro..."
 
29
  if selected_formula_name == "Fórmula Sueño-Obstáculo":
30
  additional_instructions = """
31
  SPECIFIC INSTRUCTIONS FOR THIS FORMULA:
32
+ 1. PRODUCT/SERVICE NAME HANDLING:
33
+ - If product_name is provided and not empty, use it EXACTLY as written
34
+ - If product_name is empty, generic (like "Producto/Servicio"), or contains placeholders, CREATE a compelling name that:
35
+ * Reflects the target audience's desires and challenges
36
+ * Communicates the main benefit or transformation
37
+ * Sounds professional and memorable
38
+ * Is specific to the niche or industry mentioned in avatar_description
39
+ - If product_name contains a full phrase like "Un curso llamado Inglés sin problemas", extract only the real name ("Inglés sin problemas")
40
+
41
+ 2. Analyze ALL available information:
42
+ - Product/service name (product_name variable) or create one if needed
43
  - Target audience description (avatar_description)
44
+ - Content from uploaded files (if any)
45
+
46
+ 3. Determine the most appropriate type (curso, webinar, entrenamiento, etc.) based on:
47
+ - Any type mentioned in product_name
48
+ - The nature of the solution described in avatar_description
49
+ - The most suitable format for the target audience's needs
50
+
51
+ 4. Create a comprehensive offer by combining:
52
+ - The appropriate type (determined in step 3)
53
+ - The exact product name (if provided) or your created name (if needed)
54
+ - A compelling dream based on avatar_description
55
+ - A relevant obstacle based on avatar_description
56
+
57
+ 5. The dream should be ambitious but believable, incorporating:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  - Target audience desires from avatar_description
59
+ - Explicit goals mentioned in uploaded content (if any)
60
 
61
+ 6. The obstacle should reflect:
62
+ - Real problems mentioned in avatar_description
63
+ - Challenges that would normally prevent achieving the dream
 
64
 
65
+ 7. IMPORTANT: Vary the way you start the phrase. Instead of always using "Se trata de un...", use different openings such as:
66
  - "Presentamos un..."
67
  - "Te ofrecemos un..."
68
  - "Descubre nuestro..."