Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2238,39 +2238,30 @@ def handle_prompt(prompt):
|
|
| 2238 |
# Check if user request includes blog, article, or newsletter
|
| 2239 |
if any(keyword in prompt.lower() for keyword in ["blog", "write","article","annual report","report", "newsletter","news letter ","website introduction"]):
|
| 2240 |
appended_instructions = (
|
| 2241 |
-
|
| 2242 |
-
|
| 2243 |
-
|
| 2244 |
-
|
| 2245 |
-
|
| 2246 |
-
|
| 2247 |
-
" - **Articles, Blogs, Reports**: Use 'we' to reflect organizational authority and emphasize collective efforts."
|
| 2248 |
-
" - **Newsletters**: Use 'you' to directly engage the reader, making them feel personally connected to the content. Avoid distant references like 'they' or 'them.'"
|
| 2249 |
-
|
| 2250 |
-
"3. **Seamless Integration of TrustBuilders®**: Weave TrustBuilders® naturally into the narrative, integrating them into relevant contexts without isolating or explicitly listing them in the main body. Use them to build credibility and enhance the emotional impact of the message."
|
| 2251 |
-
|
| 2252 |
-
"4. **Human and Relatable Tone**: Write in a conversational tone that resonates with the audience, addressing their needs and aspirations. Use active voice consistently to ensure clarity and engagement."
|
| 2253 |
-
|
| 2254 |
-
"5. **Enhanced Storytelling and Emotional Resonance**: Incorporate real-life anecdotes, vivid imagery, or scenarios that humanize the content. Begin with a compelling hook, maintain momentum with smooth transitions, and conclude with a strong call-to-action (CTA)."
|
| 2255 |
-
|
| 2256 |
-
"6. **Audience-Centric Engagement**: Tailor the content to the reader’s needs, challenges, and goals. For newsletters, directly highlight their role in the impact ('Your support made this possible'). For blogs and articles, focus on insights and actionable takeaways."
|
| 2257 |
-
|
| 2258 |
-
"7. **Purpose-Driven Content**: Define the content’s purpose clearly—whether it is to inform, persuade, or inspire action. Ensure every section contributes to this purpose and avoids redundancy."
|
| 2259 |
-
|
| 2260 |
-
"8. **Polished Presentation**: Deliver a professional, error-free final output. Use consistent formatting, well-structured paragraphs, and engaging, action-oriented headlines tailored to the format. Avoid abrupt shifts in tone or focus."
|
| 2261 |
-
|
| 2262 |
-
"9. **Dynamic Headlines and Subheadings**: Use action-oriented, specific headlines that reflect the content’s key message. Tailor headlines to the format: "
|
| 2263 |
-
" - Blogs/Articles: Focus on intrigue and information."
|
| 2264 |
-
" - Newsletters: Highlight reader contributions, e.g., 'How You Transformed Lives in 2023.'"
|
| 2265 |
-
|
| 2266 |
-
"10. **TrustBuilders and Techniques**: "
|
| 2267 |
-
" - Provide a **List of TrustBuilders Used** in a separate section, with accurate and properly formatted source links."
|
| 2268 |
-
" - Include a **Heuristics and Creative Techniques** section in footnote style:"
|
| 2269 |
-
" - Heuristics: Mention names only, such as 'social proof,' 'authority,' or 'commitment.'"
|
| 2270 |
-
" - Creative Techniques: Mention relevant techniques like 'storytelling' or 'vivid imagery,' without additional details."
|
| 2271 |
|
| 2272 |
-
|
| 2273 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2274 |
else:
|
| 2275 |
appended_instructions = ""
|
| 2276 |
final_prompt = f"{prompt} {base_instructions} {appended_instructions}"
|
|
|
|
| 2238 |
# Check if user request includes blog, article, or newsletter
|
| 2239 |
if any(keyword in prompt.lower() for keyword in ["blog", "write","article","annual report","report", "newsletter","news letter ","website introduction"]):
|
| 2240 |
appended_instructions = (
|
| 2241 |
+
|
| 2242 |
+
"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. "
|
| 2243 |
+
"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: "
|
| 2244 |
+
"2. **Pronoun Flexibility for Format**: Adapt the tone and pronouns based on the content format: "
|
| 2245 |
+
" **Articles, Blogs, Reports**: Use 'we' to reflect organizational authority and emphasize collective efforts."
|
| 2246 |
+
" **Newsletters**: Use 'you' to directly engage the reader, making them feel personally connected to the content. Avoid distant references like 'they' or 'them.'"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2247 |
|
| 2248 |
+
"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. "
|
| 2249 |
+
"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. "
|
| 2250 |
+
"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."
|
| 2251 |
+
"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."
|
| 2252 |
+
"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. "
|
| 2253 |
+
"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. "
|
| 2254 |
+
"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. "
|
| 2255 |
+
"dont give source link in content"
|
| 2256 |
+
"1. ##List of TrustBuilders Used: Provide trustbuilders used followed by *Source links always*"
|
| 2257 |
+
" 2. ##Heuristics and Creative Techniques :"
|
| 2258 |
+
" -List them in a footnote-style small heading."
|
| 2259 |
+
" Use the following structure:"
|
| 2260 |
+
" -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
|
| 2261 |
+
" -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
|
| 2262 |
+
"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."
|
| 2263 |
+
"MOST IMPORTANT RULE. EACH AND 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.SHOULD BE LESS POINTS MORE LIKE A FLOWING COPY WOTH HEADINGS INTERCONNECTED."
|
| 2264 |
+
)
|
| 2265 |
else:
|
| 2266 |
appended_instructions = ""
|
| 2267 |
final_prompt = f"{prompt} {base_instructions} {appended_instructions}"
|