peterhartwigCF commited on
Commit
2976eb8
·
verified ·
1 Parent(s): be2ecd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -20
app.py CHANGED
@@ -15,26 +15,14 @@ def generate_template(ref1, ref2, ref3, ref4, ref5):
15
 
16
  # Build a detailed prompt with properly escaped curly braces for literal output.
17
  prompt = f"""
18
- You are an expert in e-commerce copywriting. Your task is to analyze the following reference copy examples and generate a structured e-commerce copywriting template. Follow these guidelines extracted from our documentation:
19
-
20
- 1. **Header Section:**
21
- - Must be enclosed in square brackets (e.g., `[type: UK website, style=true, language=English]`).
22
-
23
- 2. **Template Blocks:**
24
- - Enclosed in double curly braces `{{{{ }}}}`.
25
- - Include sections such as an introduction block, feature descriptions, technical specifications, and a conclusion block.
26
-
27
- 3. **Control Structures:**
28
- - Enclosed in `{{% %}}` tags to iterate over lists (for example, to generate a bulleted list of features).
29
-
30
- 4. **Instructions and Modifiers:**
31
- - Include clear guidance for tone, style, and length (e.g., `motivational, passionate, 1-2 sentences`).
32
-
33
- Your generated template should include:
34
- - A header section.
35
- - An introduction block.
36
- - An example control structure for iterating over features.
37
- - A conclusion block.
38
 
39
  **Reference Copy:**
40
  {combined_references}
 
15
 
16
  # Build a detailed prompt with properly escaped curly braces for literal output.
17
  prompt = f"""
18
+ I need you to help me create a template that will allow us to generate the same style of e-commerce copy as the reference(s) included below.
19
+ Step 1:
20
+ Analyse what parts the references are created from. Are there specific bullet point? Are features mentioned in a specific order? What kinds of text and features are mentioned?
21
+ Step 2:
22
+ For each of those parts, break down the tone of voice, the cadence and rythm, and the perspective of the writing.
23
+ For each part, also see if there is a common length and strucutre.
24
+ Step 3:
25
+ Describe each of the parts, so a skilled copywriter could take those and use them as instructions to write about another product
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
  **Reference Copy:**
28
  {combined_references}