Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2246,53 +2246,72 @@ def handle_prompt(prompt):
|
|
| 2246 |
# Check if user request includes blog, article, or newsletter
|
| 2247 |
if any(keyword in prompt.lower() for keyword in ["blog","write", "article","report","annual report" "newsletter","news letter","website introduction"]):
|
| 2248 |
appended_instructions = (
|
| 2249 |
-
"Craft a flawless, engaging, and fluid compelling copy using *non-flowery language* that reads as though written by a professional copywriter with 25 years of experience. "
|
| 2250 |
-
"Avoid AI jargon, vague phrases, or overly formal language. Do not explicitly mention trust bucket names in headings or content. Instead, use the following enhanced guidelines for a polished, publication-ready copy that scores 10/10 in quality:\n\n"
|
| 2251 |
-
"Smooth transition between sections should be there strictly ensure that.it should follow previous paragraph."
|
| 2252 |
-
"1. **Interconnected Structure**: Ensure all sections and ideas are deeply interconnected with logical transitions between paragraphs. Build a cohesive narrative where each paragraph leads naturally into the next. Use linking phrases to reinforce connections (e.g., 'Building on this success...' or 'This aligns with our broader mission...'). Avoid isolated or disjointed sections.\n\n"
|
| 2253 |
|
| 2254 |
-
|
| 2255 |
-
|
| 2256 |
-
|
| 2257 |
-
|
| 2258 |
-
|
| 2259 |
-
|
| 2260 |
-
|
| 2261 |
-
|
| 2262 |
-
|
| 2263 |
-
|
| 2264 |
-
|
| 2265 |
-
|
| 2266 |
-
|
| 2267 |
-
|
| 2268 |
-
|
| 2269 |
-
|
| 2270 |
-
|
| 2271 |
-
|
| 2272 |
-
|
| 2273 |
-
|
| 2274 |
-
|
| 2275 |
-
|
| 2276 |
-
|
| 2277 |
-
|
| 2278 |
-
|
| 2279 |
-
|
| 2280 |
-
|
| 2281 |
-
|
| 2282 |
-
|
| 2283 |
-
|
| 2284 |
-
|
| 2285 |
-
|
| 2286 |
-
|
| 2287 |
-
|
| 2288 |
-
|
| 2289 |
-
|
| 2290 |
-
|
| 2291 |
-
|
| 2292 |
-
|
| 2293 |
-
|
| 2294 |
-
|
| 2295 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2296 |
|
| 2297 |
else:
|
| 2298 |
|
|
|
|
| 2246 |
# Check if user request includes blog, article, or newsletter
|
| 2247 |
if any(keyword in prompt.lower() for keyword in ["blog","write", "article","report","annual report" "newsletter","news letter","website introduction"]):
|
| 2248 |
appended_instructions = (
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2249 |
|
| 2250 |
+
"""
|
| 2251 |
+
Craft a flawless, engaging, and fluid compelling copy using *non-flowery language* that reads as though written by a professional copywriter with 25 years of experience.
|
| 2252 |
+
Avoid AI jargon, vague phrases, or overly formal language. Do not explicitly mention TrustBucket® names in headings or content. Instead, adhere to the following enhanced guidelines to ensure a polished, publication-ready copy that scores 10/10 in quality:
|
| 2253 |
+
|
| 2254 |
+
### **Key Guidelines**
|
| 2255 |
+
|
| 2256 |
+
1. **Deeply Interconnected Structure:**
|
| 2257 |
+
- Ensure all sections and ideas are seamlessly interconnected with logical transitions between paragraphs.
|
| 2258 |
+
- Use linking phrases to connect ideas (e.g., "Building on this success..." or "This aligns with our mission to...").
|
| 2259 |
+
- Avoid isolated or disjointed sections; every paragraph must flow naturally into the next.
|
| 2260 |
+
|
| 2261 |
+
2. **Content Formatting for Blogs and Newsletters:**
|
| 2262 |
+
- **For Blogs**:
|
| 2263 |
+
- Use detailed, narrative-style paragraphs to explore topics in depth.
|
| 2264 |
+
- Include creative subheadings for each section that summarize the content effectively.
|
| 2265 |
+
- **For Newsletters**:
|
| 2266 |
+
- Focus on concise summaries, bullet points for key highlights, and clear, visually digestible sections.
|
| 2267 |
+
- Ensure the content is easy to scan and quick to read.
|
| 2268 |
+
|
| 2269 |
+
3. **Seamless Integration of TrustBuilders®:**
|
| 2270 |
+
- Weave TrustBuilders® into the narrative naturally without isolating them as standalone points.
|
| 2271 |
+
- Highlight their relevance subtly to enhance credibility and trust while maintaining a smooth narrative flow.
|
| 2272 |
+
|
| 2273 |
+
4. **Relatable and Conversational Tone:**
|
| 2274 |
+
- Engage the reader with a human, approachable tone.
|
| 2275 |
+
- Use active voice and avoid repetitive phrasing, overly technical explanations, or mechanical structures.
|
| 2276 |
+
- Address newsletters directly to the reader using "you" and "your" for a personal connection.
|
| 2277 |
+
|
| 2278 |
+
5. **Audience-Centric Engagement:**
|
| 2279 |
+
- Tailor the content to resonate with the audience’s needs, challenges, and aspirations.
|
| 2280 |
+
- Use vivid imagery, relatable examples, and direct appeals to create emotional connections.
|
| 2281 |
+
- Highlight actionable insights and practical relevance to maintain engagement.
|
| 2282 |
+
|
| 2283 |
+
6. **Purpose-Driven Impact:**
|
| 2284 |
+
- Clearly define and achieve the content’s purpose—whether to inform, persuade, or inspire action.
|
| 2285 |
+
- Ensure every paragraph contributes to the overall objective and reinforces the key message.
|
| 2286 |
+
|
| 2287 |
+
7. **Content Elements for Newsletters:**
|
| 2288 |
+
- Use bullet points to emphasize key statistics, highlights, or impactful statements.
|
| 2289 |
+
- Summarize sections into digestible pieces for easy scanning.
|
| 2290 |
+
- Include clear calls-to-action (e.g., "Join us," "Learn more," "Donate now") at relevant points.
|
| 2291 |
+
|
| 2292 |
+
8. **Polished Presentation:**
|
| 2293 |
+
- Deliver a professional, cohesive, and error-free final output.
|
| 2294 |
+
- Highlight key points effectively and ensure the structure keeps readers engaged.
|
| 2295 |
+
|
| 2296 |
+
9. **Mandatory Sections:**
|
| 2297 |
+
- **List of TrustBuilders Used**: Provide TrustBuilders followed by *source links* in a separate section.
|
| 2298 |
+
- **Heuristics and Creative Techniques**:
|
| 2299 |
+
- Heuristics: List only (e.g., Social Proof, Authority, Commitment).
|
| 2300 |
+
- Creative Techniques: List relevant techniques (e.g., Storytelling, Emotional Appeal, Vivid Imagery).
|
| 2301 |
+
|
| 2302 |
+
10. **Flow and Consistency:**
|
| 2303 |
+
- Strengthen transitions between paragraphs to ensure a seamless narrative.
|
| 2304 |
+
- Newsletters must remain concise, with key points prominently displayed, while blogs should have a deeper narrative structure.
|
| 2305 |
+
|
| 2306 |
+
11. **Creative Subheadings:**
|
| 2307 |
+
- Each section must include an action-oriented subheading that captures the essence of the content.
|
| 2308 |
+
- Avoid generic or vague titles, and do not use -ing endings (e.g., "Driving Global Change" should be "Drive Global Change").
|
| 2309 |
+
|
| 2310 |
+
12. **Final Output Checklist:**
|
| 2311 |
+
- Ensure content is deeply interconnected, flowing seamlessly from one idea to the next.
|
| 2312 |
+
- Balance detail and brevity, tailoring the format to blogs or newsletters as required.
|
| 2313 |
+
- Use action-driven subheadings and avoid isolated or fragmented content blocks.
|
| 2314 |
+
""" )
|
| 2315 |
|
| 2316 |
else:
|
| 2317 |
|