Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2236,67 +2236,39 @@ def handle_prompt(prompt):
|
|
| 2236 |
# Check if user request includes blog, article, or newsletter
|
| 2237 |
if any(keyword in prompt.lower() for keyword in ["blog", "write", "article", "annual report", "report", "newsletter", "news letter ", "website introduction"]):
|
| 2238 |
appended_instructions = (
|
| 2239 |
-
"
|
| 2240 |
-
Avoid AI jargon, vague
|
| 2241 |
-
|
| 2242 |
-
|
| 2243 |
-
- **
|
| 2244 |
-
- **
|
| 2245 |
-
|
| 2246 |
-
|
| 2247 |
-
|
| 2248 |
-
-
|
| 2249 |
-
-
|
| 2250 |
-
|
| 2251 |
-
|
| 2252 |
-
|
| 2253 |
-
|
| 2254 |
-
|
| 2255 |
-
|
| 2256 |
-
|
| 2257 |
-
|
| 2258 |
-
|
| 2259 |
-
|
| 2260 |
-
|
| 2261 |
-
|
| 2262 |
-
|
| 2263 |
-
|
| 2264 |
-
|
| 2265 |
-
|
| 2266 |
-
-
|
| 2267 |
-
|
| 2268 |
-
|
| 2269 |
-
-
|
| 2270 |
-
|
| 2271 |
-
|
| 2272 |
-
### **Storytelling Excellence:**
|
| 2273 |
-
- Begin with a compelling hook to draw the reader in.
|
| 2274 |
-
- Maintain momentum by integrating real-life examples, scenarios, or success stories.
|
| 2275 |
-
- Conclude with a strong call-to-action (CTA) that inspires readers to act or reflect.
|
| 2276 |
-
|
| 2277 |
-
### **Purpose and Consistency:**
|
| 2278 |
-
- Define and maintain the content’s purpose—whether to inform, persuade, or inspire action.
|
| 2279 |
-
- Ensure every paragraph aligns with this purpose, supporting the overarching objective and reinforcing key messages.
|
| 2280 |
-
|
| 2281 |
-
### **Polished Presentation:**
|
| 2282 |
-
- Deliver a clean, professional, and error-free final output.
|
| 2283 |
-
- Use advanced language, logical organization, and cohesive formatting with clear headings and subheadings.
|
| 2284 |
-
|
| 2285 |
-
### **Impactful Headlines:**
|
| 2286 |
-
- Headlines must clearly convey what the reader gains or how they can contribute, highlighting specific, vivid outcomes.
|
| 2287 |
-
- Avoid generic phrases like 'Driving Change'; instead, use targeted headlines with clear benefits.
|
| 2288 |
-
|
| 2289 |
-
### **TrustBuilders and Techniques:**
|
| 2290 |
-
- Provide a **List of TrustBuilders Used** in a separate section with properly formatted source links.
|
| 2291 |
-
- Include a **Heuristics and Creative Techniques** section in footnote style:
|
| 2292 |
-
- **Heuristics:** List names only (e.g., 'social proof,' 'authority,' 'commitment').
|
| 2293 |
-
- **Creative Techniques:** Mention relevant techniques (e.g., 'storytelling,' 'vivid imagery').
|
| 2294 |
-
|
| 2295 |
-
### **Critical Rule:**
|
| 2296 |
-
- Every paragraph and section must flow as part of a unified narrative, avoiding isolated or disjointed paragraphs.
|
| 2297 |
-
- Maintain logical transitions and thematic consistency, ensuring the content reads as a cohesive, engaging story.
|
| 2298 |
-
- For newsletters, use 'you' to establish a personal tone. Craft content that captivates, informs, and inspires, delivering a clear and impactful message.
|
| 2299 |
-
"""
|
| 2300 |
)
|
| 2301 |
|
| 2302 |
|
|
|
|
| 2236 |
# Check if user request includes blog, article, or newsletter
|
| 2237 |
if any(keyword in prompt.lower() for keyword in ["blog", "write", "article", "annual report", "report", "newsletter", "news letter ", "website introduction"]):
|
| 2238 |
appended_instructions = (
|
| 2239 |
+
"Craft a flawless, engaging, and fluid marketing copy using *non-flowery language* that reads as though written by a seasoned marketing copywriter with 25 years of experience. "
|
| 2240 |
+
"Avoid AI jargon, vague phrases, or overly formal language. Do not mention TrustBucket® names in the headings or content. Follow these enhanced guidelines for a polished, publication-ready copy with a 10/10 quality rating: "
|
| 2241 |
+
|
| 2242 |
+
"**Adapt Tone to Format**: Adjust the tone and pronouns according to the content format: "
|
| 2243 |
+
" - **Articles, Blogs, Reports**: Use 'we' to emphasize organizational authority and collective efforts. "
|
| 2244 |
+
" - **Newsletters**: Use 'you' to directly engage the reader and make the content personal and relatable. Avoid impersonal references like 'they' or 'them.' "
|
| 2245 |
+
|
| 2246 |
+
"**Dynamic Headlines and Subheadings**: Each section or paragraph must include a headline or subheading that: "
|
| 2247 |
+
" - Is active, action-oriented, and reader-focused."
|
| 2248 |
+
" - Clearly summarizes the content below, guiding the reader through the narrative with precision and impact."
|
| 2249 |
+
" - Avoids '-ing' endings in favor of stronger, direct phrasing (e.g., 'Empower Communities Today' instead of 'Empowering Communities')."
|
| 2250 |
+
|
| 2251 |
+
"**1. Unified Narrative Structure**: Ensure all sections and ideas flow seamlessly with logical transitions between paragraphs. Build a cohesive narrative where every part supports the overall theme, reinforcing the message step by step. Avoid standalone or fragmented sections by creating natural links between them."
|
| 2252 |
+
|
| 2253 |
+
"**2. Seamless TrustBuilders® Integration**: Integrate TrustBuilders® naturally into the narrative, weaving them fluidly into sentences to enhance credibility and trust. Avoid isolating or explicitly listing them in the main body. Instead, use them contextually to support the story and reader engagement."
|
| 2254 |
+
|
| 2255 |
+
"**3. Conversational and Relatable Tone**: Write in a conversational tone that directly addresses the reader. For newsletters, consistently use 'you' and 'your' to foster involvement. Use active voice and ensure the tone is approachable, engaging, and professional."
|
| 2256 |
+
|
| 2257 |
+
"**4. Audience-Centric Engagement**: Tailor the content to address the audience's specific needs, aspirations, and challenges. Use vivid imagery, relatable examples, and direct appeals to foster emotional connections. Provide actionable insights to ensure the audience feels understood and valued."
|
| 2258 |
+
|
| 2259 |
+
"**5. Storytelling Excellence**: Begin with a compelling hook to captivate the reader. Maintain momentum with strong transitions, real-life examples, and vivid scenarios. Conclude with a clear, actionable, and inspiring CTA that motivates the reader to take the next step."
|
| 2260 |
+
|
| 2261 |
+
"**6. Purposeful and Impactful Content**: Clearly define the content’s purpose—whether to inform, persuade, or inspire action. Ensure every paragraph aligns with and reinforces this purpose, contributing meaningfully to the overall message."
|
| 2262 |
+
|
| 2263 |
+
"**7. Polished and Professional Presentation**: Deliver a clean, error-free final output. Ensure advanced language use, clear structure, and engaging readability. Every headline, subheading, and paragraph must flow naturally into the next, creating a visually inviting and cohesive piece."
|
| 2264 |
+
|
| 2265 |
+
"**8. TrustBuilders and Techniques**: "
|
| 2266 |
+
" - Provide a **List of TrustBuilders Used** in a separate section, with accurate and properly formatted source links. "
|
| 2267 |
+
" - Include a **Heuristics and Creative Techniques** section in footnote style: "
|
| 2268 |
+
" - Heuristics: Mention names only (e.g., 'social proof,' 'authority,' or 'commitment'). "
|
| 2269 |
+
" - Creative Techniques: Mention only relevant marketing techniques (e.g., 'storytelling,' 'vivid imagery') without additional details. "
|
| 2270 |
+
|
| 2271 |
+
"**Critical Rule**: Each paragraph and section must flow logically into the next, creating a seamless, interconnected narrative. Avoid isolated or fragmented sections. The entire content should feel like a single, cohesive story, where every part builds on the previous one to engage the reader and convey the intended message effectively. Headlines must clearly and compellingly summarize the section below, enhancing readability and maintaining engagement."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2272 |
)
|
| 2273 |
|
| 2274 |
|