Wajahat698 commited on
Commit
990b747
·
verified ·
1 Parent(s): d8abc79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +55 -55
app.py CHANGED
@@ -1335,7 +1335,9 @@ Replace vague phrases with specific details:
1335
  - **Integration**: Interweave various trust-builder fluidly, focusing on specifics like names, numbers (dollar amounts and years), programs, strategies, places, awards, and actions, **without mentioning prohibited terms**.
1336
  - **Avoid Flowery Language**: Ensure content is clear and factual.
1337
  - Use an **active, engaging, and direct tone**. Eg:"World Vision partners with [organizations] to drive progress."
1338
-
 
 
1339
  #### 2. Social Media Posts
1340
  - **Introduction Line**: Start with "Here is a draft of your social media post. Feel free to suggest further refinements."
1341
  - **Content**:
@@ -1463,6 +1465,39 @@ Note: When including heuristics and creative techniques, use the structure “He
1463
  - If requested, generate a LinkedIn profile in a professional manner.
1464
  - **Avoid prohibited terms** and **flowery language**.
1465
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1466
  ### General Queries
1467
  - Do not use the knowledge base for non-trust content.
1468
  - Always clarify the audience impact and ensure all information is based on verified sources.
@@ -2236,60 +2271,25 @@ 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 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 phrases, or overly formal language. Exclude any mention of trustbucket names in headings or content. Follow these enhanced guidelines to ensure a cohesive, publication-ready piece that attains a 10/10 quality rating:\n\n"
2241
-
2242
- "**Format-Specific Voice**:\n"
2243
- "- **Newsletters**: Use 'you' or 'your' throughout to establish a personal, direct connection. Avoid references like 'they' or 'them.'\n"
2244
- "- **Blogs/Articles/Reports**: Use 'we' for an organizational perspective, emphasizing collective efforts.\n"
2245
- "- **Website Copy**: Balance 'we' and 'you' to create a two-way dialogue.\n\n"
2246
-
2247
- "**Flow and Interconnected Structure**:\n"
2248
- "- Begin each section by referencing the previous point and end with a transitional bridge to the next.\n"
2249
- "- Maintain a single, unified theme without disjointed or standalone paragraphs.\n"
2250
- "- Example Flow: Previous point New insight → Connection to next topic.\n\n"
2251
-
2252
- "**Creative Headlines (No '-ing' Endings)**:\n"
2253
- "- Start each paragraph with an action-oriented, active headline that grabs attention.\n"
2254
- "- Avoid '-ing' endings (e.g., 'Transform Lives Today' instead of 'Transforming Lives Today').\n"
2255
- "- Summarize the paragraph’s core idea and the benefit or promise to the reader.\n\n"
2256
-
2257
- "**TrustBuilder® Integration**:\n"
2258
- "- Weave TrustBuilders® into the story contextually. For example, instead of listing them, embed them into the narrative.\n"
2259
- "- Demonstrate impact and credibility by referencing specific achievements or numbers within fluid, emotionally resonant sentences.\n\n"
2260
-
2261
- "**Engaging, Human Tone**:\n"
2262
- "- Write in a relatable, conversational style. Use active voice consistently.\n"
2263
- "- Keep corporate jargon and AI-specific phrasing to a minimum. Focus on clarity and authenticity.\n"
2264
- "- Tailor the content to the reader’s experience, needs, and aspirations.\n\n"
2265
-
2266
- "**Storytelling and Audience Appeal**:\n"
2267
- "- Hook the reader at the outset with a compelling scenario or statistic.\n"
2268
- "- Use real-life examples or scenarios to maintain momentum.\n"
2269
- "- Conclude with a strong call-to-action (CTA) that encourages reflection or action.\n\n"
2270
-
2271
- "**Purpose and Consistency**:\n"
2272
- "- Clearly define the piece’s aim: to inform, persuade, or inspire. Every paragraph must reinforce this goal.\n"
2273
- "- Keep language purposeful, ensuring each section advances the overall message.\n\n"
2274
-
2275
- "**Polished and Professional**:\n"
2276
- "- Ensure an error-free, visually inviting final output.\n"
2277
- "- Use thoughtful headings, subheadings, and smooth transitions for easy reading.\n"
2278
- "- Maintain advanced language proficiency, yet remain accessible and straightforward.\n\n"
2279
-
2280
- "**Ending with TrustBuilders and Techniques**:\n"
2281
- "- After the main content, provide a separate 'List of TrustBuilders Used' with source links (no links in the body).\n"
2282
- "- Include a 'Heuristics and Creative Techniques' section in footnote style:\n"
2283
- " - **Heuristics**: List names only (e.g., 'social proof,' 'authority,' 'commitment').\n"
2284
- " - **Creative Techniques**: Mention only relevant marketing approaches (e.g., 'storytelling,' 'vivid imagery').\n\n"
2285
-
2286
- "**Most Important Rule**:\n"
2287
- "- In every paragraph, reinforce connections between sections for a smooth, cohesive narrative.\n"
2288
- "- Avoid disjointed blocks of text or sudden shifts in topic. Each paragraph should seamlessly transition into the next.\n"
2289
- "- Headlines must reflect an active, creative essence without '-ing' endings, summarizing the paragraph’s content effectively.\n\n"
2290
- "By adhering to these guidelines, the final output must read like a single, unified piece, fully engaging the reader and ensuring maximum clarity, impact, and trust."
2291
- )
2292
-
2293
 
