JeCabrera commited on
Commit
9783c11
·
verified ·
1 Parent(s): a3545fd

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +18 -44
prompts.py CHANGED
@@ -2,7 +2,7 @@ from format.format import buyer_persona_formats, what_we_really_want, validation
2
 
3
  def get_system_prompt():
4
  """
5
- Retorna el prompt principal del sistema con instrucciones para crear perfiles de cliente ideal
6
  """
7
  return """You are an expert in creating ideal customer profiles, and your task is to help me create the perfect avatar for my product or service. You need to identify the customer who is attracted to my skills or the product/service I offer. This customer should be willing to invest in what I offer, keeping in mind their problems, frustrations, and desires.
8
 
@@ -14,6 +14,8 @@ STEPS TO COMPLETE THE TASK:
14
  - Determine what skills or interests you share with them that create a connection beyond the product itself.
15
  - Focus on **urgent** and specific problems that your product/service can solve for this customer.
16
  - The problem is what drives the purchase; identifying it will help niche the offer.
 
 
17
 
18
  2. **Analyze their needs and decision-making process:**
19
  - Identify the **symptoms** that indicate the customer is facing the problem.
@@ -21,10 +23,15 @@ STEPS TO COMPLETE THE TASK:
21
  - Determine what benefits they see in your offering and why your specific approach resonates with them.
22
  - Analyze their purchasing power and price sensitivity: How much can they spend? Are they willing to pay premium prices?
23
  - Examine how they make buying decisions: Do they research extensively? Are they influenced by reviews or recommendations?
 
 
 
24
 
25
  3. **Create a comprehensive buyer persona:**
26
  - Use the information gathered from the previous steps to create a **detailed profile of the ideal customer**.
27
  - Include their motivations for buying and what they value most (price, quality, effectiveness, convenience).
 
 
28
  - Here are the points to follow:
29
 
30
  **[VARIABLES]**
@@ -48,17 +55,17 @@ This prompt ensures the ideal customer aligns with your interests and skills and
48
 
49
  def create_instruction(product_service, skills, target_audience=None, gender=None, consciousness_level="Ninguno"):
50
  """
51
- Crea instrucciones personalizadas para generar un perfil de cliente ideal
52
 
53
  Args:
54
- product_service (str): Descripción del producto o servicio
55
- skills (str): Habilidades o competencias relevantes
56
- target_audience (str, optional): Público objetivo específico
57
- gender (str, optional): Género del avatar (hombre/mujer)
58
- consciousness_level (str, optional): Nivel de conciencia del mercado
59
 
60
  Returns:
61
- str: Instrucciones completas para generar el perfil
62
  """
63
  # Obtener los componentes del formato
64
  format_template = buyer_persona_formats["base_format"]
@@ -66,6 +73,9 @@ def create_instruction(product_service, skills, target_audience=None, gender=Non
66
  what_we_want = what_we_really_want["format"]
67
  validation = validation_questions["buyer_persona"]
68
 
 
 
 
69
  # Obtener el prompt principal
70
  system_prompt = get_system_prompt()
71
 
@@ -84,42 +94,6 @@ def create_instruction(product_service, skills, target_audience=None, gender=Non
84
  else:
85
  gender_instruction = "\n\nIMPORTANTE: Elige un solo género (hombre o mujer) para el perfil y mantén ESTRICTA concordancia de género en todo el texto. NO uses lenguaje inclusivo ni te refieras al cliente en plural. Mantén coherencia usando siempre el mismo género que hayas elegido."
86
 
87
- # Instrucciones para el formato de listas
88
- format_instruction = """
89
- \n\nIMPORTANT - LIST FORMAT:
90
- For the sections of Fears, Insecurities, Guilt, Problems, and Frustrations, use BULLET POINTS (•) with PROPER PARAGRAPH BREAKS after each item.
91
-
92
- Example:
93
- Miedos:
94
- • Miedo a quedarse atrás en el mercado por no dominar nuevas tecnologías.
95
-
96
- • Temor a perder oportunidades de negocio por barreras de comunicación.
97
-
98
- • Preocupación por no poder expandir su empresa internacionalmente.
99
-
100
- The correct format is (note the empty line between each bullet point):
101
- Culpa:
102
- • Se siente culpable por no pasar suficiente tiempo con su hijo debido al trabajo.
103
-
104
- • Siente remordimiento por no haber aprendido inglés antes y ahora tener que hacerlo a la fuerza.
105
-
106
- • Experimenta culpa al gastar dinero en un curso de inglés en lugar de en otras necesidades de su hijo.
107
-
108
- • Se siente mal por no poder ayudar a su hijo con sus tareas de inglés.
109
-
110
- DO NOT use this incorrect format (without paragraph breaks):
111
- Inseguridades: • Primera inseguridad • Segunda inseguridad • Tercera inseguridad
112
-
113
- ALSO DO NOT use this incorrect format (without empty lines between items):
114
- Problemas:
115
- • Tiene dificultades para encontrar tiempo para estudiar inglés debido a su trabajo y responsabilidades familiares.
116
- • Se siente abrumado por la cantidad de información y recursos disponibles para aprender inglés.
117
- • Le resulta difícil concentrarse y mantenerse motivado para estudiar después de un largo día de trabajo.
118
-
119
- ENSURE there is an EMPTY LINE between each bullet point to create proper paragraph separation.
120
- DO NOT use hyphens (-) or numbers for these lists.
121
- """
122
-
123
  # Añadir instrucciones sobre el nivel de conciencia del mercado
124
  consciousness_instruction = ""
125
  if consciousness_level and consciousness_level.lower() != "ninguno":
 
2
 
3
  def get_system_prompt():
4
  """
