Wajahat698 commited on
Commit
556308d
·
verified ·
1 Parent(s): 2db01f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +44 -21
app.py CHANGED
@@ -1217,8 +1217,6 @@ tools = [
1217
  prompt_message = f"""
1218
  **You are an expert multilingual copywriter specializing in creating highly fluid, compelling, and interconnected marketing copy that seamlessly integrates Trust Builders into various content formats for any organization. Your goal is to craft concise, engaging material based on the knowledgebase, adhering to the following guidelines:**
1219
 
1220
-
1221
-
1222
  - Write in **active voice** using **first-person perspective (“we”)**, avoiding third-person.
1223
  - Ensure **seamless flow** with logical transitions between paragraphs, maintaining relevance and consistency.
1224
  - Contextually integrate trust-building elements creatively. Avoid using **Stability, Development, Competence, Relationship, Benefit, Vision**, and the terms **“trust,” “beacon,” “beacon of hope,” “realm”**, except in specific phrases like **“Development trust builders.”**
@@ -2213,30 +2211,55 @@ def handle_prompt(prompt):
2213
  - Isolated facts—ensure logical connections between ideas to maintain flow and thematic consistency.
2214
  - Repetition or mechanical structures.
2215
 
2216
- """
2217
 
2218
 
2219
  # Check if user request includes blog, article, or newsletter
2220
  if any(keyword in prompt.lower() for keyword in ["blog","write", "article","report","annual report" "newsletter","news letter","website introduction"]):
2221
  appended_instructions = (
2222
- "Craft a flawless, engaging, and fluid compelling copy using *non-flowery language* that reads as though written by a professional copywriter having 25 years of experience. "
2223
- "Do not use AI jargon, vague phrases, or formal language.Donot mention trustbucket names in the headings and content. Follow these enhanced guidelines to ensure a polished, publication-ready copy with a 10/10 quality: "
2224
- "1. **Interconnected 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 at every step. "
2225
- "3. **Seamless Integration of TrustBuilders®**: Naturally incorporate TrustBuilders® into the narrative without isolating or explicitly listing them in the main body. Instead, weave them fluidly into sentences to build credibility and trust while maintaining the content’s readability and engagement. "
2226
- "4. **Human Tone**: Write in a relatable, conversational tone that engages the reader and feels natural. Avoid repetitive phrasing, overly technical explanations, or mechanical structures. Use active voice consistently, ensuring the tone is both approachable and professional."
2227
- "5. **Audience-Centric Engagement**: Tailor the content to meet the audience's needs, goals, and challenges. Create emotional connections by using relatable examples, vivid imagery, and direct appeals. Emphasize actionable insights and practical relevance to ensure the audience feels seen and understood."
2228
- "6. **Enhanced Audience Engagement**: Use storytelling techniques and mix the trustbuilders into a content. Begin with a compelling hook, maintain momentum through transitions, and conclude with a strong call-to-action that inspires the reader to act or reflect. "
2229
- "7. **Purpose-Driven Impact**: Clearly define and achieve the content’s purpose—whether to inform, persuade, or inspire action. Ensure every paragraph serves the overall objective while reinforcing the key message. "
2230
- "8. **Polished Presentation**: Ensure the final output is refined, professional, and suitable for publication. The copy should demonstrate mastery of language and content design, leaving no room for ambiguity or errors. "
2231
- "dont give source link in content"
2232
- "1. ##List of TrustBuilders Used: Provide trustbuilders used followed by *Source links always*"
2233
- " 2. ##Heuristics and Creative Techniques :"
2234
- " -List them in a footnote-style small heading."
2235
- " Use the following structure:"
2236
- " -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
2237
- " -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
2238
- "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."
2239
- "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."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2240
  )
2241
  else:
2242
  appended_instructions = ""
 
1217
  prompt_message = f"""
1218
  **You are an expert multilingual copywriter specializing in creating highly fluid, compelling, and interconnected marketing copy that seamlessly integrates Trust Builders into various content formats for any organization. Your goal is to craft concise, engaging material based on the knowledgebase, adhering to the following guidelines:**
1219
 
 
 
1220
  - Write in **active voice** using **first-person perspective (“we”)**, avoiding third-person.
1221
  - Ensure **seamless flow** with logical transitions between paragraphs, maintaining relevance and consistency.
1222
  - Contextually integrate trust-building elements creatively. Avoid using **Stability, Development, Competence, Relationship, Benefit, Vision**, and the terms **“trust,” “beacon,” “beacon of hope,” “realm”**, except in specific phrases like **“Development trust builders.”**
 
2211
  - Isolated facts—ensure logical connections between ideas to maintain flow and thematic consistency.
2212
  - Repetition or mechanical structures.
2213
 
2214
+ """
2215
 
2216
 
2217
  # Check if user request includes blog, article, or newsletter
2218
  if any(keyword in prompt.lower() for keyword in ["blog","write", "article","report","annual report" "newsletter","news letter","website introduction"]):
2219
  appended_instructions = (
2220
+ """ Create compelling copy that flows naturally, using these essential guidelines:
2221
+ **Format-Specific Voice (CRITICAL)**
2222
+ - Newsletters: Always use "you/your" throughout - never "they/them/residents"
2223
+ - Blogs/Reports: Use "we" for organizational voice
2224
+ - Website Copy: Balance "we" and "you" to create dialogue
2225
+
2226
+ **Flow & Structure**
2227
+ - Start each section with a connector from previous point
2228
+ - End each section with a bridge to next topic
2229
+ - Example flow:
2230
+ Previous point New insight Connection to next topic
2231
+
2232
+ **Headlines & Subheads**
2233
+ - Format: Main Headline [Problem/Promise]
2234
+ Subhead: Supporting detail
2235
+ - Newsletter Example:
2236
+ "Transform Your Living Space"
2237
+ "Simple tips to make your apartment more comfortable"
2238
+ - Never use -ing words (Use "Transform" not "Transforming")
2239
+
2240
+ **TrustBuilder Integration**
2241
+ - Weave TrustBuilders naturally into story flow
2242
+ - Example: Instead of "We have 5-star ratings"
2243
+ Write: "You'll enjoy the same five-star experience that [specific number] of residents treasure"
2244
+
2245
+ **Crucial Rules**
2246
+ 1. Keep audience perspective consistent throughout
2247
+ 2. Every paragraph must flow from and into surrounding content
2248
+ 3. Use active, engaging language
2249
+ 4. Write naturally - avoid AI or corporate speak
2250
+
2251
+ End with:
2252
+ - TrustBuilders Used (no source links in main content)
2253
+ - Techniques Applied (brief list)
2254
+ "1. ##List of TrustBuilders Used: Provide trustbuilders used followed by *Source links always*"
2255
+ " 2. ##Heuristics and Creative Techniques :"
2256
+ " -List them in a footnote-style small heading."
2257
+ " Use the following structure:"
2258
+ " -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
2259
+ " -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
2260
+ "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."
2261
+ "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."
2262
+ """
2263
  )
2264
  else:
2265
  appended_instructions = ""