Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 2223 |
-
|
| 2224 |
-
|
| 2225 |
-
|
| 2226 |
-
|
| 2227 |
-
|
| 2228 |
-
|
| 2229 |
-
|
| 2230 |
-
|
| 2231 |
-
|
| 2232 |
-
|
| 2233 |
-
|
| 2234 |
-
|
| 2235 |
-
|
| 2236 |
-
|
| 2237 |
-
|
| 2238 |
-
|
| 2239 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 = ""
|