[Guide] - Article generation through a prompt-pipeline

ImBackBaby

Junior Member
Joined
May 23, 2023
Messages
104
Reaction score
97
All right, this will be a longer post so stay with me.

I oftentimes see people complain about AI-generated articles, but when you ask what they are doing and how they are prompting it's ususally something bland like this
Code:
Hey there ChatGPT! You are a professional writer and know your stuff about fashion. Write a compelling 500 word article about new trends for womens summer fashion.
And while GPT4o is arguably better with these instructions than GPT3.5, if you create a few articles like this, they probaly won't match your expectations

In order to combat this, I put some effort into building a pipeline of prompts, that would allow me to automate creating articles with some Python (or JavaScript)
The prompts are (as you may have guessed from my example above) focused on creating articles in the fashion niche, but with a little work from your side I'm sure you can adapt them for a wide variety of niches.

Here are the prompts with some explanation of what we are doing below (at this point we only need the final title of the artice and a more niche category than just "fashion" maybe you already have a list of article-names that ChatGPT generated for you and can use one of them), here we will use "New Trends for womens summer fashion" in the category "Womens fashion"

  1. Creating an article outline in sections
    Code:
    ChatGPT, I need your expertise in generating a compelling, detailed article outline for a piece intended for our fashion-centric website. While the specifics of the article's theme will vary, our focus is always on creating engaging and informative content that delves into various aspects of fashion.
    
    I'm looking for an outline that includes a mix of longer, in-depth sections and shorter, punchy ones to keep our readers actively engaged. The flow should be natural and the structure should allow for a variety of content formats, including but not limited to, narratives, interviews, case studies, and trend analyses (add the used content formats after the section)
    
    Please ensure the language used throughout the outline remains simple yet diverse, using an approachable tone that our fashion-interested audience can resonate with. While the use of bullet points and lists can be very effective in communicating information, they should be used sparingly to maintain a conversational and story-driven format. For every point in the outline specify more details on this sections writing-style and focus on how it will later be written, as this will be part of the prompt to write it late. By making specific requests for the subsections I hope to make the prompt to actually write the subsection more generic.
    
    Within the outline enclose the separate parts in XML like tags to denote what each part is, use ONLY the tags <TITLE></TITLE>, <SECTION></SECTION>, <FORMAT></FORMAT> and <DESCRIPTION></DESCRIPTION> and don't number the sections.
    The output should have the form
    <TITLE>title here</TITLE>
    <SECTION>section 1</SECTION>
    <FORMAT>content format for section 1</FORMAT>
    <DESCRIPTION>description for section 1</DESCRIPTION>
    <SECTION>section 2</SECTION>
    <FORMAT>content format for section 2</FORMAT>
    <DESCRIPTION>description for section 2</DESCRIPTION>
    ...
    <SECTION>section n</SECTION>
    <FORMAT>content format for section n</FORMAT>
    <DESCRIPTION>description for section n</DESCRIPTION>
    
    In summary, please create an article outline that:
    
    1. Encompasses various aspects of fashion,
    2. Balances longer and shorter sections for varied reader engagement,
    3. Uses simple but diverse language,
    4. Incorporates a limited use of bullet points and lists to maintain narrative flow.
    5. With every section add more specific, detailed, prompt-like details on how the article should be written
    6. Adheres to the <TITLE></TITLE>, <SECTION></SECTION>, <FORMAT></FORMAT> and <DESCRIPTION></DESCRIPTION> format explained above
    
    The title of the article is <TITLE_OF_THE_ARTICLE> (this is the only thing that can be inclosed in the <TITLE></TITLE> tags) and it's in the category <ARTICLE_CATEGORY> (do not embed the category anywhere though)
    In the above prompt, we want to replace <TITLE_OF_THE_ARTICLE> with "New Trends for womens summer fashion" and <ARTICLE_CATEGORY> with "Womens fashion" and let ChatGPT do it's thing. Afterwards we need to parse the text (or copy paste if you're doing it by hand) into section-blocks. Every section-block should roughly look like below (taken from actually running the prompt with our title)

    Code:
    <SECTION>Trend Spotlight: The Rise of Sustainable Fabrics</SECTION>
    <FORMAT>Trend Analysis</FORMAT>
    <DESCRIPTION>This section will delve into the growing popularity of sustainable fabrics in summer fashion. It will highlight specific materials such as organic cotton, linen, and recycled blends, discussing their environmental benefits and aesthetic appeal. The tone should be informative yet accessible, using examples and quotes from industry experts to support the analysis.</DESCRIPTION>
    Code:
    <SECTION>Interview: Insights from a Leading Fashion Designer</SECTION>
    <FORMAT>Interview</FORMAT>
    <DESCRIPTION>In this section, readers will gain insights from an exclusive interview with a renowned fashion designer. The interview will cover the designer's inspiration for their summer collection, thoughts on emerging trends, and tips for staying stylish in the heat. The format will be a Q&A, maintaining a conversational tone that allows the designer's personality to shine through.</DESCRIPTION>
    Now we have a bunch of sections and can continue with the 2nd prompt

  2. Getting a specific prompt for each single section
    Code:
    I want to use you for creating long form articles on a fashion website. Act as a professional author, fashion enthusiast and prompt designer. Given a title of an article and an extensive detailed outline of sections I want to use AI to write the article 1 section at a time while keeping an overall good flow between the sections and within he article. My aim is to create engaging, human like content with simple but varied language. For every section provided, build on the given description and design a great, thorough and extensive GPT-prompt for writing that section given my previous requirements. All sections together should later form an amazing article based on the overall outline while keeping in mind that this will only be part of a bigger article, so it's important the resulting article won't repeat itself. Enclose the sections and prompts in the XML like <SECTION></SECTION> and <PROMPT></PROMPT>. Do not use any other tags or annotations.
    
    So in short, write a prompt per section that will allow me to generate that section.
    
    Title:
    <TITLE_OF_THE_ARTICLE>
    
    Category:
    <ARTICLE_CATEGORY>
    
    Outline:
    <OUTLINE_OF_THE_ARTICLE>
    This is a simple one. In order to have more dynamic content, we use ChatGPT to write (at least part of) it's own prompts. We again put in the the title and category, and then for <OUTLINE_OF_THE_ARTICLE> we use all the sections we generated above (each section with all tags: <SECTION>,<FORMAT> and <DESCRIPTON>

    Using this approach with out 2 sections from above yields the following result

    Code:
    <SECTION>Trend Spotlight: The Rise of Sustainable Fabrics</SECTION>
    <PROMPT>In this section, explore the growing popularity of sustainable fabrics in summer fashion. Discuss specific materials such as organic cotton, linen, and recycled blends, highlighting their environmental benefits and aesthetic appeal. Use an informative yet accessible tone, incorporating examples and quotes from industry experts to support your analysis. Explain why these fabrics are becoming a trend and how they fit into the broader context of eco-friendly fashion.</PROMPT>
    
    <SECTION>Interview: Insights from a Leading Fashion Designer</SECTION>
    <PROMPT>Craft an engaging interview with a renowned fashion designer about their insights on summer fashion trends. Structure the interview as a Q&A, maintaining a conversational tone that allows the designer's personality to shine through. Ask about their inspiration for the summer collection, thoughts on emerging trends, and tips for staying stylish in the heat. Ensure the questions are insightful and the answers provide valuable insights for readers.</PROMPT>

  3. Generating the text for the first section
    Code:
    I want to use you for creating long form articles on a fashion website. Act as a professional author, fashion enthusiast and prompt designer. Overall I want you to write a great and engaging article that reads like a human wrote it. Share your expertise and passion with the reader in a simple but varied language without repeating yourself within the article. Make sure the reading level is 5th grade. All sections together should later form an amazing article based on the overall outline while keeping in mind that this will only be part of a bigger article. Try to use a more natural flow within the section instead of starting every new thought with words like "Moreover", "Finally", "However", "Firstly", "Furthermore", "Lastly" and the like. Write in an engaging and human like way, using varied language and a 5th grade reading level without writing too playful, exuberant and whimsical and without inventing words and expressions.
    
    Title:
    <TITLE_OF_THE_ARTICLE>
    
    Category:
    <ARTICLE_CATEGORY>
    
    Outline:
    <SECTIONS_WITH_FORMAT>
    
    In the next few messages I will ask you to write the whole article section by section, so keep context in mind
    
    For now, write the section
    "1. <TITLE_OF_THE_SECTION> (<SECTION_FORMAT>)"
    
    Based on the requirements I gave you before and the following prompt:
    "<SECTION_PROMPT>"
    Our third promt is a bit special. This is specifically meant to kick of the article generation and therefor explicitly takes the first section and the matching section prompt into account. We once again put in the title and the category discussed in the beginning. Afterwards, according to our output from 1. and 2., we will replace <SECTIONS_WITH_FORMAT> with all section-titles and their format, in our example:
    Code:
    <SECTION>Trend Spotlight: The Rise of Sustainable Fabrics</SECTION>
    <FORMAT>Trend Analysis</FORMAT>
    <SECTION>Interview: Insights from a Leading Fashion Designer</SECTION>
    <FORMAT>Interview</FORMAT>
    And then we replace <TITLE_OF_THE_SECTION> with the first sections title: "Trend Spotlight: The Rise of Sustainable Fabrics" and <SECTION_FORMAT> with "Trend Analysis",
    Since we are now asking to write the section, also make sure to put in the matching prompt we generated in 2:
    Code:
    In this section, explore the growing popularity of sustainable fabrics in summer fashion. Discuss specific materials such as organic cotton, linen, and recycled blends, highlighting their environmental benefits and aesthetic appeal. Use an informative yet accessible tone, incorporating examples and quotes from industry experts to support your analysis. Explain why these fabrics are becoming a trend and how they fit into the broader context of eco-friendly fashion.
    With our Trend spotlight, we get the following result:
    Code:
    Trend Spotlight: The Rise of Sustainable Fabrics
    Sustainable fabrics are making waves in summer fashion, and it's easy to see why. People are more conscious about the environment, and this awareness is changing the way we think about clothes. Organic cotton, linen, and recycled blends are at the forefront of this trend.
    
    Organic cotton is grown without harmful chemicals, making it better for the planet and for the people who grow it. It's soft, breathable, and perfect for hot summer days. Imagine wearing a light, airy dress made from organic cotton – it feels good and looks great too.
    
    Linen, another popular choice, comes from the flax plant. It uses less water and fewer pesticides than other crops. Linen clothes are cool and comfortable, perfect for staying stylish in the heat. They also have a timeless, natural look that fits with many summer styles.
    
    Recycled fabrics are gaining traction as well. These materials give new life to old clothes and plastic bottles, turning them into fresh, fashionable pieces. Not only do recycled fabrics reduce waste, but they also help save resources. You might find a trendy summer top made from recycled polyester that looks chic and helps the planet.
    
    Fashion experts are excited about these materials. Designer Jane Smith says, "Sustainable fabrics are the future of fashion. They offer great quality and are kinder to the earth." These fabrics show that we can look good and do good at the same time.
    
    As people look for ways to reduce their environmental impact, sustainable fabrics are becoming more popular. They fit perfectly into the broader trend of eco-friendly fashion. This trend is all about making choices that are better for our planet without sacrificing style.
    
    Incorporating sustainable fabrics into your wardrobe is a step towards a greener future. It's a trend that feels as good as it looks, and it's here to stay.

  4. Generating each consecutive section
    Code:
    Write the below section (as part of an article in the <ARTICLE_CATEGORY> category of my website) while keeping the flow from previous sections and try to use a more natural flow within the section instead of starting every new thought with words like "Moreover", "Finally", "However", "Firstly", "Furthermore", "Lastly" and the like. Write in an engaging and human like way, using varied language and a 5th grade reading level without writing too playful, exuberant and whimsical and without inventing words and expressions.
    
    "<SECTION_ID>. <TITLE_OF_THE_SECTION> (<SECTION_FORMAT>)"
    
    Based on the requirements I gave you before and the following prompt:
    "<SECTION_PROMPT>"
    This prompt repeats some elements from 3. but is basically meant to write every section AFTER the first one. So repeat it for all the sections you generated in 1.
    Again we replace the category and put in the new <SECTION_ID> (just a counter, in the prompt from 3. it was hard-coded to "1." because we wrote the first section, now dynamically add it depending on how far along we are).
    Now we have to replace the section title and format with our previous results and the prompt we generated and let this run. Here's the result for our 2nd section:

    Code:
    Interview: Insights from a Leading Fashion Designer
    We had the pleasure of chatting with Olivia Rivera, a celebrated fashion designer known for her vibrant and innovative summer collections. Olivia shared her thoughts on the latest summer trends and gave us some fantastic tips for staying stylish during the hottest months.
    
    Q: What inspired your summer collection this year?
    
    Olivia: This summer, my inspiration came from tropical destinations. I wanted to capture the essence of a beach vacation, with lots of bright colors, breezy fabrics, and playful patterns. The goal was to create pieces that make you feel like you’re on holiday, even if you’re just in your backyard.
    
    Q: Can you tell us about some emerging trends you’re excited about?
    
    Olivia: I'm really excited about the return of bold prints. We’re seeing a lot of florals, tropical motifs, and even some retro-inspired patterns. These prints are perfect for summer because they’re fun and lively. Another trend I love is the use of lightweight layering. Even though it’s hot, you can still layer with sheer fabrics and light cardigans to add dimension to your outfits.
    
    Q: Do you have any tips for staying stylish in the summer heat?
    
    Olivia: Definitely! It's all about choosing the right fabrics. Look for materials that are breathable and lightweight, like cotton, linen, and chiffon. These fabrics help keep you cool and comfortable. Also, don’t underestimate the power of a good hat and sunglasses. They not only protect you from the sun but also add a chic touch to any look.
    
    Q: How do you think fashion is evolving this summer?
    
    Olivia: Fashion is becoming more inclusive and diverse. There’s a growing acceptance of different body types and personal styles, which is fantastic. People are more willing to experiment and express themselves in unique ways. This summer, it's all about being bold and confident in whatever you choose to wear.
    
    Q: What advice would you give to someone looking to update their summer wardrobe?
    
    Olivia: Start with a few statement pieces that you love. Maybe it's a brightly colored dress, a patterned top, or a pair of fun sandals. Build around these pieces with versatile basics. Don’t be afraid to mix and match different prints and colors. And most importantly, wear what makes you feel good. Confidence is the key to any great outfit.
    
    Talking with Olivia was a delight. Her enthusiasm for fashion is contagious, and her insights are sure to inspire anyone looking to refresh their summer style.

  5. Optional polishing
    Code:
    I want you to rewrite an article I will provide further down. Follow instructions 1 to 11 when doing so.
    
    1. Act as a professional author and fashion enthusiast
    2. The new article should be on a 5th grade reading level, use natural language, use varied language
    3. Write in an engaging and human like way, make the finished article a great one
    4. Do not write too playful, exuberant and whimsical. Do not invent words and expressions. Avoid repeating yourself
    5. Try to avoid starting new thoughts with fluffy transition words or phrases like "Moreover", "Finally", "However", "Firstly", "Furthermore", "Lastly", "In conclusion" and the like
    6. Each of the <SECTION></SECTION> tags defines a section. Polish up each section for a better flow and improve the readability and flow within a section
    7. If there is a list somewhere, make sure to keep a list. But repair every list by fixing the numbering, merging similar points and deleting missing points
    8. Create a great and natural flow between the different sections. Make the finished article consisting of the sections feel more like one person wrote it and avoid repetition of thoughts throughout the article
    9. Make sure to use simple language on a 5th grade reading level
    10. Expand some sections to have more variance in length. The finished article should be anywhere from 800 - 2200 words, try not to shorten the original
    11. DO NOT CHANGE ANYTHING WITHING THE <TITLE></TITLE> tags. You CAN ONLY rewrite the sections enclosed within <SECTION></SECTION> according to the instructions in this list
    
    Here's the article:
    
    <COMPLETE_ARTICLE>

    After we run this prompt for every single section, we can just merge the sections and have a finished article. BUT the above is an optional prompt which I really like using.
    Because we create the sections somewhat independently (at least I did when using the API), they sometimes clash a little bit, so we provide the resulting sections in order as <COMPLETE_ARTICLE> and do one last run. Your mileage my vary on this one, but give it a try ;)

  6. Final thoughts
    The above is not perfect, but it will give some of you an insight into what's possible with creating AI articles. Automate this process through the ChatGPT API and you could have articles for years.
    If there are a lot of sections, sometimes ChatGPT's context window is too small (with each prompt I usually pass the previous AI-generated answers back to ChatGPT in the messages and omit the prompts we send) and we may have to drop some responses from the beginning.
    This may lead to ChatGPT repeating ideas which we can improve a little with prompt 5 but can't completely avoid.

    Keep in mind thought, that the longer prompts and multiple API calls can make this a little more costly than a simple 1-line prompt. Also I had trouble making GPT-3.5 follow all the orders and it would sometime not follow my rules regarding the <...> - Tags, which would create issues parsing the answers.
    I think you can enforce some JSON-format instead or ideally just use GPT4 / GPT4o

    Also I haven't run this in a few months and it took a little effort to get back into what I was thinking with this whole thing. Pretty sure I explained it correctly though :)
 
