Wajahat698 commited on
Commit
4af38c2
·
verified ·
1 Parent(s): 32d5417

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +51 -43
app.py CHANGED
@@ -2236,49 +2236,57 @@ 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
- Create compelling copy that flows naturally, using these essential guidelines:
2241
- **Format-Specific Voice (CRITICAL)**
2242
- - Newsletters: Always use "you/your" throughout - never "they/them/residents"
2243
- - Blogs/Reports: Use "we" for organizational voice
2244
- - Website Copy: Balance "we" and "you" to create dialogue
2245
-
2246
- **Flow & Structure**
2247
- - Start each section with a connector from previous point
2248
- - End each section with a bridge to next topic
2249
- - Example flow:
2250
- Previous point New insight Connection to next topic
2251
-
2252
- **Headlines & Subheads**
2253
- - Format: Main Headline [Problem/Promise]
2254
- Subhead: Supporting detail
2255
- - Newsletter Example:
2256
- "Transform Your Living Space"
2257
- "Simple tips to make your apartment more comfortable"
2258
- - Never use -ing words (Use "Transform" not "Transforming")
2259
-
2260
- **TrustBuilder Integration**
2261
- - Weave TrustBuilders naturally into story flow
2262
- - Example: Instead of "We have 5-star ratings"
2263
- Write: "You'll enjoy the same five-star experience that [specific number] of residents treasure"
2264
-
2265
- **Crucial Rules**
2266
- 1. Keep audience perspective consistent throughout
2267
- 2. Every paragraph must flow from and into surrounding content
2268
- 3. Use active, engaging language
2269
- 4. Write naturally - avoid AI or corporate speak
2270
-
2271
- End with:
2272
- - TrustBuilders Used (no source links in main content)
2273
- - Techniques Applied (brief list)
2274
- "1. ##List of TrustBuilders Used: Provide trustbuilders used followed by *Source links always*"
2275
- " 2. ##Heuristics and Creative Techniques :"
2276
- " -List them in a footnote-style small heading."
2277
- " Use the following structure:"
2278
- " -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
2279
- " -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
2280
- "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."
2281
- "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."
 
 
 
 
 
 
 
 
2282
  """
2283
  )
2284
 
 
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
+ Create compelling copy that flows naturally, using these essential guidelines:
2241
+
2242
+ ---
2243
+ **Format-Specific Voice (CRITICAL)**
2244
+ - **Newsletters**: Always use "you" or "your" throughout—never "they," "them," or "residents."
2245
+ - **Blogs/Reports**: Use "we" to reflect an organizational voice.
2246
+ - **Website Copy**: Balance "we" and "you" to create a two-way dialogue.
2247
+
2248
+ ---
2249
+ **Flow & Structure**
2250
+ - Begin each section by referencing or linking it to the previous point.
2251
+ - End each section by bridging to the next topic, ensuring a seamless transition.
2252
+ - Example flow:
2253
+ - Previous point New insight → Connection to next topic
2254
+
2255
+ ---
2256
+ **Headlines & Subheads**
2257
+ - Format:
2258
+ - Main Headline: Highlight the problem or promise (e.g., "Transform Your Living Space")
2259
+ - Subhead: Provide supporting detail (e.g., "Simple tips to make your apartment more comfortable")
2260
+ - **Never use -ing words** in headlines. (Use "Transform" or "Expand" instead of "Transforming" or "Expanding.")
2261
+
2262
+ ---
2263
+ **TrustBuilder Integration**
2264
+ - Weave TrustBuilders naturally into the narrative.
2265
+ - Example: Instead of saying "We have 5-star ratings," write "You’ll enjoy the same five-star experience that [specific number] of our users treasure."
2266
+
2267
+ ---
2268
+ **Crucial Rules**
2269
+ 1. Keep the **audience perspective** consistent (newsletters "you," blogs → "we," etc.).
2270
+ 2. Every paragraph must logically connect to the ones before and after it, ensuring a **unified narrative** without disjointed sections.
2271
+ 3. Use **active, engaging language** without AI or corporate clichés.
2272
+ 4. Write naturally, maintaining clarity and authenticity.
2273
+
2274
+ ---
2275
+ **Ending with TrustBuilders & Techniques**
2276
+ - After the main content, provide:
2277
+ - **List of TrustBuilders Used** (no source links in the main body, only here).
2278
+ - **Heuristics and Creative Techniques** in a footnote-style heading:
2279
+ - Heuristics: Mention names only (e.g., social proof, authority, commitment).
2280
+ - Creative Techniques: List only relevant marketing techniques (e.g., storytelling, vivid imagery).
2281
+
2282
+ ---
2283
+ **MOST IMPORTANT RULE**
2284
+ - In every paragraph, strengthen connections between sections to ensure smoother flow.
2285
+ - The entire piece **must read like a single, cohesive story**, without disjointed paragraphs or independent blocks.
2286
+ - Each section must logically flow into the next, preserving consistency and relevance throughout.
2287
+ - This cohesive structure engages readers effectively, captures their attention, and conveys the intended message with clarity and impact.
2288
+ - *Use creative headlines* for each paragraph, summarizing the content in an active tone (no “-ing” endings like “Driving,” “Empowering,” etc.).
2289
+
2290
  """
2291
  )
2292