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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -15
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, 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 = ""
 
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 = ""