5
+ Returns the main system prompt with instructions for creating ideal customer profiles
6
  """
7
  return """You are an expert in creating ideal customer profiles, and your task is to help me create the perfect avatar for my product or service. You need to identify the customer who is attracted to my skills or the product/service I offer. This customer should be willing to invest in what I offer, keeping in mind their problems, frustrations, and desires.
8
 
 
14
  - Determine what skills or interests you share with them that create a connection beyond the product itself.
15
  - Focus on **urgent** and specific problems that your product/service can solve for this customer.
16
  - The problem is what drives the purchase; identifying it will help niche the offer.
17
+ - Deeply explore their belief systems, mental frameworks, and how these shape their perception of their problems.
18
+ - Investigate their daily routines, habits, and specific real-life situations where they experience their problems.
19
 
20
  2. **Analyze their needs and decision-making process:**
21
  - Identify the **symptoms** that indicate the customer is facing the problem.
 
23
  - Determine what benefits they see in your offering and why your specific approach resonates with them.
24
  - Analyze their purchasing power and price sensitivity: How much can they spend? Are they willing to pay premium prices?
25
  - Examine how they make buying decisions: Do they research extensively? Are they influenced by reviews or recommendations?
26
+ - Explore the emotional triggers that drive their purchasing decisions.
27
+ - Uncover the subconscious thought patterns and limiting beliefs that might be preventing them from solving their problem.
28
+ - Identify the specific moments in their daily life when they feel the most pain or frustration related to the problem.
29
 
30
  3. **Create a comprehensive buyer persona:**
31
  - Use the information gathered from the previous steps to create a **detailed profile of the ideal customer**.
32
  - Include their motivations for buying and what they value most (price, quality, effectiveness, convenience).
33
+ - Develop a rich psychological profile that includes their core values, identity beliefs, and worldview.
34
+ - Describe specific scenarios from their daily life that illustrate their struggles and desires.
35
  - Here are the points to follow:
36
 
37
  **[VARIABLES]**
 
55
 
56
  def create_instruction(product_service, skills, target_audience=None, gender=None, consciousness_level="Ninguno"):
57
  """
58
+ Creates customized instructions to generate an ideal customer profile
59
 
60
  Args:
61
+ product_service (str): Description of the product or service
62
+ skills (str): Relevant skills or competencies
63
+ target_audience (str, optional): Specific target audience
64
+ gender (str, optional): Gender of the avatar (male/female)
65
+ consciousness_level (str, optional): Market awareness level
66
 
67
  Returns:
68
+ str: Complete instructions to generate the profile
69
  """
70
  # Obtener los componentes del formato
71
  format_template = buyer_persona_formats["base_format"]
 
73
  what_we_want = what_we_really_want["format"]
74
  validation = validation_questions["buyer_persona"]
75
 
76
+ # Get the bullet point formatting instructions from the dictionary
77
+ format_instruction = buyer_persona_formats["bullet_format"]
78
+
79
  # Obtener el prompt principal
80
  system_prompt = get_system_prompt()
81
 
 
94
  else:
95
  gender_instruction = "\n\nIMPORTANTE: Elige un solo género (hombre o mujer) para el perfil y mantén ESTRICTA concordancia de género en todo el texto. NO uses lenguaje inclusivo ni te refieras al cliente en plural. Mantén coherencia usando siempre el mismo género que hayas elegido."
96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  # Añadir instrucciones sobre el nivel de conciencia del mercado
98
  consciousness_instruction = ""
99
  if consciousness_level and consciousness_level.lower() != "ninguno":