Wajahat698 commited on
Commit
bc80abd
·
verified ·
1 Parent(s): b45d495

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -24
app.py CHANGED
@@ -2271,31 +2271,39 @@ def handle_prompt(prompt):
2271
  # Check if user request includes blog, article, or newsletter
2272
  if any(keyword in prompt.lower() for keyword in ["blog", "write", "article", "annual report", "report", "newsletter", "news letter ", "website introduction"]):
2273
  appended_instructions = (
2274
- "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. "
2275
- "Do not use AI jargon, vague phrases, or formal language.Donot mention trustbucket names in the headings and content. Follow these enhanced guidelines to ensure a polished, publication-ready copy with a 10/10 quality: "
2276
- "1. **Interconnected Structure**: - Each paragraph must connect logically to the next, maintaining a unified narrative. Use linking phrases to reinforce transitions (e.g., "Building on this success..." or "This aligns with our broader mission to...").Avoid isolated or disjointed sections; ensure every paragraph contributes to the overarching theme."
2277
- "2. Creative and Action-Oriented Headlines:**"
2278
- "-Start each paragraph or section with an engaging headline that:"
2279
- " -Is active and outcome-focused."
2280
- " -Avoids -ing endings (e.g., "Transform Lives Today" instead of "Transforming Lives")."
2281
- " -Reflects the content below, creating anticipation and guiding the reader."
2282
-
2283
- "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. "
2284
- "4. **Human Tone**: Write in a relatable, conversational tone that engages the reader and feels natural. Avoid repetitive phrasing, overly technical explanations, or mechanical structures. Use active voice consistently, ensuring the tone is both approachable and professional."
2285
- "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."
2286
- "6. **Enhanced Audience Engagement**: Use storytelling techniques and mix the trustbuilders into a content. Begin with a compelling hook, maintain momentum through transitions, and conclude with a strong call-to-action that inspires the reader to act or reflect. "
2287
- "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. "
2288
- "8. **Polished Presentation**: Ensure the final output is refined, professional, and suitable for publication. The copy should demonstrate mastery of active language and content design, leaving no room for ambiguity or errors. "
2289
- "dont give source link in content"
2290
- "1. ##List of TrustBuilders Used: Provide trustbuilders used followed by *Source links always*"
2291
- " 2. ##Heuristics and Creative Techniques :"
2292
- " -List them in a footnote-style small heading."
2293
- " Use the following structure:"
2294
- " -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
2295
- " -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
2296
- "The final output must not include AI jargons. *With every paragraph give a creative headline that summarises the content give sub-headlines with each paragraph like example headline: Drive,empower use similar words but no driving, empowering etc *. Avoid mentioning trustbucket names."
2297
- "MOST IMPORTANT RULE. IN EVERY PARAGRAPH Strengthen the connections between sections to ensure smoother flow and SHOULD BE DEEPLY INTERCONNECTED WITH EACH OTHER TO CREATE A SEAMLESS FLOW, MAKING THE CONTENT READ LIKE A SINGLE CONTENT RATHER THAN DISJOINTED PARAGRAPHS OR INDEPENDENT BLOG SECTIONS. EACH SECTION MUST LOGICALLY TRANSITION INTO THE NEXT, ENSURING THAT THE TOPIC REMAINS CONSISTENT AND RELEVANT THROUGHOUT. BY MAINTAINING A COHESIVE STRUCTURE, THE ARTICLE WILL ENGAGE READERS MORE EFFECTIVELY, HOLDING THEIR ATTENTION AND CONVEYING THE INTENDED MESSAGE WITH CLARITY AND IMPACT."
 
 
 
 
 
 
 
2298
  )
 
2299
 
2300
 
2301
 
 
2271
  # Check if user request includes blog, article, or newsletter
2272
  if any(keyword in prompt.lower() for keyword in ["blog", "write", "article", "annual report", "report", "newsletter", "news letter ", "website introduction"]):
2273
  appended_instructions = (
2274
+ "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. "
2275
+ "Do not use AI jargon, vague phrases, or formal language. Do not mention trust bucket names in the headings and content. Follow these enhanced guidelines to ensure a polished, publication-ready copy with a 10/10 quality:\n\n"
2276
+ "1. **Interconnected Structure**:\n"
2277
+ " - Each paragraph must connect logically to the next, maintaining a unified narrative. Use linking phrases to reinforce transitions (e.g., 'Building on this success...' or 'This aligns with our broader mission to...'). Avoid isolated or disjointed sections; ensure every paragraph contributes to the overarching theme.\n\n"
2278
+ "2. **Creative and Action-Oriented Headlines**:\n"
2279
+ " - Start each paragraph or section with an engaging headline that:\n"
2280
+ " - Is active and outcome-focused.\n"
2281
+ " - Avoids -ing endings (e.g., 'Transform Lives Today' instead of 'Transforming Lives').\n"
2282
+ " - Reflects the content below, creating anticipation and guiding the reader.\n\n"
2283
+ "3. **Seamless Integration of TrustBuilders®**:\n"
2284
+ " - 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.\n\n"
2285
+ "4. **Human Tone**:\n"
2286
+ " - Write in a relatable, conversational tone that engages the reader and feels natural. Avoid repetitive phrasing, overly technical explanations, or mechanical structures. Use active voice consistently, ensuring the tone is both approachable and professional.\n\n"
2287
+ "5. **Audience-Centric Engagement**:\n"
2288
+ " - 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.\n\n"
2289
+ "6. **Enhanced Audience Engagement**:\n"
2290
+ " - Use storytelling techniques and mix the TrustBuilders® into the content. Begin with a compelling hook, maintain momentum through transitions, and conclude with a strong call-to-action that inspires the reader to act or reflect.\n\n"
2291
+ "7. **Purpose-Driven Impact**:\n"
2292
+ " - 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.\n\n"
2293
+ "8. **Polished Presentation**:\n"
2294
+ " - Ensure the final output is refined, professional, and suitable for publication. The copy should demonstrate mastery of active language and content design, leaving no room for ambiguity or errors.\n\n"
2295
+ "Don't give source links in content.\n\n"
2296
+ "1. ##List of TrustBuilders Used:\n"
2297
+ " - Provide TrustBuilders used followed by *Source links always.*\n\n"
2298
+ "2. ##Heuristics and Creative Techniques:\n"
2299
+ " - List them in a footnote-style small heading.\n"
2300
+ " - Use the following structure:\n"
2301
+ " - Heuristics: Mention names only (e.g., social proof, authority, commitment).\n"
2302
+ " - Creative Techniques: Mention names only (list only relevant marketing techniques without additional details).\n\n"
2303
+ "The final output must not include AI jargon. With every paragraph, give a creative headline that summarizes the content. Give sub-headlines with each paragraph like example headline: 'Drive, empower'—use similar words but no 'driving' or 'empowering,' etc. Avoid mentioning trust bucket names.\n\n"
2304
+ "MOST IMPORTANT RULE: IN EVERY PARAGRAPH, strengthen the connections between sections to ensure smoother flow. Each section should logically transition into the next, ensuring that the topic remains consistent and relevant throughout. By maintaining a cohesive structure, the article will engage readers more effectively, holding their attention and conveying the intended message with clarity and impact."
2305
  )
2306
+
2307
 
2308
 
2309