Spaces:
Sleeping
Sleeping
Update formulas.py
Browse files- 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.
|
33 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
- Target audience description (avatar_description)
|
35 |
-
- Content from uploaded files
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
-
|
46 |
-
|
47 |
-
|
48 |
-
|
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 |
-
-
|
65 |
|
66 |
-
|
67 |
-
- Real problems mentioned in
|
68 |
-
- Challenges
|
69 |
-
- Visual pain points shown in images (if applicable)
|
70 |
|
71 |
-
|
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..."
|