/
rewrite.prompt
93 lines (81 loc) · 5.27 KB
/
rewrite.prompt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Original copy: `{{original_text}}`.
{{# -------------------------------------------------------------------------- }}
{{# INTENT }}
{{# State the intended user experience and the rationale behind crafting such }}
{{# an experience. }}
{{# -------------------------------------------------------------------------- }}
Our intent is to rewrite the original text to be {{explain_intent}}.
{{# -------------------------------------------------------------------------- }}
{{# TARGET AUDIENCE }}
{{# Describe the audience you're targeting by specifying all relevant traits }}
{{# or behaviors. }}
{{# -------------------------------------------------------------------------- }}
Your assigned target audience is {{target_audience}}.
{{# -------------------------------------------------------------------------- }}
{{# TASK }}
{{# Describe the content to be generated. We suggest you modify the hypotheses }}
{{# to fit your needs. }}
{{# -------------------------------------------------------------------------- }}
Your task is to compose {{number_of_variations}} distinct piece(s) of copy, targeted to our target audience by rewriting the original copy, provided in single backticks (`) above, to satisfy our intent. When rewriting, you may also use any available content provided in double-brackets ([[]]) below.
To accomplish your task, the text you compose must strictly comply with the following requirements listed in triple backticks (```) below:
{{# -------------------------------------------------------------------------- }}
{{# REQUIREMENTS }}
{{# Specify any and all conditions your content must comply with to meet your }}
{{# brand writing guidelines. }}
{{# -------------------------------------------------------------------------- }}
Requirements: ```
- The text must consist of any relevant parts present in the original copy and a "AI Rationale".
- The text must be brief, such that:
* In 20 words (100 characters) or less, compose the "AI Rationale" text first and use it to explain your reasoning for composing the copy, before composing the other parts.
* Any remaining relevant parts must not exceed the original word and character counts, respectively.
- The tone of the text needs to be: {{tone_of_voice}}.
- Format the response as an array of valid, iterable RFC8259 compliant JSON. Always list the "AI Rationale" attribute last.
```
{{# -------------------------------------------------------------------------- }}
{{# ADDTIONAL CONTEXT }}
{{# Here you will Provide more background information or specific details to }}
{{# guide the creation of the content. }}
{{# -------------------------------------------------------------------------- }}
Additional context: [[
{{additional_context}}
]]
{{# -------------------------------------------------------------------------- }}
{{# METADATA }}
{{# -------------------------------------------------------------------------- }}
{{@original_text,
label="Text to rewrite",
description="Provide the text or copy you want to rewrite",
default="Amazing apps. Endless possibilities. Create something beautiful, boost productivity, and deliver engaging experiences with Adobe software. View all products",
type=text
}}
{{@explain_intent,
label="Rewrite the text to be...",
description="Specify the primary intention for rewriting the content",
default="written for social media instead of a webpage",
type=text
}}
{{@target_audience,
label="Target Audience",
description="Choose your audience. For Target, audiences with no description will be unavailable. For CSV, Adobe provides audiences to get you started. To modify audiences publish a CSV file and update the URL in the prompt.",
csv="https://raw.githubusercontent.com/adobe/aem-genai-assistant/GIT_BRANCH/data/target-audiences.csv",
adobe_target=true,
type=audience
}}
{{@tone_of_voice,
label="Tone of voice",
description="Indicate the desired tone of voice",
default="optimistic, smart, engaging, human, and creative",
type=text
}}
{{@number_of_variations,
label="Number of Variations",
description="Enter a number to generate the desired number of variations",
default=4,
type=number
}}
{{@additional_context,
label="Additional Context and Trusted Source Documents",
description="Provide more background information or specific details to guide the creation of the content. For Trusted Source Documents, include specific context, which can include your branding materials, website content, data schemas for such data, templates, and other trusted documents. Include additional prompting E.g. 'use the following source document as a reference in generation to match brand voice' to ensure accurate use.",
default="No additional context provided",
type=text
}}