You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Note: This is an example of an intermediary result from using decompose in python_decompose_example.py, not an example of how to use decompose.
7
+
8
+
9
+
m=mellea.start_session()
10
+
11
+
12
+
# 1. Create a catchy title for the blog post about the benefits of morning exercise. - - BLOG_TITLE
13
+
blog_title=m.instruct(
14
+
textwrap.dedent(
15
+
R"""
16
+
Your task is to create a catchy title for a blog post about the benefits of morning exercise. Follow these steps to accomplish your task:
17
+
18
+
1. **Understand the Topic**: The blog post will focus on the benefits of morning exercise. The title should be engaging and clearly convey the main topic of the post.
19
+
20
+
2. **Identify Key Elements**: Consider the key elements that make morning exercise beneficial. These could include improved mood, increased energy, better focus, and enhanced metabolism.
21
+
22
+
3. **Use Power Words**: Incorporate power words that evoke curiosity, excitement, or a sense of urgency. Examples include "Boost," "Transform," "Unlock," "Energize," and "Revitalize."
23
+
24
+
4. **Keep It Concise**: The title should be short and to the point, ideally between 5 to 10 words. It should be easy to read and remember.
25
+
26
+
5. **Make It Action-Oriented**: Use verbs that encourage action, such as "Start," "Jumpstart," "Kickstart," or "Ignite."
27
+
28
+
6. **Consider SEO**: Think about common search terms related to morning exercise. Including relevant keywords can help improve the post's visibility.
29
+
30
+
7. **Examples for Inspiration**:
31
+
- "Jumpstart Your Day: The Power of Morning Exercise"
32
+
- "Energize Your Mornings: Unlock the Benefits of Morning Exercise"
33
+
- "Transform Your Day with Morning Exercise"
34
+
- "Boost Your Energy: The Magic of Morning Workouts"
35
+
- "Revitalize Your Mornings: The Benefits of Morning Exercise"
36
+
37
+
8. **Create the Title**: Based on the above guidelines, create a catchy and engaging title for the blog post. Ensure it captures the essence of the topic and entices readers to click and read more.
# 2. Write an introduction paragraph that sets the stage for the blog post. - - INTRODUCTION
47
+
introduction=m.instruct(
48
+
textwrap.dedent(
49
+
R"""
50
+
Your task is to write an engaging introduction paragraph for a blog post about the benefits of morning exercise. The introduction should set the stage for the blog post, capturing the reader's attention and providing a brief overview of what will be discussed.
51
+
52
+
To accomplish this, follow these steps:
53
+
54
+
1. **Understand the Context**:
55
+
- The blog post is about the benefits of morning exercise.
56
+
- The title of the blog post is: {{BLOG_TITLE}}
57
+
58
+
2. **Craft the Introduction**:
59
+
- Start with a hook that grabs the reader's attention. This could be a question, a surprising fact, or a relatable scenario.
60
+
- Briefly introduce the topic of morning exercise and why it is important.
61
+
- Provide a smooth transition to the main benefits that will be discussed in the blog post.
62
+
63
+
3. **Ensure Engagement**:
64
+
- Use a conversational and engaging tone to connect with the readers.
65
+
- Keep the introduction concise and to the point, ideally between 3 to 5 sentences.
66
+
67
+
Here is an example structure to guide your writing:
68
+
- **Sentence 1**: Hook to grab the reader's attention.
69
+
- **Sentence 2**: Introduce the topic of morning exercise.
70
+
- **Sentence 3**: Briefly mention the benefits that will be discussed.
71
+
- **Sentence 4**: Transition to the main content of the blog post.
72
+
73
+
Ensure that the introduction flows naturally and sets the stage for the rest of the blog post. You should write only the introduction paragraph, do not include the guidance structure.
74
+
""".strip()
75
+
),
76
+
requirements=["Include an introduction paragraph"],
# 3. Identify and explain three main benefits of morning exercise with detailed explanations. - - BENEFITS
82
+
benefits=m.instruct(
83
+
textwrap.dedent(
84
+
R"""
85
+
Your task is to identify and explain three main benefits of morning exercise with detailed explanations. Follow these steps to accomplish your task:
86
+
87
+
First, review the title and introduction created in the previous steps to understand the context and tone of the blog post:
88
+
<title>
89
+
{{BLOG_TITLE}}
90
+
</title>
91
+
<introduction>
92
+
{{INTRODUCTION}}
93
+
</introduction>
94
+
95
+
Next, research and identify three main benefits of morning exercise. These benefits should be supported by evidence or expert opinions to ensure credibility.
96
+
97
+
For each benefit, provide a detailed explanation that includes:
98
+
- The specific benefit of morning exercise
99
+
- How this benefit positively impacts health, well-being, or daily life
100
+
- Any relevant studies, expert opinions, or personal anecdotes that support the benefit
101
+
102
+
Ensure that the explanations are clear, concise, and engaging to keep the reader interested.
103
+
104
+
Finally, present the three main benefits with their detailed explanations in a structured format that can be easily integrated into the blog post.
105
+
""".strip()
106
+
),
107
+
requirements=["Include three main benefits with explanations"],
# 4. Write a conclusion that encourages readers to start their morning exercise routine. - - CONCLUSION
113
+
conclusion=m.instruct(
114
+
textwrap.dedent(
115
+
R"""
116
+
Your task is to write a compelling conclusion for a blog post about the benefits of morning exercise. The conclusion should encourage readers to start their morning exercise routine. Follow these steps to accomplish your task:
117
+
118
+
First, review the title and introduction of the blog post to understand the context and tone:
119
+
<title>
120
+
{{BLOG_TITLE}}
121
+
</title>
122
+
<introduction>
123
+
{{INTRODUCTION}}
124
+
</introduction>
125
+
126
+
Next, consider the three main benefits of morning exercise that have been previously identified and explained:
127
+
<benefits>
128
+
{{BENEFITS}}
129
+
</benefits>
130
+
131
+
Use the information from the title, introduction, and benefits to craft a conclusion that:
132
+
1. Summarizes the key points discussed in the blog post.
133
+
2. Reinforces the importance of morning exercise.
134
+
3. Encourages readers to take action and start their morning exercise routine.
135
+
4. Maintains a positive and motivating tone.
136
+
137
+
Ensure the conclusion is concise, engaging, and leaves readers feeling inspired to make a change in their daily routine.
138
+
139
+
Finally, write the conclusion paragraph that encourages readers to start their morning exercise routine.
140
+
""".strip()
141
+
),
142
+
requirements=[
143
+
"Include a conclusion that encourages readers to start their morning exercise routine"
# 5. Compile the title, introduction, three main benefits, and conclusion into a single cohesive blog post. - - FINAL_BLOG_POST
154
+
final_blog_post=m.instruct(
155
+
textwrap.dedent(
156
+
R"""
157
+
Your task is to compile the title, introduction, three main benefits, and conclusion into a single cohesive blog post about the benefits of morning exercise.
158
+
159
+
To accomplish this, follow these steps:
160
+
161
+
1. **Review the Components**:
162
+
Carefully review the title, introduction, three main benefits, and conclusion that have been generated in the previous steps. These components are provided below:
163
+
164
+
<blog_title>
165
+
{{BLOG_TITLE}}
166
+
</blog_title>
167
+
168
+
<introduction>
169
+
{{INTRODUCTION}}
170
+
</introduction>
171
+
172
+
<benefits>
173
+
{{BENEFITS}}
174
+
</benefits>
175
+
176
+
<conclusion>
177
+
{{CONCLUSION}}
178
+
</conclusion>
179
+
180
+
2. **Structure the Blog Post**:
181
+
Organize the components into a well-structured blog post. The structure should include:
182
+
- The catchy title at the beginning.
183
+
- The introduction paragraph that sets the stage for the blog post.
184
+
- The three main benefits with detailed explanations.
185
+
- The conclusion that encourages readers to start their morning exercise routine.
186
+
187
+
3. **Ensure Cohesion**:
188
+
Make sure the blog post flows smoothly from one section to the next. The transitions between the introduction, benefits, and conclusion should be natural and logical.
189
+
190
+
4. **Check for Consistency**:
191
+
Verify that the tone and style are consistent throughout the blog post. Ensure that the language used in the title, introduction, benefits, and conclusion aligns with the overall theme of the blog post.
192
+
193
+
5. **Final Review**:
194
+
Read through the entire blog post to ensure it is cohesive, well-organized, and free of any grammatical or spelling errors. Make any necessary adjustments to improve clarity and readability.
195
+
196
+
6. **Output the Blog Post**:
197
+
Provide the final compiled blog post as your answer. Ensure that the output includes only the blog post text without any additional information or instructions.
198
+
199
+
By following these steps, you will create a single cohesive blog post that effectively communicates the benefits of morning exercise.
200
+
""".strip()
201
+
),
202
+
requirements=[
203
+
"Include a catchy title",
204
+
"Include an introduction paragraph",
205
+
"Include three main benefits with explanations",
206
+
"Include a conclusion that encourages readers to start their morning exercise routine",
0 commit comments