Spaces:
Sleeping
Sleeping
Update bullets/generator.py
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667def create_bullet_instruction():"""Creates the instruction for generating benefit bullets.Returns:str: The complete instruction for generating bullets"""bullet_points_instruction = """IMPORTANT: After creating the main offer, add a section with 5 powerful benefit bullets that reinforce the promise.Start the bullets section with an introduction like:"Además, al aprovechar esta oferta también obtendrás:" or "Y eso no es todo, también disfrutarás de estos beneficios adicionales:" or "Con esta solución también conseguirás:"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 actionFORMAT RULES:- Each benefit must start with "• "- One benefit per line- No numbers at the beginning- No explanations or categories- Add a line break between each benefit- 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)BENEFIT STRUCTURE:- Must be relevant to target audience- Must show a specific result- Must include an emotional element- Must eliminate an objection or pain point- Must inspire immediate actionEXAMPLE FORMAT:Además, al aprovechar esta oferta también obtendrás:• Transforma tu negocio con estrategias probadas que duplican tus ingresos en 90 días, sin sacrificar tu tiempo en familia.• Domina las técnicas más efectivas para conquistar tu mercado, mientras mantienes el equilibrio entre trabajo y vida personal.• Implementa sistemas automatizados que hacen crecer tu empresa incluso mientras duermes, eliminando la necesidad de trabajar más horas.• Elimina la ansiedad de las ventas con un proceso estructurado y predecible que funciona incluso cuando duermes.• Transforma tu mentalidad de "vendedor insistente" a "asesor de confianza" que los clientes buscan y recomiendan.IMPORTANT:- Each benefit must be unique and specific- Avoid repetitions and generalities- Maintain a persuasive but honest tone- Adapt language to audience comprehension level- Focus on tangible and measurable results- Do not use emojis anywhere in the bullets- Write in a natural, conversational tone as if speaking directly to the reader- Never use exclamation marks in the bullets"""return bullet_points_instruction123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108def create_bullet_instruction():"""Creates the instruction for generating benefit bullets.The model will randomly choose between different bullet formulas.Returns:str: The complete instruction for generating bullets"""# Base instruction that applies to all formulasbase_instruction = """IMPORTANT: After creating the main offer, add a section with 5 powerful benefit bullets that reinforce the promise.Start the bullets section with an introduction like:"Además, al aprovechar esta oferta también obtendrás:" or "Y eso no es todo, también disfrutarás de estos beneficios adicionales:" or "Con esta solución también conseguirás:"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 actionFORMAT RULES:- Each benefit must start with "• "- One benefit per line- No numbers at the beginning- No explanations or categories- Add a line break between each benefit- 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)IMPORTANT:- Each benefit must be unique and specific- Avoid repetitions and generalities- Maintain a persuasive but honest tone- Adapt language to audience comprehension level- Focus on tangible and measurable results- Do not use emojis anywhere in the bullets- Write in a natural, conversational tone as if speaking directly to the reader- Never use exclamation marks in the bullets"""# Multiple formula instructionsformula_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 target audience- Must show a specific result- Must include an emotional element- Must eliminate an objection or pain point- Must inspire immediate actionEXAMPLE FORMAT FOR FORMULA 1:•Transforma tu negocio con estrategias probadas que duplican tus ingresos en 90 días, sin sacrificar tu tiempo en familia.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: The main characteristic or aspect of your offer2. Benefit: What it allows the user to achieve or obtain3. Meaning: The deeper impact or transformation in their lifeInstructions for Creating Connection Bullets:1. Identify Your Core Feature:- What makes your offer unique?- What's the main characteristic?- What's the standout element?2. Transform into Benefits:- How does this feature help them?- What can they achieve with it?- What becomes possible?3. Add Deeper Meaning:- How does it transform their life?- What's the emotional impact?- What does it mean for their identity?Structure Formats:1. "[Feature] para que puedas [Benefit] con lo que [Meaning]"2. "Con [Feature] podrás [Benefit] permitiéndote [Meaning]"3. "Gracias a [Feature] lograrás [Benefit] haciendo que [Meaning]"4. "Mediante [Feature] conseguirás [Benefit] lo que significa [Meaning]"5. "Usando [Feature] alcanzarás [Benefit] transformando [Meaning]"EXAMPLES FOR FORMULA 2:• El Sistema de meditación guiada para que puedas alcanzar la paz mental con lo que por fin dejarás de sentirte abrumado por el caos diario.• Con nuestro algoritmo de enfoque profundo podrás duplicar tu productividad permitiéndote disfrutar más tiempo con quienes amas.• Gracias a nuestra tecnología de reprogramación mental lograrás superar tus miedos haciendo que te sientas invencible ante cualquier reto.• Mediante nuestro framework de creatividad conseguirás ideas brillantes lo que significa que nunca más te quedarás en blanco.• Usando nuestro sistema de automatización mental alcanzarás el estado de flow transformando cada tarea en una experiencia placentera.Remember to choose just ONE formula and apply it consistently to all 5 bullets."""# Combine base instruction with formula instructionscomplete_instruction = base_instruction + formula_instructionsreturn complete_instruction
bullets/generator.py+108-67