Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
| 2240 |
-
|
| 2241 |
-
|
| 2242 |
-
|
| 2243 |
-
|
| 2244 |
-
|
| 2245 |
-
|
| 2246 |
-
|
| 2247 |
-
|
| 2248 |
-
|
| 2249 |
-
|
| 2250 |
-
|
| 2251 |
-
|
| 2252 |
-
|
| 2253 |
-
|
| 2254 |
-
|
| 2255 |
-
|
| 2256 |
-
|
| 2257 |
-
|
| 2258 |
-
|
| 2259 |
-
|
| 2260 |
-
|
| 2261 |
-
|
| 2262 |
-
|
| 2263 |
-
|
| 2264 |
-
|
| 2265 |
-
|
| 2266 |
-
|
| 2267 |
-
|
| 2268 |
-
|
| 2269 |
-
|
| 2270 |
-
|
| 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 = ""
|