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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +33 -61
app.py CHANGED
@@ -2236,67 +2236,39 @@ 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 expressions, or overly formal language. Exclude mentions of trustbucket names in headings or content. Adhere to the following enhanced guidelines for a polished, publication-ready output with a seamless, interconnected narrative:
2241
-
2242
- ### **Content Tone and Format:**
2243
- - **Newsletters:** Use 'you' or 'your' to create a direct and personal connection. Avoid distant references like 'they' or 'them.'
2244
- - **Articles, Blogs, or Reports:** Use 'we' to reflect organizational authority and collaborative efforts.
2245
- - Tailor the tone appropriately to fit the format and purpose.
2246
-
2247
- ### **Dynamic and Action-Oriented Headlines:**
2248
- - Every section must begin with a headline or subheading in active language, avoiding '-ing' endings.
2249
- - Ensure headlines reflect the core benefit or outcome of the paragraph (e.g., 'Achieve Sustainable Growth' instead of 'Sustainable Growth Achieved').
2250
- - Headlines must be engaging and clearly aligned with the narrative theme, capturing the reader’s attention immediately.
2251
-
2252
- ### **Seamless Transitions Between Sections:**
2253
- - Every section must logically build on the previous one, maintaining thematic connections and avoiding fragmented or standalone paragraphs.
2254
- - Use transitional phrases and link ideas naturally to create a cohesive and engaging narrative that holds the reader’s attention.
2255
-
2256
- ### **Unified Narrative Structure:**
2257
- 1. Avoid bullet points; write in interconnected paragraphs that flow as a single narrative.
2258
- 2. Ensure every paragraph contributes to and supports the overarching theme, reinforcing the message at every step.
2259
-
2260
- ### **Embedded TrustBuilders®:**
2261
- - Integrate TrustBuilders® naturally within sentences that highlight impact, credibility, and outcomes.
2262
- - Avoid listing TrustBuilders® directly in the main text; instead, use them contextually to enhance readability and engagement.
2263
-
2264
- ### **Relatable and Professional Tone:**
2265
- - Write in a conversational yet professional style, using active voice consistently.
2266
- - Avoid overly technical jargon or repetitive phrasing, ensuring clarity and relatability.
2267
-
2268
- ### **Audience-Focused Content:**
2269
- - Prioritize the reader’s challenges, aspirations, and goals.
2270
- - Use vivid imagery, relatable examples, and direct appeals to evoke emotional connections and demonstrate practical value.
2271
-
2272
- ### **Storytelling Excellence:**
2273
- - Begin with a compelling hook to draw the reader in.
2274
- - Maintain momentum by integrating real-life examples, scenarios, or success stories.
2275
- - Conclude with a strong call-to-action (CTA) that inspires readers to act or reflect.
2276
-
2277
- ### **Purpose and Consistency:**
2278
- - Define and maintain the content’s purpose—whether to inform, persuade, or inspire action.
2279
- - Ensure every paragraph aligns with this purpose, supporting the overarching objective and reinforcing key messages.
2280
-
2281
- ### **Polished Presentation:**
2282
- - Deliver a clean, professional, and error-free final output.
2283
- - Use advanced language, logical organization, and cohesive formatting with clear headings and subheadings.
2284
-
2285
- ### **Impactful Headlines:**
2286
- - Headlines must clearly convey what the reader gains or how they can contribute, highlighting specific, vivid outcomes.
2287
- - Avoid generic phrases like 'Driving Change'; instead, use targeted headlines with clear benefits.
2288
-
2289
- ### **TrustBuilders and Techniques:**
2290
- - Provide a **List of TrustBuilders Used** in a separate section with properly formatted source links.
2291
- - Include a **Heuristics and Creative Techniques** section in footnote style:
2292
- - **Heuristics:** List names only (e.g., 'social proof,' 'authority,' 'commitment').
2293
- - **Creative Techniques:** Mention relevant techniques (e.g., 'storytelling,' 'vivid imagery').
2294
-
2295
- ### **Critical Rule:**
2296
- - Every paragraph and section must flow as part of a unified narrative, avoiding isolated or disjointed paragraphs.
2297
- - Maintain logical transitions and thematic consistency, ensuring the content reads as a cohesive, engaging story.
2298
- - For newsletters, use 'you' to establish a personal tone. Craft content that captivates, informs, and inspires, delivering a clear and impactful message.
2299
- """
2300
  )
2301
 
2302
 
 
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