Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2256,23 +2256,36 @@ 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 *non-flowery language* that reads as though written by a
|
| 2260 |
-
"
|
|
|
|
| 2261 |
"1. **Interconnected 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 at every step. Clearly link each section to the one before and after it, avoiding disjointed or standalone paragraphs."
|
| 2262 |
-
|
| 2263 |
-
"
|
| 2264 |
-
"
|
| 2265 |
-
"
|
| 2266 |
-
|
| 2267 |
-
"
|
| 2268 |
-
|
| 2269 |
-
"
|
| 2270 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2271 |
" - Provide a **List of TrustBuilders Used** in a separate section, with accurate and properly formatted source links."
|
| 2272 |
" - Include a **Heuristics and Creative Techniques** section in footnote style:"
|
| 2273 |
" - Heuristics: Mention names only, such as 'social proof,' 'authority,' or 'commitment.'"
|
| 2274 |
-
" - Creative Techniques: Mention
|
| 2275 |
-
|
|
|
|
| 2276 |
)
|
| 2277 |
else:
|
| 2278 |
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, and non-flowery language* that reads as though 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. Build a cohesive narrative where every part supports the overall theme, reinforcing the message at every step. Clearly link each section to the one before and after it, avoiding disjointed or standalone paragraphs."
|
| 2263 |
+
|
| 2264 |
+
"2. **Format-Specific Perspective**: Adapt the tone and pronouns based on the required format: "
|
| 2265 |
+
" - **Articles, Blogs, Reports**: Use 'we' to reflect an authoritative and organizational tone, emphasizing collective efforts and achievements."
|
| 2266 |
+
" - **Newsletters**: Use 'you' to directly address the reader, creating a personal and engaging connection. Replace 'we' with 'you' and 'your' wherever appropriate."
|
| 2267 |
+
|
| 2268 |
+
"3. **Seamless Integration of TrustBuilders®**: Naturally incorporate TrustBuilders® into the narrative without isolating or explicitly listing them in the main body. Weave them into sentences to enhance credibility and trust while maintaining readability and engagement."
|
| 2269 |
+
|
| 2270 |
+
"4. **Audience-Centric Tone**: Tailor the content to the audience's needs and goals. In blogs, articles, and reports, focus on providing insights and fostering understanding. In newsletters, create an emotional connection with the reader by emphasizing their role in the story."
|
| 2271 |
+
|
| 2272 |
+
"5. **Engagement Through Storytelling**: Begin with a compelling hook, maintain momentum with smooth transitions, and conclude with a strong call-to-action (CTA). Use storytelling to humanize the content, drawing from real-life examples to make it relatable and memorable."
|
| 2273 |
+
|
| 2274 |
+
"6. **Purpose-Driven Content**: Clearly define and achieve the content’s purpose—whether to inform, persuade, or inspire action. Every paragraph should reinforce this purpose and avoid redundant information."
|
| 2275 |
+
|
| 2276 |
+
"7. **Creative Headlines and Subheadings**: Use action-oriented, descriptive headlines that immediately grab attention. Avoid generic phrases like 'Making a Difference'; instead, use specifics like 'How Clean Water Transformed Lives in Kenya.' Tailor headlines to the format: "
|
| 2277 |
+
" - Blogs/Articles: Focus on intrigue and information."
|
| 2278 |
+
" - Newsletters: Highlight reader impact, e.g., 'Your Generosity Changed Lives in 2023.'"
|
| 2279 |
+
|
| 2280 |
+
"8. **Polished and Professional Presentation**: Ensure the final output is refined, error-free, and suitable for publication. Maintain consistency in tone, formatting, and structure. Use active voice to create dynamic, engaging content."
|
| 2281 |
+
|
| 2282 |
+
"9. **TrustBuilders and Techniques**: "
|
| 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, creating a seamless, interconnected narrative. Avoid isolated or fragmented sections. The content should feel like a single, cohesive story, holding the reader’s attention while conveying the intended message with clarity and impact."
|
| 2289 |
)
|
| 2290 |
else:
|
| 2291 |
appended_instructions = ""
|