Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2256,36 +2256,38 @@ def handle_prompt(prompt):
|
|
| 2256 |
# Check if user request includes blog, article, or newsletter
|
| 2257 |
if any(keyword in prompt.lower() for keyword in ["blog", "write","article","annual report","report", "newsletter","news letter ","website introduction"]):
|
| 2258 |
appended_instructions = (
|
| 2259 |
-
"Craft a flawless, engaging, and fluid compelling copy using *clear, professional
|
| 2260 |
"Avoid AI jargon, vague phrases, or overly formal language. Do not mention trustbucket names in the headings or content. Follow these enhanced guidelines to ensure a polished, publication-ready copy with a 10/10 quality: "
|
| 2261 |
|
| 2262 |
-
"1. **Interconnected Structure**: Ensure all sections and ideas flow seamlessly with logical transitions between paragraphs.
|
| 2263 |
|
| 2264 |
-
"2. **
|
| 2265 |
-
" - **Articles, Blogs, Reports**: Use 'we' to reflect
|
| 2266 |
-
" - **Newsletters**: Use 'you' to directly
|
| 2267 |
|
| 2268 |
-
"3. **Seamless Integration of TrustBuilders®**:
|
| 2269 |
|
| 2270 |
-
"4. **
|
| 2271 |
|
| 2272 |
-
"5. **
|
| 2273 |
|
| 2274 |
-
"6. **
|
| 2275 |
|
| 2276 |
-
"7. **
|
| 2277 |
-
|
| 2278 |
-
"
|
| 2279 |
|
| 2280 |
-
"
|
|
|
|
|
|
|
| 2281 |
|
| 2282 |
-
"
|
| 2283 |
" - Provide a **List of TrustBuilders Used** in a separate section, with accurate and properly formatted source links."
|
| 2284 |
" - Include a **Heuristics and Creative Techniques** section in footnote style:"
|
| 2285 |
" - Heuristics: Mention names only, such as 'social proof,' 'authority,' or 'commitment.'"
|
| 2286 |
" - Creative Techniques: Mention relevant techniques like 'storytelling' or 'vivid imagery,' without additional details."
|
| 2287 |
|
| 2288 |
-
"**MOST IMPORTANT RULE**: Each paragraph and section must transition logically into the next
|
| 2289 |
)
|
| 2290 |
else:
|
| 2291 |
appended_instructions = ""
|
|
|
|
| 2256 |
# Check if user request includes blog, article, or newsletter
|
| 2257 |
if any(keyword in prompt.lower() for keyword in ["blog", "write","article","annual report","report", "newsletter","news letter ","website introduction"]):
|
| 2258 |
appended_instructions = (
|
| 2259 |
+
"Craft a flawless, engaging, and fluid compelling copy using *clear, professional language* that feels as though it was written by a seasoned copywriter with 25 years of experience. "
|
| 2260 |
"Avoid AI jargon, vague phrases, or overly formal language. Do not mention trustbucket names in the headings or content. Follow these enhanced guidelines to ensure a polished, publication-ready copy with a 10/10 quality: "
|
| 2261 |
|
| 2262 |
+
"1. **Interconnected Structure**: Ensure all sections and ideas flow seamlessly with logical transitions between paragraphs. Avoid standalone or fragmented sections by linking each paragraph to the one before and after it, creating a unified and cohesive narrative."
|
| 2263 |
|
| 2264 |
+
"2. **Pronoun Flexibility for Format**: Adapt the tone and pronouns based on the content format: "
|
| 2265 |
+
" - **Articles, Blogs, Reports**: Use 'we' to reflect organizational authority and emphasize collective efforts."
|
| 2266 |
+
" - **Newsletters**: Use 'you' to directly engage the reader, making them feel personally connected to the content. Avoid distant references like 'they' or 'them.'"
|
| 2267 |
|
| 2268 |
+
"3. **Seamless Integration of TrustBuilders®**: Weave TrustBuilders® naturally into the narrative, integrating them into relevant contexts without isolating or explicitly listing them in the main body. Use them to build credibility and enhance the emotional impact of the message."
|
| 2269 |
|
| 2270 |
+
"4. **Human and Relatable Tone**: Write in a conversational tone that resonates with the audience, addressing their needs and aspirations. Use active voice consistently to ensure clarity and engagement."
|
| 2271 |
|
| 2272 |
+
"5. **Enhanced Storytelling and Emotional Resonance**: Incorporate real-life anecdotes, vivid imagery, or scenarios that humanize the content. Begin with a compelling hook, maintain momentum with smooth transitions, and conclude with a strong call-to-action (CTA)."
|
| 2273 |
|
| 2274 |
+
"6. **Audience-Centric Engagement**: Tailor the content to the reader’s needs, challenges, and goals. For newsletters, directly highlight their role in the impact ('Your support made this possible'). For blogs and articles, focus on insights and actionable takeaways."
|
| 2275 |
|
| 2276 |
+
"7. **Purpose-Driven Content**: Define the content’s purpose clearly—whether it is to inform, persuade, or inspire action. Ensure every section contributes to this purpose and avoids redundancy."
|
| 2277 |
+
|
| 2278 |
+
"8. **Polished Presentation**: Deliver a professional, error-free final output. Use consistent formatting, well-structured paragraphs, and engaging, action-oriented headlines tailored to the format. Avoid abrupt shifts in tone or focus."
|
| 2279 |
|
| 2280 |
+
"9. **Dynamic Headlines and Subheadings**: Use action-oriented, specific headlines that reflect the content’s key message. Tailor headlines to the format: "
|
| 2281 |
+
" - Blogs/Articles: Focus on intrigue and information."
|
| 2282 |
+
" - Newsletters: Highlight reader contributions, e.g., 'How You Transformed Lives in 2023.'"
|
| 2283 |
|
| 2284 |
+
"10. **TrustBuilders and Techniques**: "
|
| 2285 |
" - Provide a **List of TrustBuilders Used** in a separate section, with accurate and properly formatted source links."
|
| 2286 |
" - Include a **Heuristics and Creative Techniques** section in footnote style:"
|
| 2287 |
" - Heuristics: Mention names only, such as 'social proof,' 'authority,' or 'commitment.'"
|
| 2288 |
" - Creative Techniques: Mention relevant techniques like 'storytelling' or 'vivid imagery,' without additional details."
|
| 2289 |
|
| 2290 |
+
"**MOST IMPORTANT RULE**: Each paragraph and section must transition logically into the next. The content should feel like a single, cohesive story, holding the reader’s attention while conveying the intended message with clarity and impact. This applies across all formats, ensuring a seamless and engaging output tailored to the audience and purpose."
|
| 2291 |
)
|
| 2292 |
else:
|
| 2293 |
appended_instructions = ""
|