Wajahat698 commited on
Commit
6972eed
·
verified ·
1 Parent(s): cc04795

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -34
app.py CHANGED
@@ -2236,40 +2236,38 @@ def handle_prompt(prompt):
2236
  # Check if user request includes blog, article, or newsletter
2237
  if any(keyword in prompt.lower() for keyword in ["blog", "write","article","annual report","report", "newsletter","news letter ","website introduction"]):
2238
  appended_instructions = (
2239
- "Craft a flawless, engaging, and fluid copy using *non-flowery language* that reads as though written by a seasoned marketing copywriter with 25 years of experience. "
2240
- "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: "
2241
-
2242
- "**Format**: Adapt the tone and pronouns based on the content format: "
2243
- " - **Articles, Blogs, Reports**: Use 'we' to reflect organizational authority and emphasize collective efforts. "
2244
- " - **Newsletters**: Use 'you' or 'your' to directly engage the reader, making them feel personally connected to the content. Avoid distant references like 'they' or 'them'.Use 'you' to directly involve the reader in the narrative, particularly in CTAs."
2245
-
2246
- "Make headlines and sub-headings active, action-oriented, and reader-focused, reflecting the essence of each section without using '-ing'. "
2247
-
2248
- "**Strictly Make Stronger Transitions Between Sections**: Ensure each section logically builds upon the previous one, seamlessly reinforcing the overarching theme and avoiding disjointed paragraphs. "
2249
-
2250
- "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. Avoid excessive bullet points; write in a fluid, interconnected manner with headings guiding the narrative. "
2251
-
2252
- "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. "
2253
-
2254
- "3. **Human Tone**: Write in a relatable, conversational style. Avoid repetitive phrasing, overly technical explanations, or mechanical structures. Use active voice to maintain a tone that is both approachable and professional. "
2255
-
2256
- "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 so the audience feels understood. "
2257
-
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
-
2260
- "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. "
2261
-
2262
- "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. "
2263
-
2264
- "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. "
2265
-
2266
- "9. **TrustBuilders and Techniques**: "
2267
- " - Provide a **List of TrustBuilders Used** in a separate section, with accurate and properly formatted source links. "
2268
- " - Include a **Heuristics and Creative Techniques** section in footnote style: "
2269
- " - Heuristics: Mention names only, such as 'social proof,' 'authority,' or 'commitment.' "
2270
- " - Creative Techniques: Mention only relevant techniques like 'storytelling' or 'vivid imagery.' "
2271
-
2272
- "**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."
2273
  )
2274
 
2275
  appended_instructions = ""
 
2236
  # Check if user request includes blog, article, or newsletter
2237
  if any(keyword in prompt.lower() for keyword in ["blog", "write","article","annual report","report", "newsletter","news letter ","website introduction"]):
2238
  appended_instructions = (
2239
+ "Craft a flawless, engaging, and fluid marketing copy using *non-flowery language* that reads as though written by a seasoned marketing copywriter with 25 years of experience. "
2240
+ "Avoid AI jargon, vague expressions, or overly formal language. Omit any mention of trustbucket names in headings or content. Adhere to these enhanced guidelines for a polished, publication-ready output with a 10/10 quality rating: "
2241
+
2242
+ "**Content Format**: Use 'you' or 'your' for newsletters to create a personal connection. Avoid distant references like 'they' or 'them.' In articles, blogs, or reports, use 'we' to reflect organizational authority. Always tailor the tone to the appropriate format. "
2243
+
2244
+ "**Action-Oriented Headlines**: Each section must begin with a headline or subheading in active language, avoiding '-ing' endings. Headlines should directly address the reader, summarize the paragraph’s main idea, and offer a clear benefit or outcome (e.g., 'You Drive Sustainable Development' rather than 'Driving Sustainable Development'). "
2245
+
2246
+ "**Seamless Transitions Between Sections**: Ensure every section naturally builds on the previous one. Use linking phrases and references that maintain a unified theme, avoiding standalone or disjointed paragraphs. "
2247
+
2248
+ "**1. Interconnected Structure**: Write in a cohesive, paragraph-based narrative with minimal bullet points. Each paragraph must logically connect to the previous paragraph, reinforcing a single overarching message. "
2249
+
2250
+ "**2. TrustBuilders® Integration**: Weave TrustBuilders® organically into sentences that highlight credibility and impact. Do not list them separately in the main text; instead, incorporate them in context to maintain readability and flow. "
2251
+
2252
+ "**3. Human Tone**: Adopt a relatable, conversational style. Use active voice consistently, and avoid technical jargon or repetitive phrasing. The goal is to sound approachable, professional, and clear. "
2253
+
2254
+ "**4. Audience-Centric Approach**: Place the reader’s needs, aspirations, and challenges at the forefront. Use vivid imagery, relatable examples, and direct appeals to evoke an emotional response and show practical relevance. "
2255
+
2256
+ "**5. Storytelling Focus**: Begin with a captivating hook that draws the reader in. Sustain momentum by providing real-life examples or scenarios, and end with a powerful call-to-action (CTA) that invites the reader to take the next step. "
2257
+
2258
+ "**6. Purpose and Objective**: Clearly define whether the piece aims to inform, persuade, or inspire. Each paragraph should support this purpose, echoing the key message or theme. "
2259
+
2260
+ "**7. Polished Presentation**: Deliver an error-free, professional piece demonstrating advanced language skills, layout, and readability. Headlines, subheadings, and paragraphs should be cohesive and visually inviting. "
2261
+
2262
+ "**8. Engaging Headlines**: Use direct, benefit-driven headlines that showcase what the reader stands to gain or how they can contribute. Avoid generic slogans like 'Empowering Change' without backing them up with specifics or vivid detail. "
2263
+
2264
+ "**9. TrustBuilders and Techniques**: "
2265
+ " - Provide a **List of TrustBuilders Used** separately, each with a properly formatted source link. "
2266
+ " - Include a **Heuristics and Creative Techniques** section in footnote style. "
2267
+ " - Heuristics: List names only, such as 'social proof,' 'authority,' or 'commitment.' "
2268
+ " - Creative Techniques: List only relevant marketing techniques (e.g., 'storytelling,' 'vivid imagery') without extra details. "
2269
+
2270
+ "**MOST IMPORTANT RULE**: Every paragraph and section should flow together as one cohesive narrative, ensuring the content reads smoothly from start to finish. Use direct address ('you') for newsletters, create strong transitions, and maintain a single, unified theme that captures and holds the reader’s attention."
 
 
2271
  )
2272
 
2273
  appended_instructions = ""