Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1537,55 +1537,82 @@ def validate_ai_output(ai_output, proof_points):
|
|
| 1537 |
# Create the prompt template
|
| 1538 |
prompt_message = """
|
| 1539 |
|
| 1540 |
-
You are an expert copywriter specializing in creating high-quality marketing content that integrates Top-Scoring Statements for Each Trust Bucket
|
| 1541 |
-
|
| 1542 |
-
**
|
| 1543 |
-
|
| 1544 |
-
|
| 1545 |
-
|
| 1546 |
-
|
| 1547 |
-
|
| 1548 |
-
|
| 1549 |
-
|
| 1550 |
-
|
| 1551 |
-
-
|
| 1552 |
-
-
|
| 1553 |
-
-
|
| 1554 |
-
|
| 1555 |
-
**
|
| 1556 |
-
|
| 1557 |
-
|
| 1558 |
-
-
|
| 1559 |
-
|
| 1560 |
-
|
| 1561 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1562 |
1. **Annual Reports/Articles**
|
| 1563 |
- Structure:
|
| 1564 |
- Headline
|
| 1565 |
-
- Main content (3-4 detailed paragraphs integrating
|
| 1566 |
-
-
|
| 1567 |
-
-
|
| 1568 |
-
-
|
| 1569 |
-
-
|
|
|
|
| 1570 |
2. **Sales Conversations/Ad Copy**
|
| 1571 |
-
-
|
| 1572 |
- Structure:
|
| 1573 |
-
|
| 1574 |
-
-
|
| 1575 |
-
-
|
| 1576 |
-
-
|
| 1577 |
-
|
| 1578 |
-
- Heuristics Used: List 3-5 relevant heuristics.
|
| 1579 |
-
- Creative Techniques Used: Mention and explain any creative elements used.
|
| 1580 |
3. **Emails, Newsletters, Direct Marketing Letters**
|
| 1581 |
- Intro Line: "Here is a draft of your [Email/Newsletter/Letter]. Feel free to suggest further refinements."
|
| 1582 |
-
- Content:
|
| 1583 |
-
|
| 1584 |
-
-
|
| 1585 |
-
-
|
| 1586 |
-
|
| 1587 |
-
|
| 1588 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1589 |
|
| 1590 |
"""
|
| 1591 |
|
|
|
|
| 1537 |
# Create the prompt template
|
| 1538 |
prompt_message = """
|
| 1539 |
|
| 1540 |
+
You are an expert copywriter specializing in creating high-quality marketing content that integrates Top-Scoring Statements for Each Trust Bucket.
|
| 1541 |
+
|
| 1542 |
+
**Mandatory Workflow:**
|
| 1543 |
+
1. FIRST, display the top-scoring statements for each Trust Bucket
|
| 1544 |
+
2. THEN, generate content according to the specified format
|
| 1545 |
+
3. FINALLY, include required additional sections
|
| 1546 |
+
|
| 1547 |
+
**Display Format for Top-Scoring Statements:**
|
| 1548 |
+
Top-Scoring Trust Builders®:
|
| 1549 |
+
|
| 1550 |
+
**Stability Trust Bucket**:
|
| 1551 |
+
- Statement 1 [X%]
|
| 1552 |
+
- Statement 2 [Y%]
|
| 1553 |
+
- Statement 3 [Z%]
|
| 1554 |
+
|
| 1555 |
+
**Development Trust Bucket**:
|
| 1556 |
+
- Statement 1 [X%]
|
| 1557 |
+
- Statement 2 [Y%]
|
| 1558 |
+
- Statement 3 [Z%]
|
| 1559 |
+
|
| 1560 |
+
**Relationship Trust Bucket**:
|
| 1561 |
+
- Statement 1 [X%]
|
| 1562 |
+
- Statement 2 [Y%]
|
| 1563 |
+
- Statement 3 [Z%]
|
| 1564 |
+
|
| 1565 |
+
**Content Types and Specific Guidelines:**
|
| 1566 |
+
|
| 1567 |
1. **Annual Reports/Articles**
|
| 1568 |
- Structure:
|
| 1569 |
- Headline
|
| 1570 |
+
- Main content (3-4 detailed paragraphs integrating ALL required TrustBuilders®)
|
| 1571 |
+
- MANDATORY:
|
| 1572 |
+
- Explicitly use ALL 9 trust statements
|
| 1573 |
+
- Natural, contextual integration
|
| 1574 |
+
- Provide concrete examples for each statement
|
| 1575 |
+
|
| 1576 |
2. **Sales Conversations/Ad Copy**
|
| 1577 |
+
- Intro line: "Here is a draft of your [Sales Conversation/Ad Copy]. Feel free to suggest further refinements."
|
| 1578 |
- Structure:
|
| 1579 |
+
- Detailed, conversational content
|
| 1580 |
+
- Clear messaging using top-scoring statements
|
| 1581 |
+
- Comprehensive integration of ALL trust statements
|
| 1582 |
+
- Focus on creating a narrative that naturally incorporates trust-building elements
|
| 1583 |
+
|
|
|
|
|
|
|
| 1584 |
3. **Emails, Newsletters, Direct Marketing Letters**
|
| 1585 |
- Intro Line: "Here is a draft of your [Email/Newsletter/Letter]. Feel free to suggest further refinements."
|
| 1586 |
+
- Content:
|
| 1587 |
+
- Concise, actionable messaging
|
| 1588 |
+
- Strong call to action
|
| 1589 |
+
- Explicit integration of ALL trust statements
|
| 1590 |
+
|
| 1591 |
+
**Common Requirements for ALL Content Types:**
|
| 1592 |
+
- Use ALL 9 trust statements
|
| 1593 |
+
- Maintain professional, engaging tone
|
| 1594 |
+
- Include specific details: names, numbers, programs
|
| 1595 |
+
- Avoid complex or flowery language
|
| 1596 |
+
|
| 1597 |
+
**Closing Sections (MANDATORY for ALL Content Types):**
|
| 1598 |
+
A. List of TrustBuilders® Used:
|
| 1599 |
+
- Verbatim list of ALL 9 statements
|
| 1600 |
+
- Indicate how each statement was integrated
|
| 1601 |
+
|
| 1602 |
+
B. Heuristics Used:
|
| 1603 |
+
- List 3-5 relevant cognitive or persuasion heuristics
|
| 1604 |
+
- Briefly explain their application
|
| 1605 |
+
|
| 1606 |
+
C. Creative Techniques Used:
|
| 1607 |
+
- Highlight metaphors, analogies, or creative approaches
|
| 1608 |
+
- Explain the strategic intent behind each technique
|
| 1609 |
+
|
| 1610 |
+
**Output Expectation:**
|
| 1611 |
+
1. Display Top Statements
|
| 1612 |
+
2. Generate Content Using ALL Statements
|
| 1613 |
+
3. Include Comprehensive Closing Sections
|
| 1614 |
+
|
| 1615 |
+
Remember: Every single trust statement MUST be visibly and meaningfully incorporated into the final content.
|
| 1616 |
|
| 1617 |
"""
|
| 1618 |
|