Wajahat698 commited on
Commit
ade57cf
·
verified ·
1 Parent(s): 4382e74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -16
app.py CHANGED
@@ -2238,28 +2238,34 @@ def handle_prompt(prompt):
2238
  # Check if user request includes blog, article, or newsletter
2239
  if any(keyword in prompt.lower() for keyword in ["blog", "write","article","annual report","report", "newsletter","news letter ","website introduction"]):
2240
  appended_instructions = (
2241
- "Craft a flawless, engaging, and fluid compelling copy using *non-flowery language* that reads as though written by a professional marketing copywriter with 25 years of experience. "
2242
- "Do not use AI jargon, vague phrases, or overly formal language. Avoid mentioning TrustBucket® names in the headings or content. Follow these enhanced guidelines to ensure a polished, publication-ready copy with a 10/10 quality: "
2243
 
2244
- "**Pronoun Flexibility for Format**: Adapt tone and pronouns based on the content format: "
2245
- " - **Articles, Blogs, Reports**: Use 'we' to reflect organizational authority and emphasize collective efforts. "
2246
- " - **Newsletters**: Use 'you' to directly engage the reader, making them feel personally connected to the content. Avoid distant references like 'they' or 'them.' "
2247
-
2248
- "1. **Headlines with Paragraphs**: Each paragraph or section must have a headline or subheading that is action-oriented and summarizes the paragraph's content effectively. These headlines should engage the reader and act as a roadmap for the content. For example, use headlines like 'Driving Innovation with Purpose' or 'Empowering Communities Through Strategic Investments' to guide the reader."
2249
- "2. **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."
2250
- "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."
2251
- "4. **Human and Relatable Tone**: Write in a conversational tone that addresses the reader directly, using 'you' and 'your' for newsletters to make them feel involved. Use active voice consistently, ensuring the tone is approachable yet professional."
2252
- "5. **Audience-Centric Engagement**: Tailor the content to meet the audience's needs, goals, and challenges. Create emotional connections by using relatable examples, vivid imagery, and direct appeals. Emphasize actionable insights and practical relevance to ensure the audience feels seen and understood."
2253
- "6. **Enhanced Storytelling and Engagement**: Use storytelling techniques with clear, action-oriented headlines and subheadings. Begin with a compelling hook, maintain momentum through transitions, and conclude with a strong call-to-action (CTA). Ensure the entire copy feels unified and purposeful."
2254
- "7. **Purpose-Driven Impact**: Clearly define and achieve the content’s purpose—whether to inform, persuade, or inspire action. Ensure every paragraph serves the overall objective while reinforcing the key message."
2255
- "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."
 
 
 
 
 
 
2256
  "9. **TrustBuilders and Techniques**: "
2257
  " - Provide a **List of TrustBuilders Used** in a separate section, with accurate and properly formatted source links."
2258
- " - Include a **Heuristics and Creative Techniques** section in footnote style: "
2259
  " - Heuristics: Mention names only, such as 'social proof,' 'authority,' or 'commitment.'"
2260
  " - Creative Techniques: Mention only relevant techniques like 'storytelling' or 'vivid imagery.'"
2261
 
2262
- "**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. Headlines must effectively summarize the section below them and enhance readability by serving as a clear guide for the reader."
2263
  )
2264
 
2265
  appended_instructions = ""
 
2238
  # Check if user request includes blog, article, or newsletter
2239
  if any(keyword in prompt.lower() for keyword in ["blog", "write","article","annual report","report", "newsletter","news letter ","website introduction"]):
2240
  appended_instructions = (
2241
+ "Craft a flawless, engaging, and fluid copy using *non-flowery language* that reads as though written by a professional marketing copywriter with 25 years of experience. "
2242
+ "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: "
2243
 
2244
+ "**Pronoun Flexibility for Format**: Adapt the tone and pronouns based on the content format: "
2245
+ " **Articles, Blogs, Reports**: Use 'we' to reflect organizational authority and emphasize collective efforts. "
2246
+ " **Newsletters**: Use 'you' to directly engage the reader, making them feel personally connected to the content. Avoid distant references like 'they' or 'them.' "
2247
+
2248
+ "Make headlines with paragraphs in active language without ing, action-oriented, and reader-focused, reflecting the essence of each section. "
2249
+ "Add explicit CTA for newsletters and blogs to be more actionable and emotionally compelling. "
2250
+
2251
+ "** Strictly Make Stronger Transitions Between Sections**: Ensure each section logically builds upon the previous one. Seamlessly transition between ideas, reinforcing the overarching theme and avoiding disjointed paragraphs. "
2252
+ "Incorporate vivid, descriptive language to help readers visualize the impact of their support. "
2253
+
2254
+ "1. **Interconnected Structure**: Ensure all sections and ideas flow seamlessly, logically transitioning between paragraphs. Build a cohesive narrative where every part supports the overall theme, reinforcing the message at every step. Avoid excessive bullet points; write in a fluid, interconnected manner with headings guiding the narrative."
2255
+ "2. **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. "
2256
+ "3. **Human Tone**: Write in a relatable, conversational tone that feels natural. Avoid repetitive phrasing, overly technical explanations, or mechanical structures. Use active voice consistently to maintain a tone that is both approachable and professional."
2257
+ "4. **Audience-Centric Engagement**: Tailor the content to the audience's needs, goals, and challenges. Use relatable examples, vivid imagery, and direct appeals to foster emotional connections. Emphasize actionable insights and practical relevance to ensure the audience feels understood."
2258
+ "5. **Storytelling Excellence**: Use storytelling techniques to enhance emotional engagement. Begin with a compelling hook, maintain momentum through transitions, and conclude with a strong call-to-action (CTA) that inspires the reader to act or reflect."
2259
+ "6. **Purpose-Driven Impact**: Clearly define the content’s purpose—whether to inform, persuade, or inspire action. Ensure every paragraph serves the overarching objective while reinforcing the core message."
2260
+ "7. **Polished Presentation**: Deliver a refined, professional, and error-free final output. The content should demonstrate mastery of language and design, ensuring clarity and engagement at every level."
2261
+ "8. **Creative and Engaging Headlines**: Write action-oriented, reader-focused headlines. Avoid generic phrases like 'Empowering Change' unless paired with specific outcomes or vivid details. Highlight what the audience gains or contributes."
2262
  "9. **TrustBuilders and Techniques**: "
2263
  " - Provide a **List of TrustBuilders Used** in a separate section, with accurate and properly formatted source links."
2264
+ " - Include a **Heuristics and Creative Techniques** section in footnote style:"
2265
  " - Heuristics: Mention names only, such as 'social proof,' 'authority,' or 'commitment.'"
2266
  " - Creative Techniques: Mention only relevant techniques like 'storytelling' or 'vivid imagery.'"
2267
 
2268
+ "**MOST IMPORTANT RULE**: Every section and paragraph must transition logically into the next, creating a seamless, interconnected narrative. Avoid isolated or fragmented sections. The content must read as a cohesive story, holding the reader’s attention and conveying the intended message with clarity and impact. "
2269
  )
2270
 
2271
  appended_instructions = ""