Wajahat698 commited on
Commit
e830d15
·
verified ·
1 Parent(s): f274d6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -23
app.py CHANGED
@@ -2261,29 +2261,37 @@ def handle_prompt(prompt):
2261
  # Check if user request includes blog, article, or newsletter
2262
  if any(keyword in prompt.lower() for keyword in ["blog", "write","article","annual report","report", "newsletter","news letter ","website introduction"]):
2263
  appended_instructions = (
2264
- "Craft a compelling, seamless, and publication-ready copy using *precise, professional language* that feels like the work of a seasoned copywriter with 25 years of experience. "
2265
- "Avoid flowery language, vague expressions, or formal overtones. Follow these enhanced guidelines to ensure exceptional quality: "
2266
-
2267
- "1. **Deep Interconnection**: Ensure all sections and paragraphs are deeply interconnected. Each section must logically transition to the next, creating a cohesive narrative that flows naturally. Avoid fragmented or disjointed content that feels like separate sections. The entire piece should read as one unified story. "
2268
-
2269
- "2. **Integrated TrustBuilders®**: Naturally incorporate TrustBuilders® into the narrative to enhance credibility and trust. Avoid explicitly listing them as standalone points or isolating them in the text. Weave them into context-rich sentences that add value and relevance. "
2270
-
2271
- "3. **Human-Centric Storytelling**: Engage readers by using relatable examples and emotionally resonant stories. Anchor the narrative in human experiences to create an emotional connection with the audience. Avoid overly technical or impersonal tones; make the story come alive through vivid imagery and relatable scenarios. "
2272
-
2273
- "4. **Logical Flow with Storytelling Hooks**: Start each section with a compelling hook or question to draw readers in. Transition smoothly between paragraphs to maintain momentum. The conclusion of one idea should naturally lead to the beginning of the next, reinforcing the overall theme. "
2274
-
2275
- "5. **Audience-Centric Engagement**: Address the audience's needs, goals, and challenges directly. Use specific, actionable insights that resonate with their interests and inspire action. Personalize the tone to feel approachable while maintaining professionalism. "
2276
-
2277
- "6. **Purpose-Driven Structure**: Ensure the copy aligns with its intended purpose—whether to inform, persuade, or inspire action. Every paragraph must serve the overarching objective and reinforce the core message. Avoid unnecessary repetition or irrelevant tangents. "
2278
-
2279
- "7. **Polished Headlines and Subheadings**: Use creative and emotionally engaging headlines that summarize the content of each section. Subheadings should enhance the readability and guide the audience through the narrative. Avoid generic phrases; opt for evocative, action-oriented language. "
2280
-
2281
- "8. **Refined Presentation**: Deliver a polished, publication-ready output. The response must be error-free, professionally formatted, and demonstrate mastery of language and storytelling. "
2282
-
2283
- "9. **Creative Techniques and Heuristics**: "
2284
- " - Provide a separate 'List of TrustBuilders Used' section containing trustbuilders with source links for credibility. "
2285
- " - List relevant heuristics (e.g., social proof, authority) and creative techniques (e.g., storytelling, vivid imagery) in a footnote-style format for added clarity. "
2286
- )
 
 
 
 
 
 
 
 
2287
  else:
2288
  appended_instructions = ""
2289
  final_prompt = f"{prompt} {base_instructions} {appended_instructions}"
 
2261
  # Check if user request includes blog, article, or newsletter
2262
  if any(keyword in prompt.lower() for keyword in ["blog", "write","article","annual report","report", "newsletter","news letter ","website introduction"]):
2263
  appended_instructions = (
2264
+ "Craft a seamless, compelling, and professional newsletter using *clear, precise language* that feels like the work of an experienced copywriter. "
2265
+ "The tone should be conversational yet professional, avoiding jargon, vague expressions, or overly formal language. Follow these enhanced guidelines to ensure the newsletter flows naturally and engages the reader: "
2266
+
2267
+ "1. **Deep Interconnection**: Structure the newsletter so that each paragraph connects logically to the next, ensuring a cohesive flow. Avoid standalone paragraphs or disjointed sections. Each idea should build on the last, weaving a single, unified narrative throughout. "
2268
+
2269
+ "2. **TrustBuilders® Integration**: Integrate TrustBuilders® naturally into the content without isolating them or explicitly listing them. Embed them in engaging sentences that strengthen the narrative and build credibility without breaking the flow. "
2270
+
2271
+ "3. **Storytelling with Emotional Appeal**: Use relatable examples and emotionally resonant storytelling to draw the reader in. Highlight the human impact of initiatives or projects to create a strong emotional connection. Avoid technical jargon and focus on making the content feel personal and impactful. "
2272
+
2273
+ "4. **Active Headlines and Subheadings**: Use concise, action-oriented headlines and subheadings for each paragraph to guide the reader. Headlines should summarize the content and entice the reader to continue. Avoid vague or generic phrasing like 'Empowering Communities' and instead use specific, engaging language. "
2274
+
2275
+ "5. **Engaging Transitions**: Ensure smooth transitions between sections so that the newsletter reads as one cohesive piece. For example, use phrases like, *'Building on this foundation...' or 'Extending the impact of our earlier initiatives...' to maintain narrative momentum.* "
2276
+
2277
+ "6. **Reader-Centric Focus**: Tailor the content to resonate with the audience’s needs, challenges, and aspirations. Include actionable insights and calls-to-action that inspire readers to get involved, whether through donating, volunteering, or learning more. "
2278
+
2279
+ "7. **Purpose-Driven Clarity**: Ensure every paragraph and section reinforces the core message of the newsletter—whether to inform, inspire, or persuade. Avoid redundant details or tangents that detract from the focus. "
2280
+
2281
+ "8. **Polished and Professional Presentation**: Deliver a refined, error-free final copy that is ready for publication. Use active voice consistently and ensure every paragraph demonstrates mastery of language and storytelling techniques. "
2282
+
2283
+ "9. **Creative Techniques and Heuristics**: "
2284
+ " - In a separate section, list 'TrustBuilders Used' with source links to enhance credibility. "
2285
+ " - Include heuristics (e.g., social proof, authority, commitment) and creative techniques (e.g., storytelling, vivid imagery) in a footnote-style format. "
2286
+
2287
+ "10. **Structure-Specific Rules for Newsletters**: "
2288
+ " - Headlines and subheadings must precede each paragraph, summarizing the content in a compelling way. "
2289
+ " - Avoid direct references to TrustBuckets in headings or the body of the newsletter. "
2290
+ " - Ensure the newsletter feels like a continuous narrative, not a series of independent sections or blocks. "
2291
+ " - Do not explicitly list TrustBuilders in the main body; weave them seamlessly into the narrative. "
2292
+
2293
+ "11. **MOST IMPORTANT RULE**: The newsletter must have a seamless flow, ensuring every section connects naturally. Avoid isolated paragraphs or mechanical structures that make the content feel fragmented. The content should flow as a single, interconnected piece, engaging the reader from start to finish and delivering a clear, impactful message."
2294
+ )
2295
  else:
2296
  appended_instructions = ""
2297
  final_prompt = f"{prompt} {base_instructions} {appended_instructions}"