Spaces:
Sleeping
Sleeping
Update prompts.py
Browse files- prompts.py +156 -1
prompts.py
CHANGED
@@ -321,8 +321,163 @@ def create_fb_ad_instruction(target_audience, product, selected_formula, selecte
|
|
321 |
[Begin with a natural story opening that flows seamlessly from the headline concept. Don't force a "hook" - instead, start the narrative in a conversational and relatable way that draws the reader in. The story should feel like a natural continuation of the headline's theme, maintaining a cohesive narrative throughout the entire ad, with clear benefits and a compelling call to action at the end.]
|
322 |
|
323 |
# Add this to your verification criteria at the end of the instruction
|
|
|
324 |
policy_checklist = get_policy_checklist()
|
325 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
326 |
policy_checks = "\n".join([f"{i+1}. {check}" for i, check in enumerate(policy_checklist)])
|
327 |
# OR if you want to start from 18 as the original code intended:
|
328 |
# policy_checks = "\n".join([f"{idx+18}. {check}" for idx, check in enumerate(policy_checklist)])
|
|
|
321 |
[Begin with a natural story opening that flows seamlessly from the headline concept. Don't force a "hook" - instead, start the narrative in a conversational and relatable way that draws the reader in. The story should feel like a natural continuation of the headline's theme, maintaining a cohesive narrative throughout the entire ad, with clear benefits and a compelling call to action at the end.]
|
322 |
|
323 |
# Add this to your verification criteria at the end of the instruction
|
324 |
+
# Obtener la lista de verificaci贸n de pol铆ticas
|
325 |
policy_checklist = get_policy_checklist()
|
326 |
+
|
327 |
+
# Crear la lista numerada de verificaciones
|
328 |
+
policy_checks = "\n".join([f"{i+1}. {check}" for i, check in enumerate(policy_checklist)])
|
329 |
+
|
330 |
+
# Construir la instrucci贸n con la lista de verificaciones
|
331 |
+
instruction = f"""
|
332 |
+
{system_prompt}
|
333 |
+
|
334 |
+
Create three completely different high-converting Facebook ad copies for {product}, channeling the voice of {selected_persona['description']} while leveraging the selected angle to persuade {target_audience} to try it and share their positive experience.
|
335 |
+
|
336 |
+
{objective_instruction if ad_objective else ""}
|
337 |
+
|
338 |
+
{story_instruction if story_prompt else ""}
|
339 |
+
|
340 |
+
{persona_instruction}
|
341 |
+
|
342 |
+
# Add this after the "Ad Requirements for EACH of the three ads:" section
|
343 |
+
|
344 |
+
Ad Requirements for EACH of the three ads:
|
345 |
+
1. **Theme-Centered Headlines:** Create three bold, unexpected headlines for EACH ad that directly incorporate the story theme "{story_prompt if story_prompt else 'main benefit'}". Make them memorable, emotionally resonant, and specific to the audience's desires.
|
346 |
+
2. **Theme-Continuing Opening:** Begin with a smooth, conversational opening that DIRECTLY continues the exact theme from the headline. The first paragraph must expand on the SAME concept from the headline, not introduce a new idea.
|
347 |
+
3. **Social Proof & Credibility:** Include elements of social proof and credibility that relate to the central theme to build trust with the audience.
|
348 |
+
4. **Theme-Aligned Benefits:** Highlight why this product is the best solution for {target_audience}'s needs specifically in relation to the central theme.
|
349 |
+
5. **Theme-Connected CTA:** Integrate the call to action naturally into the narrative flow, making sure it references back to the central theme. It should feel like a logical next step rather than an abrupt command.
|
350 |
+
6. **Optimized for Multiple Ad Formats:** Ensure the copy works for image, video, and carousel ads while maintaining theme consistency.
|
351 |
+
7. **Facebook Policy Compliance:** Ensure all ad copy complies with Facebook's advertising policies by:
|
352 |
+
- Avoiding prohibited content (gambling, adult content, tobacco, weapons, etc.)
|
353 |
+
- Not using discriminatory language or targeting protected categories
|
354 |
+
- Avoiding excessive use of capital letters, punctuation, or sensationalist language
|
355 |
+
- Not making unrealistic claims or guarantees about results
|
356 |
+
- Ensuring appropriate disclaimers for regulated industries (finance, health, etc.)
|
357 |
+
- Not using "you" or "your" in a way that references personal attributes
|
358 |
+
- Avoiding content that could be considered misleading or creating false urgency
|
359 |
+
- Not mentioning Facebook or Instagram directly in the ad copy
|
360 |
+
|
361 |
+
IMPORTANT ABOUT OPENING PARAGRAPH:
|
362 |
+
- The opening paragraph MUST continue the EXACT SAME THEME as the headline - they must feel like one continuous thought
|
363 |
+
- It should feel like a direct continuation of the headline's specific concept, not a general introduction to the topic
|
364 |
+
- The headline and opening paragraph should read as if they were written together as one continuous piece
|
365 |
+
- CRITICAL: If the headline mentions a specific concept (e.g., "Padre Extraterrestre Con Estr茅s"), the opening paragraph MUST directly address this EXACT concept, not just the general topic of stress
|
366 |
+
- The transition between headline and opening paragraph should be seamless, as if they are part of the same thought
|
367 |
+
- IMPORTANT: Do NOT begin the opening paragraph with a question that mirrors or expands the headline concept. Instead, use declarative statements that continue the narrative
|
368 |
+
- If the headline contains a question, the opening paragraph should provide insight or expand on the scenario rather than asking another related question
|
369 |
+
- For question headlines: The opening paragraph should begin answering the question or elaborating on the implied situation, creating a natural flow of thought
|
370 |
+
- When a headline poses a question, treat the opening paragraph as the beginning of the answer or exploration of that question, not as a separate thought
|
371 |
+
- Example of good flow: Headline: "驴Te has preguntado por qu茅 otros avanzan y t煤 te quedas estancado?" Opening: "El ingl茅s, esa habilidad que subestimas, podr铆a ser la llave que abre las puertas a promociones y proyectos internacionales..."
|
372 |
+
|
373 |
+
IMPORTANT ABOUT HEADLINE-STORY CONTINUITY:
|
374 |
+
- The headline and story must be perfectly aligned - they should feel like parts of the same narrative
|
375 |
+
- If the headline uses a specific metaphor, analogy, or concept, the story MUST continue with that SAME metaphor, analogy, or concept
|
376 |
+
- The story should feel like a natural expansion of the headline's promise or concept
|
377 |
+
- NEVER create a headline that introduces a concept that isn't immediately continued in the story
|
378 |
+
- The headline should set up a specific scenario that the opening paragraph immediately expands upon
|
379 |
+
|
380 |
+
IMPORTANT ABOUT CALL TO ACTION:
|
381 |
+
- The CTA should not feel like a separate, tacked-on element
|
382 |
+
- Avoid generic phrases like "Learn more" or "Click here" unless they're integrated into a more specific, compelling statement
|
383 |
+
- Connect the CTA directly to the specific benefit or solution mentioned in the ad
|
384 |
+
- Maintain the same voice, style and emotional tone used throughout the ad
|
385 |
+
- Make the CTA feel like a natural continuation of the conversation, not a marketing directive
|
386 |
+
|
387 |
+
**Product Integration:** Weave {product} into the narrative naturally and conversationally. Don't just mention it - make it an organic part of the story. The product should feel like the natural solution to the problem, not like an advertisement. Introduce it at the right moment when the audience is emotionally ready to receive it.
|
388 |
+
|
389 |
+
IMPORTANT ABOUT PRODUCT INTEGRATION:
|
390 |
+
- Never mention the product name directly as "{product}" - instead, refer to it indirectly or through its benefits
|
391 |
+
- Introduce it as part of the narrative solution, not as a formal offering
|
392 |
+
- When you do mention the product name, do it naturally as if it's already familiar to the reader
|
393 |
+
- Focus on what it does for people rather than what it is
|
394 |
+
- Use phrases like "muchos descubrieron que...", "resulta que...", "lo que realmente funciona es..." before subtly introducing the product
|
395 |
+
|
396 |
+
Examples of creative, high-converting headlines:
|
397 |
+
- "They Laughed When I Sat Down At The Piano. But When I Started to Play..."
|
398 |
+
- "Your Body Is Water Starving (Even If Your Mouth Isn't Dry)"
|
399 |
+
- "Warning: Your Productivity Software Is Secretly Making You Less Productive"
|
400 |
+
- "The 'Ugly' Truth About Your Morning Routine That No One Talks About"
|
401 |
+
- "Fired From My 9-5, Now I Make $300/Day With This Weird Trick"
|
402 |
+
- "Is Your Website a Ghost Town? Here's Why Nobody's Visiting"
|
403 |
+
- "The 7-Minute Ritual That Transformed My Sleep Quality"
|
404 |
+
- "What Netflix Knows About You That You Don't Know About Yourself"
|
405 |
+
- "The Counterintuitive Reason Most Diets Fail (It's Not What You Think)"
|
406 |
+
- "Your Competition Is Already Using This Tool. Are You?"
|
407 |
+
|
408 |
+
Use this formula to structure the ad: {selected_formula['description']}
|
409 |
+
{formula_examples}
|
410 |
+
|
411 |
+
**Important:** Review all the complete examples in the formula to understand the structure, tone, and flow. Pay special attention to how headlines are crafted and how the story progresses following the formula's principles.
|
412 |
+
|
413 |
+
**CRITICAL INSTRUCTION:** Do NOT include any formula labels, section headers, or explanations in your ad copy. For example, do not include labels like "Problema:", "Agitaci贸n:", "Soluci贸n:", or "Acci贸n:" in the PASA formula. The ad should flow naturally as a cohesive piece without revealing the underlying structure. The reader should not be able to tell which formula you're using.
|
414 |
+
|
415 |
+
**Strategic Angle Instructions:**
|
416 |
+
This angle defines the unique perspective and emotional approach for the ad.
|
417 |
+
{angle_instruction}
|
418 |
+
|
419 |
+
When applying this angle:
|
420 |
+
- Frame all benefits through this specific perspective
|
421 |
+
- Use the suggested keywords naturally throughout the copy
|
422 |
+
- Maintain the specified style consistently in your tone and language
|
423 |
+
- Ensure this angle is evident in both the headline, opening paragraph and the call to action
|
424 |
+
- If a story theme was provided ("{story_prompt}"), make sure the angle supports and enhances this theme rather than competing with it
|
425 |
+
|
426 |
+
The goal is to show how {product} can transform the reader's life, connecting naturally and emotionally.
|
427 |
+
Avoid literal or repetitive mentions, and highlight concrete solutions, showing how the product removes obstacles or satisfies real desires.
|
428 |
+
|
429 |
+
Additional Instructions:
|
430 |
+
- Ensure the tone and style match the brand and audience expectations.
|
431 |
+
- Generate the ad copy in {language}.
|
432 |
+
- Make the headline creative, unexpected, and deeply aligned with both the story and the audience's core desires.
|
433 |
+
- Never introduce the product with phrases like "Introducing [Product]" or "Our [Product] offers..." - instead, weave it into the narrative as a solution that others have discovered.
|
434 |
+
- Refer to the product in a way that feels like a trusted recommendation, not like a company selling it.
|
435 |
+
- CRITICAL: Never write phrases like "Eso es exactamente lo que te ofrece [Product]" or similar direct introductions. The product should appear organically in the flow of the story.
|
436 |
+
- If the product is a course, program or service, introduce it through the transformation it provides rather than its category (e.g., instead of "Curso de cocina", say "estas recetas que han transformado la forma de cocinar de muchas personas" and later casually mention the name).
|
437 |
+
|
438 |
+
**Text Formatting Requirements:**
|
439 |
+
- Keep paragraphs very short - maximum 1-3 sentences per paragraph
|
440 |
+
- Add line breaks between all paragraphs for better readability
|
441 |
+
- Break up longer thoughts into multiple paragraphs
|
442 |
+
- Use occasional one-line paragraphs for emphasis
|
443 |
+
- Vary paragraph length to create rhythm and maintain interest
|
444 |
+
- For emotional moments or key benefits, use single-sentence paragraphs
|
445 |
+
- Ensure there's plenty of white space throughout the entire ad
|
446 |
+
- CRITICAL: Keep the total ad length between 125-150 words maximum
|
447 |
+
- Focus on the most impactful points rather than trying to cover everything
|
448 |
+
|
449 |
+
Output format:
|
450 |
+
| ANUNCIO PREMIUM #1 |
|
451 |
+
|
452 |
+
1. [First creative and persuasive headline]
|
453 |
+
2. [Second headline with a different approach]
|
454 |
+
3. [Third headline with another distinct angle]
|
455 |
+
|
456 |
+
[Complete text for the first ad, following all the requirements above]
|
457 |
+
|
458 |
+
|
459 |
+
| ANUNCIO PREMIUM #2 |
|
460 |
+
|
461 |
+
1. [First creative and persuasive headline]
|
462 |
+
2. [Second headline with a different approach]
|
463 |
+
3. [Third headline with another distinct angle]
|
464 |
+
|
465 |
+
[Complete text for the second ad, following all the requirements above]
|
466 |
+
|
467 |
+
|
468 |
+
| ANUNCIO PREMIUM #3 |
|
469 |
+
|
470 |
+
1. [First creative and persuasive headline]
|
471 |
+
2. [Second headline with a different approach]
|
472 |
+
3. [Third headline with another distinct angle]
|
473 |
+
|
474 |
+
[Complete text for the third ad, following all the requirements above]
|
475 |
+
|
476 |
+
--------------------------
|
477 |
+
|
478 |
+
[Begin with a natural story opening that flows seamlessly from the headline concept. Don't force a "hook" - instead, start the narrative in a conversational and relatable way that draws the reader in. The story should feel like a natural continuation of the headline's theme, maintaining a cohesive narrative throughout the entire ad, with clear benefits and a compelling call to action at the end.]
|
479 |
+
|
480 |
+
# Add this to your verification criteria at the end of the instruction
|
481 |
policy_checks = "\n".join([f"{i+1}. {check}" for i, check in enumerate(policy_checklist)])
|
482 |
# OR if you want to start from 18 as the original code intended:
|
483 |
# policy_checks = "\n".join([f"{idx+18}. {check}" for idx, check in enumerate(policy_checklist)])
|