Last edited:
That's the way to go. I do something similar (I'm not using it for article blogs) but the concepts are the same. A little automation with Python or JS is all you need
 
That's the way to go. I do something similar (I'm not using it for article blogs) but the concepts are the same. A little automation with Python or JS is all you need
Appreciate the input! Yes I used to automate this with python but tbh once I have time might write it in JS and share the code and how to set it up here
 
All right, this will be a longer post so stay with me.

I oftentimes see people complain about AI-generated articles, but when you ask what they are doing and how they are prompting it's ususally something bland like this
Code:
Hey there ChatGPT! You are a professional writer and know your stuff about fashion. Write a compelling 500 word article about new trends for womens summer fashion.
And while GPT4o is arguably better with these instructions than GPT3.5, if you create a few articles like this, they probaly won't match your expectations

In order to combat this, I put some effort into building a pipeline of prompts, that would allow me to automate creating articles with some Python (or JavaScript)
The prompts are (as you may have guessed from my example above) focused on creating articles in the fashion niche, but with a little work from your side I'm sure you can adapt them for a wide variety of niches.

Here are the prompts with some explanation of what we are doing below (at this point we only need the final title of the artice and a more niche category than just "fashion" maybe you already have a list of article-names that ChatGPT generated for you and can use one of them), here we will use "New Trends for womens summer fashion" in the category "Womens fashion"

  1. Creating an article outline in sections
    Code:
    ChatGPT, I need your expertise in generating a compelling, detailed article outline for a piece intended for our fashion-centric website. While the specifics of the article's theme will vary, our focus is always on creating engaging and informative content that delves into various aspects of fashion.
    
    I'm looking for an outline that includes a mix of longer, in-depth sections and shorter, punchy ones to keep our readers actively engaged. The flow should be natural and the structure should allow for a variety of content formats, including but not limited to, narratives, interviews, case studies, and trend analyses (add the used content formats after the section)
    
    Please ensure the language used throughout the outline remains simple yet diverse, using an approachable tone that our fashion-interested audience can resonate with. While the use of bullet points and lists can be very effective in communicating information, they should be used sparingly to maintain a conversational and story-driven format. For every point in the outline specify more details on this sections writing-style and focus on how it will later be written, as this will be part of the prompt to write it late. By making specific requests for the subsections I hope to make the prompt to actually write the subsection more generic.
    
    Within the outline enclose the separate parts in XML like tags to denote what each part is, use ONLY the tags <TITLE></TITLE>, <SECTION></SECTION>, <FORMAT></FORMAT> and <DESCRIPTION></DESCRIPTION> and don't number the sections.
    The output should have the form
    <TITLE>title here</TITLE>
    <SECTION>section 1</SECTION>
    <FORMAT>content format for section 1</FORMAT>
    <DESCRIPTION>description for section 1</DESCRIPTION>
    <SECTION>section 2</SECTION>
    <FORMAT>content format for section 2</FORMAT>
    <DESCRIPTION>description for section 2</DESCRIPTION>
    ...
    <SECTION>section n</SECTION>
    <FORMAT>content format for section n</FORMAT>
    <DESCRIPTION>description for section n</DESCRIPTION>
    
    In summary, please create an article outline that:
    
    1. Encompasses various aspects of fashion,
    2. Balances longer and shorter sections for varied reader engagement,
    3. Uses simple but diverse language,
    4. Incorporates a limited use of bullet points and lists to maintain narrative flow.
    5. With every section add more specific, detailed, prompt-like details on how the article should be written
    6. Adheres to the <TITLE></TITLE>, <SECTION></SECTION>, <FORMAT></FORMAT> and <DESCRIPTION></DESCRIPTION> format explained above
    
    The title of the article is <TITLE_OF_THE_ARTICLE> (this is the only thing that can be inclosed in the <TITLE></TITLE> tags) and it's in the category <ARTICLE_CATEGORY> (do not embed the category anywhere though)
    In the above prompt, we want to replace <TITLE_OF_THE_ARTICLE> with "New Trends for womens summer fashion" and <ARTICLE_CATEGORY> with "Womens fashion" and let ChatGPT do it's thing. Afterwards we need to parse the text (or copy paste if you're doing it by hand) into section-blocks. Every section-block should roughly look like below (taken from actually running the prompt with our title)

    Code:
    <SECTION>Trend Spotlight: The Rise of Sustainable Fabrics</SECTION>
    <FORMAT>Trend Analysis</FORMAT>
    <DESCRIPTION>This section will delve into the growing popularity of sustainable fabrics in summer fashion. It will highlight specific materials such as organic cotton, linen, and recycled blends, discussing their environmental benefits and aesthetic appeal. The tone should be informative yet accessible, using examples and quotes from industry experts to support the analysis.</DESCRIPTION>
    Code:
    <SECTION>Interview: Insights from a Leading Fashion Designer</SECTION>
    <FORMAT>Interview</FORMAT>
    <DESCRIPTION>In this section, readers will gain insights from an exclusive interview with a renowned fashion designer. The interview will cover the designer's inspiration for their summer collection, thoughts on emerging trends, and tips for staying stylish in the heat. The format will be a Q&A, maintaining a conversational tone that allows the designer's personality to shine through.</DESCRIPTION>
    Now we have a bunch of sections and can continue with the 2nd prompt

  2. Getting a specific prompt for each single section
    Code:
    I want to use you for creating long form articles on a fashion website. Act as a professional author, fashion enthusiast and prompt designer. Given a title of an article and an extensive detailed outline of sections I want to use AI to write the article 1 section at a time while keeping an overall good flow between the sections and within he article. My aim is to create engaging, human like content with simple but varied language. For every section provided, build on the given description and design a great, thorough and extensive GPT-prompt for writing that section given my previous requirements. All sections together should later form an amazing article based on the overall outline while keeping in mind that this will only be part of a bigger article, so it's important the resulting article won't repeat itself. Enclose the sections and prompts in the XML like <SECTION></SECTION> and <PROMPT></PROMPT>. Do not use any other tags or annotations.
    
    So in short, write a prompt per section that will allow me to generate that section.
    
    Title:
    <TITLE_OF_THE_ARTICLE>
    
    Category:
    <ARTICLE_CATEGORY>
    
    Outline:
    <OUTLINE_OF_THE_ARTICLE>
    This is a simple one. In order to have more dynamic content, we use ChatGPT to write (at least part of) it's own prompts. We again put in the the title and category, and then for <OUTLINE_OF_THE_ARTICLE> we use all the sections we generated above (each section with all tags: <SECTION>,<FORMAT> and <DESCRIPTON>

    Using this approach with out 2 sections from above yields the following result

    Code:
    <SECTION>Trend Spotlight: The Rise of Sustainable Fabrics</SECTION>
    <PROMPT>In this section, explore the growing popularity of sustainable fabrics in summer fashion. Discuss specific materials such as organic cotton, linen, and recycled blends, highlighting their environmental benefits and aesthetic appeal. Use an informative yet accessible tone, incorporating examples and quotes from industry experts to support your analysis. Explain why these fabrics are becoming a trend and how they fit into the broader context of eco-friendly fashion.</PROMPT>
    
    <SECTION>Interview: Insights from a Leading Fashion Designer</SECTION>
    <PROMPT>Craft an engaging interview with a renowned fashion designer about their insights on summer fashion trends. Structure the interview as a Q&A, maintaining a conversational tone that allows the designer's personality to shine through. Ask about their inspiration for the summer collection, thoughts on emerging trends, and tips for staying stylish in the heat. Ensure the questions are insightful and the answers provide valuable insights for readers.</PROMPT>

  3. Generating the text for the first section
    Code:
    I want to use you for creating long form articles on a fashion website. Act as a professional author, fashion enthusiast and prompt designer. Overall I want you to write a great and engaging article that reads like a human wrote it. Share your expertise and passion with the reader in a simple but varied language without repeating yourself within the article. Make sure the reading level is 5th grade. All sections together should later form an amazing article based on the overall outline while keeping in mind that this will only be part of a bigger article. Try to use a more natural flow within the section instead of starting every new thought with words like "Moreover", "Finally", "However", "Firstly", "Furthermore", "Lastly" and the like. Write in an engaging and human like way, using varied language and a 5th grade reading level without writing too playful, exuberant and whimsical and without inventing words and expressions.
    
    Title:
    <TITLE_OF_THE_ARTICLE>
    
    Category:
    <ARTICLE_CATEGORY>
    
    Outline:
    <SECTIONS_WITH_FORMAT>
    
    In the next few messages I will ask you to write the whole article section by section, so keep context in mind
    
    For now, write the section
    "1. <TITLE_OF_THE_SECTION> (<SECTION_FORMAT>)"
    
    Based on the requirements I gave you before and the following prompt:
    "<SECTION_PROMPT>"
    Our third promt is a bit special. This is specifically meant to kick of the article generation and therefor explicitly takes the first section and the matching section prompt into account. We once again put in the title and the category discussed in the beginning. Afterwards, according to our output from 1. and 2., we will replace <SECTIONS_WITH_FORMAT> with all section-titles and their format, in our example:
    Code:
    <SECTION>Trend Spotlight: The Rise of Sustainable Fabrics</SECTION>
    <FORMAT>Trend Analysis</FORMAT>
    <SECTION>Interview: Insights from a Leading Fashion Designer</SECTION>
    <FORMAT>Interview</FORMAT>
    And then we replace <TITLE_OF_THE_SECTION> with the first sections title: "Trend Spotlight: The Rise of Sustainable Fabrics" and <SECTION_FORMAT> with "Trend Analysis",
    Since we are now asking to write the section, also make sure to put in the matching prompt we generated in 2:
    Code:
    In this section, explore the growing popularity of sustainable fabrics in summer fashion. Discuss specific materials such as organic cotton, linen, and recycled blends, highlighting their environmental benefits and aesthetic appeal. Use an informative yet accessible tone, incorporating examples and quotes from industry experts to support your analysis. Explain why these fabrics are becoming a trend and how they fit into the broader context of eco-friendly fashion.
    With our Trend spotlight, we get the following result:
    Code:
    Trend Spotlight: The Rise of Sustainable Fabrics
    Sustainable fabrics are making waves in summer fashion, and it's easy to see why. People are more conscious about the environment, and this awareness is changing the way we think about clothes. Organic cotton, linen, and recycled blends are at the forefront of this trend.
    
    Organic cotton is grown without harmful chemicals, making it better for the planet and for the people who grow it. It's soft, breathable, and perfect for hot summer days. Imagine wearing a light, airy dress made from organic cotton – it feels good and looks great too.
    
    Linen, another popular choice, comes from the flax plant. It uses less water and fewer pesticides than other crops. Linen clothes are cool and comfortable, perfect for staying stylish in the heat. They also have a timeless, natural look that fits with many summer styles.
    
    Recycled fabrics are gaining traction as well. These materials give new life to old clothes and plastic bottles, turning them into fresh, fashionable pieces. Not only do recycled fabrics reduce waste, but they also help save resources. You might find a trendy summer top made from recycled polyester that looks chic and helps the planet.
    
    Fashion experts are excited about these materials. Designer Jane Smith says, "Sustainable fabrics are the future of fashion. They offer great quality and are kinder to the earth." These fabrics show that we can look good and do good at the same time.
    
    As people look for ways to reduce their environmental impact, sustainable fabrics are becoming more popular. They fit perfectly into the broader trend of eco-friendly fashion. This trend is all about making choices that are better for our planet without sacrificing style.
    
    Incorporating sustainable fabrics into your wardrobe is a step towards a greener future. It's a trend that feels as good as it looks, and it's here to stay.

  4. Generating each consecutive section
    Code:
    Write the below section (as part of an article in the <ARTICLE_CATEGORY> category of my website) while keeping the flow from previous sections and try to use a more natural flow within the section instead of starting every new thought with words like "Moreover", "Finally", "However", "Firstly", "Furthermore", "Lastly" and the like. Write in an engaging and human like way, using varied language and a 5th grade reading level without writing too playful, exuberant and whimsical and without inventing words and expressions.
    
    "<SECTION_ID>. <TITLE_OF_THE_SECTION> (<SECTION_FORMAT>)"
    
    Based on the requirements I gave you before and the following prompt:
    "<SECTION_PROMPT>"
    This prompt repeats some elements from 3. but is basically meant to write every section AFTER the first one. So repeat it for all the sections you generated in 1.
    Again we replace the category and put in the new <SECTION_ID> (just a counter, in the prompt from 3. it was hard-coded to "1." because we wrote the first section, now dynamically add it depending on how far along we are).
    Now we have to replace the section title and format with our previous results and the prompt we generated and let this run. Here's the result for our 2nd section:

    Code:
    Interview: Insights from a Leading Fashion Designer
    We had the pleasure of chatting with Olivia Rivera, a celebrated fashion designer known for her vibrant and innovative summer collections. Olivia shared her thoughts on the latest summer trends and gave us some fantastic tips for staying stylish during the hottest months.
    
    Q: What inspired your summer collection this year?
    
    Olivia: This summer, my inspiration came from tropical destinations. I wanted to capture the essence of a beach vacation, with lots of bright colors, breezy fabrics, and playful patterns. The goal was to create pieces that make you feel like you’re on holiday, even if you’re just in your backyard.
    
    Q: Can you tell us about some emerging trends you’re excited about?
    
    Olivia: I'm really excited about the return of bold prints. We’re seeing a lot of florals, tropical motifs, and even some retro-inspired patterns. These prints are perfect for summer because they’re fun and lively. Another trend I love is the use of lightweight layering. Even though it’s hot, you can still layer with sheer fabrics and light cardigans to add dimension to your outfits.
    
    Q: Do you have any tips for staying stylish in the summer heat?
    
    Olivia: Definitely! It's all about choosing the right fabrics. Look for materials that are breathable and lightweight, like cotton, linen, and chiffon. These fabrics help keep you cool and comfortable. Also, don’t underestimate the power of a good hat and sunglasses. They not only protect you from the sun but also add a chic touch to any look.
    
    Q: How do you think fashion is evolving this summer?
    
    Olivia: Fashion is becoming more inclusive and diverse. There’s a growing acceptance of different body types and personal styles, which is fantastic. People are more willing to experiment and express themselves in unique ways. This summer, it's all about being bold and confident in whatever you choose to wear.
    
    Q: What advice would you give to someone looking to update their summer wardrobe?
    
    Olivia: Start with a few statement pieces that you love. Maybe it's a brightly colored dress, a patterned top, or a pair of fun sandals. Build around these pieces with versatile basics. Don’t be afraid to mix and match different prints and colors. And most importantly, wear what makes you feel good. Confidence is the key to any great outfit.
    
    Talking with Olivia was a delight. Her enthusiasm for fashion is contagious, and her insights are sure to inspire anyone looking to refresh their summer style.

  5. Optional polishing
    Code:
    I want you to rewrite an article I will provide further down. Follow instructions 1 to 11 when doing so.
    
    1. Act as a professional author and fashion enthusiast
    2. The new article should be on a 5th grade reading level, use natural language, use varied language
    3. Write in an engaging and human like way, make the finished article a great one
    4. Do not write too playful, exuberant and whimsical. Do not invent words and expressions. Avoid repeating yourself
    5. Try to avoid starting new thoughts with fluffy transition words or phrases like "Moreover", "Finally", "However", "Firstly", "Furthermore", "Lastly", "In conclusion" and the like
    6. Each of the <SECTION></SECTION> tags defines a section. Polish up each section for a better flow and improve the readability and flow within a section
    7. If there is a list somewhere, make sure to keep a list. But repair every list by fixing the numbering, merging similar points and deleting missing points
    8. Create a great and natural flow between the different sections. Make the finished article consisting of the sections feel more like one person wrote it and avoid repetition of thoughts throughout the article
    9. Make sure to use simple language on a 5th grade reading level
    10. Expand some sections to have more variance in length. The finished article should be anywhere from 800 - 2200 words, try not to shorten the original
    11. DO NOT CHANGE ANYTHING WITHING THE <TITLE></TITLE> tags. You CAN ONLY rewrite the sections enclosed within <SECTION></SECTION> according to the instructions in this list
    
    Here's the article:
    
    <COMPLETE_ARTICLE>

    After we run this prompt for every single section, we can just merge the sections and have a finished article. BUT the above is an optional prompt which I really like using.
    Because we create the sections somewhat independently (at least I did when using the API), they sometimes clash a little bit, so we provide the resulting sections in order as <COMPLETE_ARTICLE> and do one last run. Your mileage my vary on this one, but give it a try ;)

  6. Final thoughts
    The above is not perfect, but it will give some of you an insight into what's possible with creating AI articles. Automate this process through the ChatGPT API and you could have articles for years.
    If there are a lot of sections, sometimes ChatGPT's context window is too small (with each prompt I usually pass the previous AI-generated answers back to ChatGPT in the messages and omit the prompts we send) and we may have to drop some responses from the beginning.
    This may lead to ChatGPT repeating ideas which we can improve a little with prompt 5 but can't completely avoid.

    Keep in mind thought, that the longer prompts and multiple API calls can make this a little more costly than a simple 1-line prompt. Also I had trouble making GPT-3.5 follow all the orders and it would sometime not follow my rules regarding the <...> - Tags, which would create issues parsing the answers.
    I think you can enforce some JSON-format instead or ideally just use GPT4 / GPT4o

    Also I haven't run this in a few months and it took a little effort to get back into what I was thinking with this whole thing. Pretty sure I explained it correctly though :)
