Wajahat698 commited on
Commit
ce4fdcd
·
verified ·
1 Parent(s): 2fc7795

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -32
app.py CHANGED
@@ -2236,39 +2236,42 @@ 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. Do not mention TrustBucket® names in the headings or content. Follow these enhanced guidelines for a polished, publication-ready copy with a 10/10 quality rating: "
2241
-
2242
- "**Adapt Tone to Format**: Adjust the tone and pronouns according to the content format: "
2243
- " - **Articles, Blogs, Reports**: Use 'we' to emphasize organizational authority and collective efforts. "
2244
- " - **Newsletters**: Use 'you' to directly engage the reader and make the content personal and relatable. Avoid impersonal references like 'they' or 'them.' "
2245
-
2246
- "**Dynamic Headlines and Subheadings**: Each section or paragraph must include a headline or subheading that: "
2247
- " - Is active, action-oriented, and reader-focused."
2248
- " - Clearly summarizes the content below, guiding the reader through the narrative with precision and impact."
2249
- " - Avoids '-ing' endings in favor of stronger, direct phrasing (e.g., 'Empower Communities Today' instead of 'Empowering Communities')."
2250
-
2251
- "**1. Unified Narrative 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 step by step. Avoid standalone or fragmented sections by creating natural links between them."
2252
-
2253
- "**2. Seamless TrustBuilders® Integration**: Integrate TrustBuilders® naturally into the narrative, weaving them fluidly into sentences to enhance credibility and trust. Avoid isolating or explicitly listing them in the main body. Instead, use them contextually to support the story and reader engagement."
2254
-
2255
- "**3. Conversational and Relatable Tone**: Write in a conversational tone that directly addresses the reader. For newsletters, consistently use 'you' and 'your' to foster involvement. Use active voice and ensure the tone is approachable, engaging, and professional."
2256
-
2257
- "**4. Audience-Centric Engagement**: Tailor the content to address the audience's specific needs, aspirations, and challenges. Use vivid imagery, relatable examples, and direct appeals to foster emotional connections. Provide actionable insights to ensure the audience feels understood and valued."
2258
-
2259
- "**5. Storytelling Excellence**: Begin with a compelling hook to captivate the reader. Maintain momentum with strong transitions, real-life examples, and vivid scenarios. Conclude with a clear, actionable, and inspiring CTA that motivates the reader to take the next step."
2260
-
2261
- "**6. Purposeful and Impactful Content**: Clearly define the content’s purpose—whether to inform, persuade, or inspire action. Ensure every paragraph aligns with and reinforces this purpose, contributing meaningfully to the overall message."
2262
-
2263
- "**7. Polished and Professional Presentation**: Deliver a clean, error-free final output. Ensure advanced language use, clear structure, and engaging readability. Every headline, subheading, and paragraph must flow naturally into the next, creating a visually inviting and cohesive piece."
2264
-
2265
- "**8. TrustBuilders and Techniques**: "
2266
- " - Provide a **List of TrustBuilders Used** in a separate section, with accurate and properly formatted source links. "
2267
- " - Include a **Heuristics and Creative Techniques** section in footnote style: "
2268
- " - Heuristics: Mention names only (e.g., 'social proof,' 'authority,' or 'commitment'). "
2269
- " - Creative Techniques: Mention only relevant marketing techniques (e.g., 'storytelling,' 'vivid imagery') without additional details. "
 
 
2270
 
2271
- "**Critical Rule**: Each paragraph and section must flow logically into the next, creating a seamless, interconnected narrative. Avoid isolated or fragmented sections. The entire content should feel like a single, cohesive story, where every part builds on the previous one to engage the reader and convey the intended message effectively. Headlines must clearly and compellingly summarize the section below, enhancing readability and maintaining engagement."
 
2272
  )
2273
 
2274
 
 
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
+ """
2240
+ Write engaging marketing copy that flows naturally and converts effectively. Follow these key guidelines:
2241
+
2242
+ **Tone & Voice**
2243
+ - Articles/Blogs: Use "we" to show authority
2244
+ - Newsletters: Use "you" for direct engagement
2245
+ - Keep language natural, avoiding AI or corporate jargon
2246
+
2247
+ **Flow & Structure**
2248
+ - Start with a compelling hook
2249
+ - Connect each paragraph to the next using transitional phrases
2250
+ - End with clear call-to-action
2251
+ - Use active subheadings that preview content (Example: "Transform Your Business" vs "Business Transformation")
2252
+
2253
+ **Writing Style**
2254
+ - Lead each paragraph with a connection to the previous idea
2255
+ - Support main points with specific examples or evidence
2256
+ - Maintain consistent energy throughout
2257
+ - Integrate trust elements naturally within content
2258
+ - Use active voice and strong verbs
2259
+
2260
+ **Critical Requirements**
2261
+ - Create seamless narrative flow between all sections
2262
+ - Write compelling headlines that accurately preview content
2263
+ - Ensure every paragraph builds on previous points
2264
+ - Focus on reader benefits and outcomes
2265
+ - Keep tone conversational yet professional
2266
+
2267
+ **TrustBuilders and Techniques**: "
2268
+ - Provide a **List of TrustBuilders Used** in a separate section, with accurate and properly formatted source links.
2269
+ - Include a **Heuristics and Creative Techniques** section in footnote style:
2270
+ - Heuristics: Mention names only (e.g., 'social proof,' 'authority,' or 'commitment').
2271
+ - Creative Techniques: Mention only relevant marketing techniques (e.g., 'storytelling,' 'vivid imagery') without additional details.
2272
 
2273
+ **Critical Rule**: Each paragraph and section must flow logically into the next, creating a seamless, interconnected narrative. Avoid isolated or fragmented sections. The entire content should feel like a single, cohesive story, where every part builds on the previous one to engage the reader and convey the intended message effectively. Headlines must clearly and compellingly summarize the section below, enhancing readability and maintaining engagement.
2274
+ """
2275
  )
2276
 
2277