Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
| 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 |
)
|
| 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 |
|