2294
 
2295
 
 
1335
  - **Integration**: Interweave various trust-builder fluidly, focusing on specifics like names, numbers (dollar amounts and years), programs, strategies, places, awards, and actions, **without mentioning prohibited terms**.
1336
  - **Avoid Flowery Language**: Ensure content is clear and factual.
1337
  - Use an **active, engaging, and direct tone**. Eg:"World Vision partners with [organizations] to drive progress."
1338
+
1339
+
1340
+
1341
  #### 2. Social Media Posts
1342
  - **Introduction Line**: Start with "Here is a draft of your social media post. Feel free to suggest further refinements."
1343
  - **Content**:
 
1465
  - If requested, generate a LinkedIn profile in a professional manner.
1466
  - **Avoid prohibited terms** and **flowery language**.
1467
 
1468
+ ###7.Newsletter:
1469
+ **1. Personal and Engaging Tone**:
1470
+ - Use "you" or "your" consistently throughout the newsletter to establish a direct and personal connection with the reader.
1471
+ - Avoid distant references like "they" or "them"—make the reader feel like the newsletter speaks directly to them.
1472
+ - Write in a conversational, human tone that feels approachable yet professional.
1473
+
1474
+ **2. Creative Headlines and Subheadings**:
1475
+ - Start each paragraph with a creative and outcome-focused headline. Headlines must:
1476
+ - Be active, action-oriented, and free of "-ing" endings (e.g., "Expand Your Impact" instead of "Expanding Your Impact").
1477
+ - Summarize the paragraph’s main idea or benefit.
1478
+ - Headlines should immediately grab attention and guide the reader through the narrative.
1479
+
1480
+ **3. Flow and Interconnected Structure**:
1481
+ - Ensure each paragraph transitions seamlessly into the next. Avoid isolated or disjointed sections.
1482
+ - Use linking phrases to connect ideas (e.g., "Building on this success..." or "This initiative complements our ongoing efforts by...").
1483
+ - Maintain a cohesive narrative throughout the newsletter to keep the reader engaged.
1484
+
1485
+ **4. TrustBuilders® Integration**:
1486
+ - Embed TrustBuilders® naturally into the content to build credibility and reinforce the message.
1487
+ - Avoid listing TrustBuilders® in the body; instead, integrate them contextually through storytelling and examples.
1488
+ - Use specific data points, achievements, or success stories to demonstrate impact and authority.
1489
+
1490
+ **5. Audience-Centric Approach**:
1491
+ - Focus on the reader’s needs, challenges, and aspirations. Show them how they benefit from or contribute to the initiatives discussed.
1492
+ - Use vivid imagery and relatable examples to create an emotional connection.
1493
+ - Highlight actionable insights and practical relevance to make the content valuable.
1494
+
1495
+ **6. Purpose-Driven Messaging**:
1496
+ - Clearly define the newsletter's purpose—whether to inform, inspire, or prompt action.
1497
+ - Conclude with a strong and actionable Call-to-Action (CTA) that encourages the reader to take the next step (e.g., "Join Us Today" or "Support This Initiative Now").
1498
+ - Keep the CTA specific, urgent, and relevant to the content.
1499
+
1500
+
1501
  ### General Queries
1502
  - Do not use the knowledge base for non-trust content.
1503
  - Always clarify the audience impact and ensure all information is based on verified sources.
 
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**: 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. "
2277
+ "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. "
2278
+ "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."
2279
+ "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."
2280
+ "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. "
2281
+ "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. "
2282
+ "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. "
2283
+ "dont give source link in content"
2284
+ "1. ##List of TrustBuilders Used: Provide trustbuilders used followed by *Source links always*"
2285
+ " 2. ##Heuristics and Creative Techniques :"
2286
+ " -List them in a footnote-style small heading."
2287
+ " Use the following structure:"
2288
+ " -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
2289
+ " -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
2290
+ "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."
2291
+ "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."
2292
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2293
 
2294
 
2295