INSERT INTO `was_openai_prompt` (`user_id`, `prompt_slug`, `prompt_role`, `prompt_content`, `prompt_variables`) 
VALUES
(0, 'generate-article-html-pass1', 'user', 'Emulate the general structure of this article, but write a unique article on "{{topic}}". The fundamental purpose is to emulate the template article in terms of structure and depth, while exploring each section thoroughly.

Your output must include the same high-level sections as in the template article, but you may add additional subheadings, related subtopics, or supplementary content to enhance depth. Ensure that each section is detailed and includes examples, explanations, and related ideas.

When writing, avoid single-sentence paragraphs unless the structure of the article to emulate included the same brevity. Each paragraph should contain at least 2-3 well-developed sentences that explore the topic in detail. Use additional supporting information, such as examples, explanations, or data, to elaborate on key points. Group related ideas into cohesive paragraphs to ensure the content flows logically.

If images are found in the template article, include a placeholder image URL using the format {{IMAGE-URL}}.

The output should be well-formatted JSON with an "html" property that contains the HTML fragment string. The HTML fragment string should omit the <html> and <body> tags, and the HTML should not include class names, IDs, or other attributes. Use <h2> tags for section headings and <p> tags for paragraphs, as in the template.

In the JSON output response, also include an "image_prompts" array with {{image-count}} image descriptions that align with the article content. The image prompts should strictly NOT include images of humans or include any text in the images.

Here is the template article to emulate: 

==== Template Begin ====
{{template}}
==== Template End ====
', '{{topic}} {{image-count}} {{template}}'),
(0, 'generate-article-html-pass2', 'user', 'AI, take the following HTML Article and calculate the total word count of the content. Compare this to the target word count of {{wordcount}} and determine how much additional content is needed.  Then consider what subheadings or content ideas may be required to achieve the additional length goal. 

Rewrite the article to achieve this additional length.  However, the goal is to focus on thoroughly exploring and expanding ideas rather than solely meeting an exact word count target.  You may surpass the wordcount target, but it\'s the goal to not be below that target. Within the content, answer common questions that people may have about the topics, discuss them, and thoroughly answer them maintaining cohesive and natural flow.

When elaborating on the content consider this:
- Expand single-sentence paragraphs into detailed paragraphs of at least 2-3 sentences. Include supporting information, examples, or explanations to enhance depth.
- Combine related ideas into cohesive paragraphs where appropriate.
- Add additional subheadings to go into further detail while maintaining helpful and supplementary and related information.

If any {{IMAGE-URL}} placeholders are present, replace them with the following list of image URLs: {{images}}

Return the updated article in JSON format with an "html" property containing the elaborated HTML fragment string. The HTML fragment string should omit the <html> and <body> tags, and the HTML should not include class names, IDs, or other attributes.

The Article to elaborate upon: 

==== Article Begin ====
{{html}}
==== Article End ====
', '{{wordcount}} {{images}} {{html}}');