Spaces:
Running
Running
import random | |
def create_bullet_instruction(product_service=None, uploaded_content=None, target_audience=None, skills=None, selected_formula_name=None): | |
""" | |
Creates the instruction for generating benefit bullets. | |
The model will randomly choose between different bullet formulas. | |
Args: | |
target_audience: Description of the target audience | |
product_service: Kind of product or service | |
uploaded_content: Content from uploaded files (if any) | |
skills: User's skills and expertise | |
selected_formula_name: Name of the formula selected for the main offer | |
Returns: | |
str: The complete instruction for generating bullets | |
""" | |
# Base instruction that applies to all formulas | |
# Modify the FORMAT RULES section in the base_instruction | |
# Modify the introduction options for bullets | |
base_instruction = """ | |
IMPORTANT: After creating the main offer, add a section with 5 powerful benefit bullets that reinforce the promise. | |
Start the bullets section with one of these creative introductions and a space before the first bullet: | |
"**5 Cambios poderosos que notorás:**" or | |
"**Lo que descurirás en este viaje:**" or | |
"**Tu nueva realidad incluye:**" | |
For the benefit bullets section: | |
You are a world-class expert copywriter, experienced in creating benefits that emotionally connect and address the desires, problems, and motivations of the target audience. | |
OBJECTIVE: | |
- Generate 5 convincing and specific benefit bullets in Spanish | |
- Connect emotionally with the audience | |
- Address real desires, problems, and motivations | |
- Maintain natural and conversational language | |
- Orient each benefit towards action | |
FORMAT RULES (CRITICAL - MUST FOLLOW EXACTLY): | |
- Start the section with "**BENEFICIOS:**" in bold | |
- Each benefit must start with "• " (bullet point followed by a space) | |
- The first verb or action phrase of each bullet must be in bold using "**bold text**" | |
- One benefit per line with exactly one empty line between bullets | |
- Never include colons (:) in bullets | |
- Never use exclamation marks (!) in any bullet | |
- Each benefit must be a complete and concise phrase | |
- Do not use any emojis in the bullets | |
- Use natural, conversational language | |
- ALL bullets must follow exactly the same formatting pattern | |
- The spacing between bullets must be exactly the same (one empty line) | |
EXAMPLE FORMAT: | |
**BENEFICIOS:** | |
• **Participa con confianza** en reuniones internacionales y expresa tus ideas con fluidez en tan solo 4 semanas, sin depender de traductores. | |
• **Supera el miedo** a cometer errores y proyecta una imagen profesional y segura al comunicarte en inglés, gracias a nuestras sesiones de práctica intensiva. | |
• **Accede a oportunidades** de ascenso y aumenta tu salario hasta en un 30% al dominar el inglés para negocios, respaldado por nuestra garantía de resultados. | |
AVATAR ANALYSIS INSTRUCTIONS: | |
STEP 1: ANALYZE THE AVATAR DEEPLY | |
- Identify their specific pains, fears, objections, limiting beliefs, and problems | |
- Look for emotional triggers that might prevent them from taking action | |
- Determine what keeps them awake at night regarding this problem | |
- Identify what they've tried before that hasn't worked | |
- Understand their timeline expectations and what might make them hesitate | |
- EXTRACT SPECIFIC DETAILS from the avatar description AND uploaded content | |
STEP 2: IDENTIFY CORE PROBLEMS AND DESIRES | |
- List the 5 most pressing problems this avatar faces | |
- Determine which problems are most urgent vs. most important | |
- Identify the emotional impact of each problem on their daily life | |
- Discover what they truly desire as the ultimate outcome | |
- Understand what specific results would make them feel successful | |
STEP 3: MAP SOLUTIONS TO PROBLEMS | |
- For each core problem, identify a specific solution your product/service provides | |
- Determine exactly how your solution addresses their pain points | |
- Calculate specific metrics that demonstrate the effectiveness of each solution | |
- Identify the timeframe in which they can expect results | |
- Connect each solution to their emotional desires and aspirations | |
STEP 4: CREATE BENEFIT BULLETS THAT TRANSFORM PROBLEMS INTO RESULTS | |
- Craft each bullet to directly address one specific problem identified | |
- Include exact numbers, percentages, or timeframes for measurable outcomes | |
- Incorporate emotional triggers that resonate with their deepest desires | |
- Add proof elements that overcome their specific objections | |
- Ensure each bullet provides a clear, tangible solution they can visualize | |
FORMAT RULES: | |
- Each benefit must start with "• " (bullet point followed by a space) | |
- Make the first part of each bullet (main concept) in bold using "**bold text**" format | |
- One benefit per line | |
- Add exactly 1.2em of spacing between bullets (add an empty line between each bullet) | |
- No explanations or categories | |
- Never include : symbols in bullets | |
- Never use exclamation marks (!) in any bullet | |
- Each benefit must be a complete and concise phrase | |
- Do not use any emojis in the bullets | |
- Use natural, conversational language (avoid formal or technical jargon) | |
- Maintain consistent formatting across all bullets | |
EXAMPLE FORMAT: | |
• **Desbloquea tu fluidez en inglés** y participa con confianza en reuniones de alto nivel desde la primera semana. | |
• **Supera el miedo a cometer errores** y proyecta una imagen profesional y segura al comunicarte en inglés. | |
IMPORTANT: | |
- Each benefit must be ultra-specific with concrete, measurable outcomes | |
- NEVER use generic phrases like "mejorar tu vida" or "aumentar tu productividad" | |
- Always include specific numbers, percentages, or exact timeframes | |
- Each bullet must solve a very specific problem with a detailed solution | |
- Include at least one bullet that directly counters a common objection with evidence | |
- Each bullet should contain a clear call to action with a specific next step | |
- Avoid all generalizations - be precise about exactly what the user will get | |
- Maintain a persuasive but honest tone with verifiable claims | |
- Focus on tangible and measurable results that can be verified | |
- Ensure each bullet addresses a different aspect of the offer | |
- Write in a natural, conversational tone as if speaking directly to the reader | |
- Never use exclamation marks in the bullets | |
""" | |
# Add guidance based on available information | |
guidance = "" | |
# Check different combinations of available information | |
if not target_audience and not product_service and not uploaded_content: | |
return """ | |
ADVERTENCIA: No se ha proporcionado ninguna información para generar los bullets. | |
Para obtener bullets más efectivos y personalizados, por favor proporciona al menos uno de los siguientes: | |
- Descripción del público objetivo (avatar) | |
- Nombre del producto o servicio | |
- Contenido adicional relevante | |
Sin esta información, los bullets generados serán genéricos y posiblemente menos efectivos para tu oferta específica. | |
""" | |
elif not target_audience and not product_service and uploaded_content: | |
# Only uploaded content provided | |
guidance = """ | |
NOTA IMPORTANTE: Solo se ha proporcionado contenido adicional sin detalles específicos del público objetivo o producto. | |
Analiza cuidadosamente el contenido subido para: | |
- Identificar el público objetivo probable a partir del contexto | |
- Determinar el producto/servicio que probablemente se está ofreciendo | |
- Extraer puntos de dolor, objeciones y necesidades mencionadas en el contenido | |
- Crear beneficios que aborden específicamente los problemas identificados en el contenido | |
""" | |
elif target_audience and not product_service and not uploaded_content: | |
# Only avatar description provided | |
guidance = """ | |
NOTA IMPORTANTE: Solo se ha proporcionado información del público objetivo, sin detalles del producto ni contenido adicional. | |
Enfócate en crear beneficios que: | |
- Aborden los puntos de dolor específicos mencionados en la descripción del avatar | |
- Resuelvan las objeciones comunes que este público suele tener | |
- Proporcionen soluciones a los problemas específicos de este público | |
- Conecten emocionalmente con las motivaciones de este avatar | |
""" | |
elif product_service and not target_audience and not uploaded_content: | |
# Only product name provided | |
guidance = """ | |
NOTA IMPORTANTE: Solo se ha proporcionado información del producto, sin detalles del público objetivo ni contenido adicional. | |
Enfócate en crear beneficios que: | |
- Destaquen las características únicas de este producto específico | |
- Aborden objeciones comunes relacionadas con este tipo de producto | |
- Muestren resultados medibles que este producto puede proporcionar | |
- Diferencien este producto de alternativas genéricas | |
""" | |
elif target_audience and product_service and not uploaded_content: | |
# Avatar and product provided, no uploaded content | |
guidance = """ | |
NOTA IMPORTANTE: Se ha proporcionado información tanto del público objetivo como del producto, pero no hay contenido adicional. | |
Crea beneficios altamente dirigidos que: | |
- Conecten las características específicas del producto con las necesidades del avatar | |
- Aborden las objeciones más probables que este público tendría sobre este producto | |
- Muestren cómo este producto específico resuelve los problemas concretos de este avatar | |
- Destaquen los resultados medibles que este público específico obtendrá con este producto | |
""" | |
elif target_audience and uploaded_content and not product_service: | |
# Avatar and uploaded content provided, no product | |
guidance = """ | |
NOTA IMPORTANTE: Se ha proporcionado información del público objetivo y contenido adicional, pero no hay detalles específicos del producto. | |
Analiza ambas fuentes para: | |
- Inferir el producto/servicio probable del contexto | |
- Identificar puntos de dolor específicos mencionados tanto en la descripción del avatar como en el contenido subido | |
- Crear beneficios que aborden las necesidades y objeciones más prominentes | |
- Asegurar que los beneficios sean relevantes tanto para el avatar como para el contexto del contenido | |
""" | |
elif product_service and uploaded_content and not target_audience: | |
# Product and uploaded content provided, no avatar | |
guidance = """ | |
NOTA IMPORTANTE: Se ha proporcionado información del producto y contenido adicional, pero no hay detalles del público objetivo. | |
Analiza ambas fuentes para: | |
- Inferir el público objetivo probable del contexto | |
- Identificar cómo el producto aborda las necesidades mencionadas en el contenido subido | |
- Crear beneficios que destaquen cómo el producto resuelve problemas específicos mencionados en el contenido | |
- Enfocarte en resultados medibles que el producto puede proporcionar según el contexto | |
""" | |
elif target_audience and product_service and uploaded_content: | |
# All information provided | |
guidance = """ | |
NOTA IMPORTANTE: Se ha proporcionado información completa sobre el público objetivo, producto y contenido adicional. | |
Utiliza todas las fuentes para: | |
- Crear beneficios ultra-específicos que conecten perfectamente el producto con las necesidades del avatar | |
- Extraer detalles concretos del contenido subido para hacer los beneficios más relevantes y personalizados | |
- Abordar objeciones específicas mencionadas en cualquiera de las fuentes | |
- Crear beneficios que destaquen exactamente cómo este producto resuelve los problemas concretos de este avatar | |
""" | |
# Add information about available inputs | |
input_information = f""" | |
AVAILABLE INFORMATION FOR ANALYSIS: | |
1. TARGET AUDIENCE DESCRIPTION: | |
{target_audience if target_audience else "No specific target audience provided."} | |
2. PRODUCT/SERVICE NAME: | |
{product_service if product_service else "No specific product or service provided."} | |
3. UPLOADED CONTENT: | |
{uploaded_content if uploaded_content else "No additional content uploaded."} | |
4. SKILLS AND EXPERTISE: | |
{skills if skills else "No specific skills provided."} | |
{guidance} | |
IMPORTANT: Analyze ALL available information above to create bullets that specifically address the needs, desires, and objections of this audience for this specific product/service. | |
""" | |
# Rest of the function remains the same... | |
# Multiple formula instructions (unchanged) | |
# Add this as a new formula option in the formula_instructions section | |
formula_instructions = """ | |
IMPORTANT: Choose ONE of the following bullet formulas at random and use it consistently for ALL 5 bullets: | |
FORMULA 1 - STANDARD BENEFIT: | |
- Must be relevant to a specific segment of your target audience | |
- Must show a specific result with exact numbers or percentages | |
- Must include a precise emotional element tied to a specific desire | |
- Must eliminate a specific objection with evidence | |
- Must inspire immediate action with a clear next step | |
EXAMPLE FORMAT FOR FORMULA 1: | |
•Transforma tu estrategia de email marketing con plantillas que aumentan la tasa de apertura un 37% en 14 días, incluso si nunca has escrito una campaña exitosa. | |
FORMULA 2 - 3 EN 1 (FEATURE + BENEFIT + MEANING): | |
Formula: [Feature + Benefit + Meaning] | |
This formula creates an instant connection by linking three key elements: | |
1. Feature: A specific, tangible characteristic of your offer | |
2. Benefit: The exact, measurable result it delivers | |
3. Meaning: The precise transformation in their life | |
Instructions for Creating Connection Bullets: | |
1. Identify Your Core Feature: | |
- What specific component makes your offer unique? | |
- What exact characteristic can be measured? | |
- What concrete element can they use immediately? | |
2. Transform into Benefits: | |
- What specific metric will improve? | |
- What exact problem will it solve? | |
- What measurable outcome will they achieve? | |
3. Add Deeper Meaning: | |
- How exactly will it transform their specific situation? | |
- What precise emotional impact will they experience? | |
- What concrete identity shift will occur? | |
Structure Formats: | |
1. "[Specific Feature] para que puedas [Measurable Benefit] con lo que [Concrete Meaning]" | |
2. "Con [Specific Feature] podrás [Measurable Benefit] permitiéndote [Concrete Meaning]" | |
3. "Gracias a [Specific Feature] lograrás [Measurable Benefit] haciendo que [Concrete Meaning]" | |
4. "Mediante [Specific Feature] conseguirás [Measurable Benefit] lo que significa [Concrete Meaning]" | |
5. "Usando [Specific Feature] alcanzarás [Measurable Benefit] transformando [Concrete Meaning]" | |
EXAMPLES FOR FORMULA 2: | |
• El Sistema de inmersión bilingüe de 21 días para que puedas mantener conversaciones de 15 minutos en inglés con lo que por fin dejarás de depender de traductores en tus reuniones internacionales. | |
• Con nuestro algoritmo de enfoque profundo de 3 pasos podrás completar proyectos en 4 horas en lugar de 8 permitiéndote disfrutar 20 horas adicionales semanales con tu familia. | |
• Gracias a nuestra tecnología de reprogramación mental de 28 días lograrás superar el miedo a hablar en público haciendo que te sientas seguro al presentar ante audiencias de hasta 500 personas. | |
• Mediante nuestro framework de creatividad de 5 fases conseguirás generar 10 ideas innovadoras por sesión lo que significa que nunca más perderás oportunidades de negocio por falta de propuestas. | |
• Usando nuestro sistema de automatización de tareas alcanzarás una reducción del 68% en tiempo administrativo transformando 15 horas semanales de trabajo tedioso en tiempo productivo para hacer crecer tu negocio. | |
FORMULA 3 - ANTI-PROCRASTINACIÓN (ACTION + RESULT + TIME): | |
Formula: [Action + Result + Time] | |
This formula uses a clear action followed by a direct result and the time in which that result will be achieved. You can modify the order of elements as needed. | |
Instructions: | |
1. Establish the clear action that the user must take (specific action with details) | |
2. Define the exact result with numbers/percentages that the user will obtain | |
3. Indicate the precise time period with exact days/weeks/months | |
Response Format (choose one for each bullet): | |
1. Action + Result + Time | |
2. Action + Time + Result | |
3. Result + Action + Time | |
4. Result + Time + Action | |
5. Time + Action + Result | |
6. Time + Result + Action | |
7. Result + Time + Action | |
EXAMPLES FOR FORMULA 3: | |
• Implementa nuestra estrategia de email marketing y aumenta tus ventas un 27% en los próximos 30 días, incluso si tu lista tiene menos de 500 suscriptores. | |
• Aplica las 3 técnicas de copywriting en tus próximos 5 posts y en 14 días verás un incremento del 42% en engagement, eliminando por completo los comentarios negativos. | |
• Tu tasa de conversión aumentará del 2% al 5.7% cuando implementes nuestro sistema de embudos en los próximos 21 días, sin necesidad de aumentar tu presupuesto publicitario. | |
• En 28 días exactos dominarás las 7 habilidades fundamentales de negociación aplicando nuestro método paso a paso, incluso si actualmente cedes en cada discusión. | |
• 8 semanas es todo lo que necesitas para transformar tu cuerpo con nuestro programa de 15 minutos diarios, reduciendo hasta 8 kg de grasa y aumentando tu energía un 65% desde la primera semana. | |
FORMULA 4 - NÚMERICA SUPREMA: | |
La Fórmula Suprema de Istvanova combina 5 elementos clave más artículos plurales para crear bullets persuasivos e interesantes: | |
1. Artículos Plurales (Art): | |
- Los (para masculino plural) | |
- Las (para femenino plural) | |
- Dan naturalidad y autoridad al texto | |
2. Números (N): | |
- Específicos y creíbles (3, 5, 7, 10...) | |
- Crean estructura y expectativas claras | |
- Se combinan con artículos: "Los 5...", "Las 3..." | |
3. Adjetivo (A): | |
- Emocionales y descriptivos | |
- Conectan con deseos/miedos específicos | |
- Ejemplos: comprobados, científicos, revolucionarios | |
4. Palabra Clave (P): | |
- Término central del beneficio en plural | |
- Fácil de entender y recordar | |
- Ejemplos: métodos, estrategias, técnicas, secretos | |
5. Razón (R): | |
- Justifica el beneficio con datos concretos | |
- Añade credibilidad con evidencia específica | |
- Conecta con la motivación específica del lector | |
6. Promesa (P): | |
- Resultado específico y medible con números | |
- Timeframe realista con días/semanas exactas | |
- Beneficio final atractivo y verificable | |
EXAMPLES FOR FORMULA 4: | |
• Los 3 rituales científicamente probados para reducir tu estrés un 47% en 14 días, validados por la Universidad de Stanford. | |
• Las 5 rutinas efectivas para fortalecer tu core en solo 12 minutos diarios, eliminando el dolor lumbar en el 89% de los casos. | |
• Las 7 hábitos esenciales para aumentar tu productividad un 63%, permitiéndote completar en 4 horas lo que antes hacías en 8. | |
• Las 3 técnicas comprobadas para dormir 7 horas ininterrumpidas basadas en neurociencia, que han ayudado a 1,243 personas con insomnio crónico. | |
• Los 5 movimientos efectivos para fortalecer tu core sin equipamiento, que activan un 78% más de fibras musculares que los ejercicios tradicionales. | |
FORMULA 5 - EL TRIÁNGULO DE ORO: | |
Formula: [Benefit 1 + Benefit 2 + Great Promise] | |
This formula creates high-impact bullets by combining three key benefits persuasively: | |
1. Benefit 1: The first benefit that addresses an immediate client need | |
2. Benefit 2: An additional benefit that generates more value | |
3. Great Promise: The main or most impactful promise that closes the proposal | |
Instructions for Creating Powerful Bullets: | |
1. Identify Your Audience's Great Dream: | |
- What's their ultimate aspiration? | |
- What keeps them awake at night? | |
- What's their ideal scenario? | |
- What transformation do they deeply desire? | |
2. Structure Your Benefits: | |
- Write in a natural, conversational tone (like talking to a friend) | |
- Flow elements together without forced pauses or commas | |
- Make transitions smooth and invisible | |
- Keep the rhythm flowing from start to finish | |
3. Craft Your Benefits: | |
- Benefit 1: Hook them with their biggest pain point using casual language | |
- Benefit 2: Build momentum with an exciting complementary gain | |
- Great Promise: Deliver the knockout punch that makes them say "I need this!" | |
4. Tips for Maximum Impact: | |
- Write like you speak (but better) | |
- Avoid formal language or stiff transitions | |
- Make each element flow naturally into the next | |
- Create a rhythm that pulls the reader through | |
- Use conversational connectors instead of commas | |
- Read it aloud - if you stumble, rewrite it | |
- Make it so engaging they can't stop reading | |
- Keep the energy high from start to finish | |
Structure Formats: | |
1. "[benefit 1] [benefit 2] [great promise]" | |
2. "[benefit 2] [benefit 1] [great promise]" | |
3. "[great promise] [benefit 2] [benefit 1]" | |
4. "[great promise] [benefit 1] [benefit 2]" | |
5. "[benefit 1] [benefit 2] [great promise]" | |
6. "[benefit 1] + question + [benefit 2] + [great promise]" | |
7. "question + [benefit 1] + [benefit 2] + [great promise]" | |
8. "[benefit 1] + while + [benefit 2] + and also + [great promise]" | |
9. "Not only + [benefit 1] + but also + [benefit 2] + and best of all + [great promise]" | |
10. "Imagine + [benefit 1] + at the same time as + [benefit 2] + and finally + [great promise]" | |
11. "From + [benefit 1] + going through + [benefit 2] + until + [great promise]" | |
12. "First + [benefit 1] + then + [benefit 2] + and at the end + [great promise]" | |
13. "Start with + [benefit 1] + transform with + [benefit 2] + culminate with + [great promise]" | |
14. "Tired of the opposite of [benefit 1]? + Discover + [benefit 2] + and achieve + [great promise]" | |
15. "Finally + [benefit 1] + plus + [benefit 2] + and as a bonus + [great promise]" | |
EXAMPLES FOR FORMULA 5: | |
• Reduce tu estrés laboral en un 42% mientras aumentas tu productividad un 37% y transforma tu carrera profesional con nuestro sistema de gestión del tiempo basado en neurociencia aplicada. | |
• Domina 5 idiomas extranjeros mientras duermes 8 horas ininterrumpidas y activa el 89% de tu potencial cerebral con nuestro revolucionario programa de aprendizaje durante el sueño profundo. | |
• No solo eliminarás el dolor de espalda crónico en 14 días sino que también fortalecerás tu core un 78% y lo mejor de todo es que recuperarás la capacidad de disfrutar actividades que creías imposibles. | |
• ¿Cansado de perder tiempo en reuniones improductivas? Descubre cómo reducir tu jornada laboral 3 horas diarias y consigue resultados un 65% superiores con nuestro framework de productividad cuántica. | |
• Imagina generar 10 ideas innovadoras por día al mismo tiempo que reduces tu estrés un 47% y finalmente te conviertes en el referente creativo de tu industria con nuestro método de pensamiento lateral estructurado. | |
Remember to choose just ONE formula and apply it consistently to all 5 bullets. | |
ORMULA 6 - PERSUASIÓN PROGRESIVA (DOLOR + BENEFICIO + CURIOSIDAD + CONTRASTE + ACCIÓN): | |
Esta fórmula crea bullets altamente persuasivos siguiendo una estructura psicológica de 5 pasos: | |
1. Dolor/Problema Específico: | |
- Comienza identificando un dolor o problema concreto del avatar | |
- Puede formularse como pregunta o afirmación directa | |
- Debe tocar un punto emocional específico y reconocible | |
- Ejemplos de inicio: "¿Cansado de...", "Si has intentado...", "Cuando te enfrentas a..." | |
2. Beneficio Tangible: | |
- Presenta la solución de forma concreta y medible | |
- Incluye números específicos cuando sea posible (porcentajes, días, resultados) | |
- Muestra la transformación de forma visual y palpable | |
- Conecta directamente con el problema mencionado | |
3. Elemento de Curiosidad: | |
- Añade un giro inesperado o sorprendente | |
- Utiliza frases que generen intriga | |
- Menciona un método poco conocido o contraintuitivo | |
- Ejemplos: "el truco que nadie te ha contado", "la técnica contraintuitiva que..." | |
4. Eliminación de Objeciones: | |
- Anticipa y neutraliza resistencias comunes | |
- Muestra cómo se logra el resultado sin los obstáculos temidos | |
- Utiliza contrastes: "sin necesidad de...", "aunque nunca antes hayas..." | |
- Elimina la fricción mental para la acción | |
5. Llamada a la Acción/Urgencia: | |
- Cierra con un elemento de acción inmediata | |
- Usa verbos en presente o imperativo | |
- Añade un elemento de tiempo para crear urgencia | |
- Conecta la acción con un resultado rápido y visible | |
Estructura Flexible: | |
- No es necesario seguir el orden exacto de los 5 elementos | |
- Asegúrate de incluir al menos 4 de los 5 elementos en cada bullet | |
- Adapta la estructura según el tipo de producto/servicio | |
- Mantén un tono conversacional y fluido entre los elementos | |
EXAMPLES FOR FORMULA 6: | |
• ¿Te bloqueas al hablar en público y ves cómo tu negocio pierde oportunidades? Descubre la técnica de 3 pasos que te hará comunicar con autoridad en 14 días, usando el mismo truco mental que los mejores conferencistas aplican antes de subir al escenario, sin memorizar discursos ni sonar como un robot. | |
• Transforma tu metabolismo lento en una máquina quemagrasa con nuestro protocolo de 8 minutos diarios que activa un 64% más de células musculares que el ejercicio tradicional, gracias al descubrimiento científico que contradice todo lo que creías sobre perder peso, incluso si tienes más de 40 años y has fracasado con todas las dietas anteriores. | |
• Cuando tu negocio se estanca en los mismos números mes tras mes, necesitas el sistema de escalabilidad en 3 fases que ha permitido a 1,247 emprendedores duplicar sus ingresos en 90 días, aplicando la estrategia contraintuitiva de reducir servicios en lugar de añadirlos, sin contratar personal adicional ni trabajar más horas que ahora. | |
• Si tus campañas de email marketing generan menos del 2% de conversión, implementa nuestra fórmula de asuntos irresistibles que aumenta la tasa de apertura un 47% desde el primer envío, utilizando el principio psicológico que las grandes marcas ocultan a propósito, sin necesidad de tener una lista grande ni conocimientos técnicos avanzados. | |
• ¿Frustrado porque tu contenido en redes sociales no genera clientes reales? Aplica hoy mismo nuestro framework de contenido estratégico que convierte seguidores en compradores en un ciclo de 21 días, mediante la técnica del "puente de valor" que pocos conocen pero todos los influencers rentables utilizan, aunque nunca antes hayas vendido nada a través de tus redes. | |
""" | |
# Combine base instruction with formula instructions | |
complete_instruction = base_instruction + input_information + formula_instructions | |
return complete_instruction | |
def get_random_bullet_formula(): | |
""" | |
Randomly selects a bullet formula type to ensure variety in generated bullets. | |
Extracts formula names automatically from the instruction text. | |
Returns: | |
str: The name of the randomly selected formula | |
""" | |
# Get the full instruction text | |
full_instruction = create_bullet_instruction() | |
# Extract formula names using regex pattern matching | |
import re | |
# Pattern to find formula names (looks for "FORMULA X - NAME:") | |
formula_pattern = r"FORMULA\s+\d+\s+-\s+([^:]+):" | |
# Find all matches in the instruction text | |
formula_matches = re.findall(formula_pattern, full_instruction) | |
# If no formulas found, fallback to manual list | |
if not formula_matches: | |
formulas = [ | |
"STANDARD BENEFIT", | |
"3 EN 1 (FEATURE + BENEFIT + MEANING)", | |
"ANTI-PROCRASTINACIÓN (ACTION + RESULT + TIME)", | |
"NÚMERICA SUPREMA", | |
"EL TRIÁNGULO DE ORO" | |
] | |
else: | |
formulas = formula_matches | |
# Select a random formula | |
selected_formula = random.choice(formulas) | |
return selected_formula | |
def create_bullet_instruction_with_formula(target_audience=None, product_service=None, uploaded_content=None, skills=None, selected_formula_name=None): | |
""" | |
Creates the instruction for generating benefit bullets with a specific | |
randomly selected formula to ensure consistency. | |
Args: | |
target_audience: Description of the target audience | |
product_service: Name of the product or service | |
uploaded_content: Content from uploaded files (if any) | |
skills: User's skills and expertise | |
selected_formula_name: Name of the formula selected for the main offer | |
Returns: | |
str: The complete instruction for generating bullets with the selected formula | |
""" | |
# Check if any information is provided | |
if not target_audience and not product_service and not uploaded_content and not skills: | |
return """ | |
ADVERTENCIA: No se ha proporcionado ninguna información para generar los bullets. | |
Para obtener bullets más efectivos y personalizados, por favor proporciona al menos uno de los siguientes: | |
- Descripción del público objetivo (avatar) | |
- Nombre del producto o servicio | |
- Contenido adicional relevante | |
- Habilidades y experiencia | |
Sin esta información, los bullets generados serán genéricos y posiblemente menos efectivos para tu oferta específica. | |
""" | |
# Get base instruction | |
base_instruction = create_bullet_instruction( | |
target_audience=target_audience, | |
product_service=product_service, | |
uploaded_content=uploaded_content, | |
skills=skills, | |
selected_formula_name=selected_formula_name # Pass the formula name | |
) | |
# Get a random formula | |
selected_bullet_formula = get_random_bullet_formula() | |
# Add specific instruction to use the selected formula | |
formula_directive = f""" | |
IMPORTANT OVERRIDE: For this specific task, you MUST use FORMULA {selected_bullet_formula} | |
for ALL 5 bullets. Do not choose randomly - you must use this exact formula consistently. | |
""" | |
# Combine instructions | |
complete_instruction = base_instruction + formula_directive | |
return complete_instruction |