I haven't quite gotten it absolutely right with ChatGPT and writing articles that is evidently human-like. May have to give this a try, as I've always replied on writers rewriting my AI content.
 
All right, this will be a longer post so stay with me.

I oftentimes see people complain about AI-generated articles, but when you ask what they are doing and how they are prompting it's ususally something bland like this
Code:
Hey there ChatGPT! You are a professional writer and know your stuff about fashion. Write a compelling 500 word article about new trends for womens summer fashion.
And while GPT4o is arguably better with these instructions than GPT3.5, if you create a few articles like this, they probaly won't match your expectations

In order to combat this, I put some effort into building a pipeline of prompts, that would allow me to automate creating articles with some Python (or JavaScript)
The prompts are (as you may have guessed from my example above) focused on creating articles in the fashion niche, but with a little work from your side I'm sure you can adapt them for a wide variety of niches.

Here are the prompts with some explanation of what we are doing below (at this point we only need the final title of the artice and a more niche category than just "fashion" maybe you already have a list of article-names that ChatGPT generated for you and can use one of them), here we will use "New Trends for womens summer fashion" in the category "Womens fashion"

  1. Creating an article outline in sections
    Code:
    ChatGPT, I need your expertise in generating a compelling, detailed article outline for a piece intended for our fashion-centric website. While the specifics of the article's theme will vary, our focus is always on creating engaging and informative content that delves into various aspects of fashion.
    
    I'm looking for an outline that includes a mix of longer, in-depth sections and shorter, punchy ones to keep our readers actively engaged. The flow should be natural and the structure should allow for a variety of content formats, including but not limited to, narratives, interviews, case studies, and trend analyses (add the used content formats after the section)
    
    Please ensure the language used throughout the outline remains simple yet diverse, using an approachable tone that our fashion-interested audience can resonate with. While the use of bullet points and lists can be very effective in communicating information, they should be used sparingly to maintain a conversational and story-driven format. For every point in the outline specify more details on this sections writing-style and focus on how it will later be written, as this will be part of the prompt to write it late. By making specific requests for the subsections I hope to make the prompt to actually write the subsection more generic.
    
    Within the outline enclose the separate parts in XML like tags to denote what each part is, use ONLY the tags <TITLE></TITLE>, <SECTION></SECTION>, <FORMAT></FORMAT> and <DESCRIPTION></DESCRIPTION> and don't number the sections.
    The output should have the form
    <TITLE>title here</TITLE>
    <SECTION>section 1</SECTION>
    <FORMAT>content format for section 1</FORMAT>
    <DESCRIPTION>description for section 1</DESCRIPTION>
    <SECTION>section 2</SECTION>
    <FORMAT>content format for section 2</FORMAT>
    <DESCRIPTION>description for section 2</DESCRIPTION>
    ...
    <SECTION>section n</SECTION>
    <FORMAT>content format for section n</FORMAT>
    <DESCRIPTION>description for section n</DESCRIPTION>
    
    In summary, please create an article outline that:
    
    1. Encompasses various aspects of fashion,
    2. Balances longer and shorter sections for varied reader engagement,
    3. Uses simple but diverse language,
    4. Incorporates a limited use of bullet points and lists to maintain narrative flow.
    5. With every section add more specific, detailed, prompt-like details on how the article should be written
    6. Adheres to the <TITLE></TITLE>, <SECTION></SECTION>, <FORMAT></FORMAT> and <DESCRIPTION></DESCRIPTION> format explained above
    
    The title of the article is <TITLE_OF_THE_ARTICLE> (this is the only thing that can be inclosed in the <TITLE></TITLE> tags) and it's in the category <ARTICLE_CATEGORY> (do not embed the category anywhere though)
    In the above prompt, we want to replace <TITLE_OF_THE_ARTICLE> with "New Trends for womens summer fashion" and <ARTICLE_CATEGORY> with "Womens fashion" and let ChatGPT do it's thing. Afterwards we need to parse the text (or copy paste if you're doing it by hand) into section-blocks. Every section-block should roughly look like below (taken from actually running the prompt with our title)

    Code:
    <SECTION>Trend Spotlight: The Rise of Sustainable Fabrics</SECTION>
    <FORMAT>Trend Analysis</FORMAT>
    <DESCRIPTION>This section will delve into the growing popularity of sustainable fabrics in summer fashion. It will highlight specific materials such as organic cotton, linen, and recycled blends, discussing their environmental benefits and aesthetic appeal. The tone should be informative yet accessible, using examples and quotes from industry experts to support the analysis.</DESCRIPTION>
    Code:
    <SECTION>Interview: Insights from a Leading Fashion Designer</SECTION>
    <FORMAT>Interview</FORMAT>
    <DESCRIPTION>In this section, readers will gain insights from an exclusive interview with a renowned fashion designer. The interview will cover the designer's inspiration for their summer collection, thoughts on emerging trends, and tips for staying stylish in the heat. The format will be a Q&A, maintaining a conversational tone that allows the designer's personality to shine through.</DESCRIPTION>
    Now we have a bunch of sections and can continue with the 2nd prompt

  2. Getting a specific prompt for each single section
    Code:
    I want to use you for creating long form articles on a fashion website. Act as a professional author, fashion enthusiast and prompt designer. Given a title of an article and an extensive detailed outline of sections I want to use AI to write the article 1 section at a time while keeping an overall good flow between the sections and within he article. My aim is to create engaging, human like content with simple but varied language. For every section provided, build on the given description and design a great, thorough and extensive GPT-prompt for writing that section given my previous requirements. All sections together should later form an amazing article based on the overall outline while keeping in mind that this will only be part of a bigger article, so it's important the resulting article won't repeat itself. Enclose the sections and prompts in the XML like <SECTION></SECTION> and <PROMPT></PROMPT>. Do not use any other tags or annotations.
    
    So in short, write a prompt per section that will allow me to generate that section.
    
    Title:
    <TITLE_OF_THE_ARTICLE>
    
    Category:
    <ARTICLE_CATEGORY>
    
    Outline:
    <OUTLINE_OF_THE_ARTICLE>
    This is a simple one. In order to have more dynamic content, we use ChatGPT to write (at least part of) it's own prompts. We again put in the the title and category, and then for <OUTLINE_OF_THE_ARTICLE> we use all the sections we generated above (each section with all tags: <SECTION>,<FORMAT> and <DESCRIPTON>

    Using this approach with out 2 sections from above yields the following result

    Code:
    <SECTION>Trend Spotlight: The Rise of Sustainable Fabrics</SECTION>
    <PROMPT>In this section, explore the growing popularity of sustainable fabrics in summer fashion. Discuss specific materials such as organic cotton, linen, and recycled blends, highlighting their environmental benefits and aesthetic appeal. Use an informative yet accessible tone, incorporating examples and quotes from industry experts to support your analysis. Explain why these fabrics are becoming a trend and how they fit into the broader context of eco-friendly fashion.</PROMPT>
    
    <SECTION>Interview: Insights from a Leading Fashion Designer</SECTION>
    <PROMPT>Craft an engaging interview with a renowned fashion designer about their insights on summer fashion trends. Structure the interview as a Q&A, maintaining a conversational tone that allows the designer's personality to shine through. Ask about their inspiration for the summer collection, thoughts on emerging trends, and tips for staying stylish in the heat. Ensure the questions are insightful and the answers provide valuable insights for readers.</PROMPT>

  3. Generating the text for the first section
    Code:
    I want to use you for creating long form articles on a fashion website. Act as a professional author, fashion enthusiast and prompt designer. Overall I want you to write a great and engaging article that reads like a human wrote it. Share your expertise and passion with the reader in a simple but varied language without repeating yourself within the article. Make sure the reading level is 5th grade. All sections together should later form an amazing article based on the overall outline while keeping in mind that this will only be part of a bigger article. Try to use a more natural flow within the section instead of starting every new thought with words like "Moreover", "Finally", "However", "Firstly", "Furthermore", "Lastly" and the like. Write in an engaging and human like way, using varied language and a 5th grade reading level without writing too playful, exuberant and whimsical and without inventing words and expressions.
    
    Title:
    <TITLE_OF_THE_ARTICLE>
    
    Category:
    <ARTICLE_CATEGORY>
    
    Outline:
    <SECTIONS_WITH_FORMAT>
    
    In the next few messages I will ask you to write the whole article section by section, so keep context in mind
    
    For now, write the section
    "1. <TITLE_OF_THE_SECTION> (<SECTION_FORMAT>)"
    
    Based on the requirements I gave you before and the following prompt:
    "<SECTION_PROMPT>"
    Our third promt is a bit special. This is specifically meant to kick of the article generation and therefor explicitly takes the first section and the matching section prompt into account. We once again put in the title and the category discussed in the beginning. Afterwards, according to our output from 1. and 2., we will replace <SECTIONS_WITH_FORMAT> with all section-titles and their format, in our example:
    Code:
    <SECTION>Trend Spotlight: The Rise of Sustainable Fabrics</SECTION>
    <FORMAT>Trend Analysis</FORMAT>
    <SECTION>Interview: Insights from a Leading Fashion Designer</SECTION>
    <FORMAT>Interview</FORMAT>
    And then we replace <TITLE_OF_THE_SECTION> with the first sections title: "Trend Spotlight: The Rise of Sustainable Fabrics" and <SECTION_FORMAT> with "Trend Analysis",
    Since we are now asking to write the section, also make sure to put in the matching prompt we generated in 2:
    Code:
    In this section, explore the growing popularity of sustainable fabrics in summer fashion. Discuss specific materials such as organic cotton, linen, and recycled blends, highlighting their environmental benefits and aesthetic appeal. Use an informative yet accessible tone, incorporating examples and quotes from industry experts to support your analysis. Explain why these fabrics are becoming a trend and how they fit into the broader context of eco-friendly fashion.
    With our Trend spotlight, we get the following result:
    Code:
    Trend Spotlight: The Rise of Sustainable Fabrics
    Sustainable fabrics are making waves in summer fashion, and it's easy to see why. People are more conscious about the environment, and this awareness is changing the way we think about clothes. Organic cotton, linen, and recycled blends are at the forefront of this trend.
    
    Organic cotton is grown without harmful chemicals, making it better for the planet and for the people who grow it. It's soft, breathable, and perfect for hot summer days. Imagine wearing a light, airy dress made from organic cotton – it feels good and looks great too.
    
    Linen, another popular choice, comes from the flax plant. It uses less water and fewer pesticides than other crops. Linen clothes are cool and comfortable, perfect for staying stylish in the heat. They also have a timeless, natural look that fits with many summer styles.
    
    Recycled fabrics are gaining traction as well. These materials give new life to old clothes and plastic bottles, turning them into fresh, fashionable pieces. Not only do recycled fabrics reduce waste, but they also help save resources. You might find a trendy summer top made from recycled polyester that looks chic and helps the planet.
    
    Fashion experts are excited about these materials. Designer Jane Smith says, "Sustainable fabrics are the future of fashion. They offer great quality and are kinder to the earth." These fabrics show that we can look good and do good at the same time.
    
    As people look for ways to reduce their environmental impact, sustainable fabrics are becoming more popular. They fit perfectly into the broader trend of eco-friendly fashion. This trend is all about making choices that are better for our planet without sacrificing style.
    
    Incorporating sustainable fabrics into your wardrobe is a step towards a greener future. It's a trend that feels as good as it looks, and it's here to stay.

  4. Generating each consecutive section
    Code:
    Write the below section (as part of an article in the <ARTICLE_CATEGORY> category of my website) while keeping the flow from previous sections and try to use a more natural flow within the section instead of starting every new thought with words like "Moreover", "Finally", "However", "Firstly", "Furthermore", "Lastly" and the like. Write in an engaging and human like way, using varied language and a 5th grade reading level without writing too playful, exuberant and whimsical and without inventing words and expressions.
    
    "<SECTION_ID>. <TITLE_OF_THE_SECTION> (<SECTION_FORMAT>)"
    
    Based on the requirements I gave you before and the following prompt:
    "<SECTION_PROMPT>"
    This prompt repeats some elements from 3. but is basically meant to write every section AFTER the first one. So repeat it for all the sections you generated in 1.
    Again we replace the category and put in the new <SECTION_ID> (just a counter, in the prompt from 3. it was hard-coded to "1." because we wrote the first section, now dynamically add it depending on how far along we are).
    Now we have to replace the section title and format with our previous results and the prompt we generated and let this run. Here's the result for our 2nd section:

    Code:
    Interview: Insights from a Leading Fashion Designer
    We had the pleasure of chatting with Olivia Rivera, a celebrated fashion designer known for her vibrant and innovative summer collections. Olivia shared her thoughts on the latest summer trends and gave us some fantastic tips for staying stylish during the hottest months.
    
    Q: What inspired your summer collection this year?
    
    Olivia: This summer, my inspiration came from tropical destinations. I wanted to capture the essence of a beach vacation, with lots of bright colors, breezy fabrics, and playful patterns. The goal was to create pieces that make you feel like you’re on holiday, even if you’re just in your backyard.
    
    Q: Can you tell us about some emerging trends you’re excited about?
    
    Olivia: I'm really excited about the return of bold prints. We’re seeing a lot of florals, tropical motifs, and even some retro-inspired patterns. These prints are perfect for summer because they’re fun and lively. Another trend I love is the use of lightweight layering. Even though it’s hot, you can still layer with sheer fabrics and light cardigans to add dimension to your outfits.
    
    Q: Do you have any tips for staying stylish in the summer heat?
    
    Olivia: Definitely! It's all about choosing the right fabrics. Look for materials that are breathable and lightweight, like cotton, linen, and chiffon. These fabrics help keep you cool and comfortable. Also, don’t underestimate the power of a good hat and sunglasses. They not only protect you from the sun but also add a chic touch to any look.
    
    Q: How do you think fashion is evolving this summer?
    
    Olivia: Fashion is becoming more inclusive and diverse. There’s a growing acceptance of different body types and personal styles, which is fantastic. People are more willing to experiment and express themselves in unique ways. This summer, it's all about being bold and confident in whatever you choose to wear.
    
    Q: What advice would you give to someone looking to update their summer wardrobe?
    
    Olivia: Start with a few statement pieces that you love. Maybe it's a brightly colored dress, a patterned top, or a pair of fun sandals. Build around these pieces with versatile basics. Don’t be afraid to mix and match different prints and colors. And most importantly, wear what makes you feel good. Confidence is the key to any great outfit.
    
    Talking with Olivia was a delight. Her enthusiasm for fashion is contagious, and her insights are sure to inspire anyone looking to refresh their summer style.

  5. Optional polishing
    Code:
    I want you to rewrite an article I will provide further down. Follow instructions 1 to 11 when doing so.
    
    1. Act as a professional author and fashion enthusiast
    2. The new article should be on a 5th grade reading level, use natural language, use varied language
    3. Write in an engaging and human like way, make the finished article a great one
    4. Do not write too playful, exuberant and whimsical. Do not invent words and expressions. Avoid repeating yourself
    5. Try to avoid starting new thoughts with fluffy transition words or phrases like "Moreover", "Finally", "However", "Firstly", "Furthermore", "Lastly", "In conclusion" and the like
    6. Each of the <SECTION></SECTION> tags defines a section. Polish up each section for a better flow and improve the readability and flow within a section
    7. If there is a list somewhere, make sure to keep a list. But repair every list by fixing the numbering, merging similar points and deleting missing points
    8. Create a great and natural flow between the different sections. Make the finished article consisting of the sections feel more like one person wrote it and avoid repetition of thoughts throughout the article
    9. Make sure to use simple language on a 5th grade reading level
    10. Expand some sections to have more variance in length. The finished article should be anywhere from 800 - 2200 words, try not to shorten the original
    11. DO NOT CHANGE ANYTHING WITHING THE <TITLE></TITLE> tags. You CAN ONLY rewrite the sections enclosed within <SECTION></SECTION> according to the instructions in this list
    
    Here's the article:
    
    <COMPLETE_ARTICLE>

    After we run this prompt for every single section, we can just merge the sections and have a finished article. BUT the above is an optional prompt which I really like using.
    Because we create the sections somewhat independently (at least I did when using the API), they sometimes clash a little bit, so we provide the resulting sections in order as <COMPLETE_ARTICLE> and do one last run. Your mileage my vary on this one, but give it a try ;)

  6. Final thoughts
    The above is not perfect, but it will give some of you an insight into what's possible with creating AI articles. Automate this process through the ChatGPT API and you could have articles for years.
    If there are a lot of sections, sometimes ChatGPT's context window is too small (with each prompt I usually pass the previous AI-generated answers back to ChatGPT in the messages and omit the prompts we send) and we may have to drop some responses from the beginning.
    This may lead to ChatGPT repeating ideas which we can improve a little with prompt 5 but can't completely avoid.

    Keep in mind thought, that the longer prompts and multiple API calls can make this a little more costly than a simple 1-line prompt. Also I had trouble making GPT-3.5 follow all the orders and it would sometime not follow my rules regarding the <...> - Tags, which would create issues parsing the answers.
    I think you can enforce some JSON-format instead or ideally just use GPT4 / GPT4o

    Also I haven't run this in a few months and it took a little effort to get back into what I was thinking with this whole thing. Pretty sure I explained it correctly though :)
Really nice prompt.

Have you looked at using agents to automate this further?
 
Appreciate the input! Yes I used to automate this with python but tbh once I have time might write it in JS and share the code and how to set it up here
That would be awesome. We hope you do! Thanks for this guide.
 
Back
Top