Wajahat698 commited on
Commit
e4eeec6
·
verified ·
1 Parent(s): 4913b22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -13
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 professional copywriter having 25 years of experience. "
2260
- "Do not use AI jargon, vague phrases, or overly formal language. Avoid mentioning trustbucket names in the headings and content. Follow these enhanced guidelines to ensure a polished, publication-ready copy with a 10/10 quality: "
 
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
- "2. **Consistent Newsletter Format**: Adhere to a newsletter format with clear, engaging headlines for each section. Summarize the section's key message in the headline to guide the reader. Ensure the subheadings and content feel unified under an overarching narrative, avoiding fragmented ideas."
2263
- "3. **Seamless Integration of TrustBuilders®**: Naturally incorporate TrustBuilders® into the narrative without isolating or explicitly listing them in the main body. Instead, weave them fluidly into sentences to build credibility and trust while maintaining the content’s readability and engagement. For example, integrate facts into emotionally resonant storytelling."
2264
- "4. **Human and Relatable Tone**: Write in a conversational tone that addresses the reader directly, using 'you' and 'your' instead of 'they' or 'them.' Engage readers by making them feel part of the story. Use active voice consistently, ensuring the tone is both approachable and professional."
2265
- "5. **Audience-Centric Engagement**: Tailor the content to meet the audience's needs, goals, and challenges. Use vivid imagery, relatable examples, and direct appeals to create emotional connections. Emphasize actionable insights and practical relevance to ensure the audience feels seen and understood. Frame content in a way that directly relates to their lives."
2266
- "6. **Enhanced 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 message, drawing from real-life examples or vivid scenarios to make the content relatable and memorable."
2267
- "7. **Purpose-Driven Impact**: Clearly define and achieve the content’s purpose—whether to inform, persuade, or inspire action. Ensure every paragraph reinforces the core message and contributes to the overall objective. Avoid redundant or repetitive information."
2268
- "8. **Polished Presentation**: Deliver a refined, professional, and error-free final output. Ensure that headlines, subheadings, and paragraphs flow together naturally. The content should demonstrate mastery of language and attention to detail."
2269
- "9. **Creative and Engaging Headlines**: Use action-oriented, reader-focused headlines that immediately draw attention. Avoid generic phrases like 'Empowering Change' or 'Driving Impact' unless paired with specific outcomes or vivid details. Instead, use phrases like 'Your Support Transforms Lives' or 'Creating Opportunities Together.'"
2270
- "10. **TrustBuilders and Techniques**: "
 
 
 
 
 
 
 
 
 
 
 
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 only relevant techniques like 'storytelling' or 'vivid imagery.'"
2275
- "**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 where every part contributes to the overall message. This ensures the article or newsletter engages readers more effectively, holding their attention and conveying the intended message with clarity and impact."
 
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 = ""