How to format content using h1, h2 etc. tags

aliweb

Newbie
Joined
Mar 25, 2012
Messages
38
Reaction score
3
I asked ChatGPT to write an article and it did so without any formatting i.e. Introduction and other headings are not formatted using h1, h2 etc tags.

1687453108431.png

Then I changed my prompt a little bit and this was the result. Now it is using tags but this is not how I wanted.

1687453154168.png

Following is how I want. This is generated using AIPRM. Notice how each heading is bold and properly formatted. How can I ask ChatGPT to write articles with formatting like this?

1687453219402.png
 
I suggest installing AIPRM for chatgpt

Anyone in content creation should have this chrome extension for Chatgpt, and you'll be blown away how it will enhance your chatgpt experience.

If you are not using AIPRM GPT, Use prompts like

I want you to write a blog post using markup for headers and other tags do not generate it in a code box style it in the chatbox

Dm me to learn more about prompt engineering for Articles

You should be using the playground and priming the model, you will get better results IMHO

1687469498054.png

Guidelines on How to Write (Public) Prompt Templates for AIPRM​

Written by: Corvox AI

Creating public Prompt Templates in AIPRM means exposing them to 100,000s of users. This is a guide on how to write them.

Goals for Public AIPRM Prompt Templates​

A public prompt template you provide to the Community MUST BE:

  1. Reusable – variable data entered by the user must be inserted into the Prompt using the [PROMPT] placeholder.
  2. Multi-lingual – ChatGPT must be instructed to produce output in the target language using the [TARGETLANGUAGE] placeholder.
  3. English described – Title, Teaser, Prompt Hint must all be in 100% correctly spelled, correctly capitalized English. The prompt itself could be coded in another language, but the description to the AIPRM user must be English.
Any other user in any other language should be able to use your prompt Template if you set it to public.

Problems encountered with early Public AIPRM Prompt Templates​

After a few days of the Community Mode Version of AIPRM being live, we found a lot of low-quality prompt templates released to the public.

We already got complaints and support requests for poorly designed Prompt Templates that needed to meet the quality criteria of the original AIPRM Prompts.

Examples of problems found in our reviews:

  • Not Reusable Prompt Templates
  • Not Multi-Lingual Prompt Templates
  • Prompts written for one specific language (“Write only in Italian”)
  • Prompts written for only 1 topic (“Write about GSCE exam”)
What we saw were normal prompts that were just copied over and saved as Prompt Templates, for 10000s of users.

That’s not it.

Prompt Templates are a lot more than one single prompt.

So how to do it right? How to change a trivial prompt that works for you to an AIPRM Prompt Template that works for 10000s of users?

Writing Reusable Prompt Templates​

A prompt restricted to a specific topic, even a particular keyword like “GCSE exams,” may make a lot of sense for you to keep, but 99% of the AIPRM users won’t need it.

Suppose you provide a template to the Community. In that case, you need to ensure that the relevant keywords, topics, and reference points are passed as “variables” into the Prompt Template for the placeholder [PROMPT] in the text.

Example phrases to use:

  • the keywords to use in the analysis are [PROMPT]
  • please use the keywords [PROMPT] and...

Writing Multi-Lingual Prompt Templates​

A prompt restricted to a specific language does not make sense for our international Community and therefore is not allowed as a public Prompt in AIPRM.

If you provide a template to the Community, then you need to make sure that the output language is controlled and used reliably by the ChatGPT model. In your Prompt Template, you need to use the placeholder [TARGETLANGUAGE] in the text.

Example phrases to use:

  • want you to act as a blog post title writer that speaks and writes fluent [TARGETLANGUAGE]
  • you will reply with blog post titles in [TARGETLANGUAGE]
  • write all output in [TARGETLANGUAGE]

Goals for all AIPRM Prompt Templates​

A prompt template should help you be faster in your work.

This is only possible if you spend the effort when creating it.

Sample prompts to use when making prompts for AIRMP
you are an article writer, write an article with heading and subheadings explain how to make chatgpt write with headings and subheadings using prompts, make sure to use markup formatting.

Specifically, the fields:

  • Title
  • Teaser
  • Prompt Hint
Are essential for you and others to find the prompt again next week and still understand what it does.

You need to ensure these are well-written,
clear, and descriptive. Here are some guidelines for each field:

Title​

The title should succinctly describe the purpose or topic of the Prompt Template. It should be specific enough to provide a clear idea of what the prompt is about. Avoid vague or generic titles that could be easily confused with other templates. Use proper capitalization and avoid spelling errors.

Example of a good title: "Generate Creative Blog Post Titles"

Teaser​

The teaser is a short description that provides additional context or a brief summary of what the prompt template is designed to accomplish. It should entice users to select the template and give them a clear idea of what they can expect from it. Keep it concise, engaging, and free from grammar or spelling mistakes.

Example of a good teaser: "Get inspired with catchy and attention-grabbing blog post titles for any topic. Boost your content marketing efforts with our AI-powered title generator."

Prompt Hint​

The prompt hint is a crucial part of the prompt template. It should clearly instruct the user on what input is expected from them and how they should interact with the AI model. Provide specific guidelines, instructions, or examples to help users understand what kind of information they should input. Make sure the prompt hint is written in proper English and is easy to understand.

Example of a good prompt hint: "Enter a keyword or topic related to your blog post, and our AI model will generate compelling titles for you. For best results, provide additional context or specify the desired tone (e.g., informative, humorous, persuasive)."

Additional Considerations​

  • Formatting: When creating prompt templates, ensure that the formatting is consistent and easy to read. Use appropriate line breaks, bullet points, or numbering to organize the information effectively.
  • Avoid personalization: Prompt templates should be general and applicable to a wide range of users. Avoid using personal pronouns or references that make the template specific to a particular individual or situation.
  • Provide examples: If appropriate, consider including example inputs or outputs to illustrate how the prompt template should be used and what kind of results can be expected.
  • Review and revise: Before making a prompt template public, proofread and review it for any errors, inconsistencies, or confusing instructions. Make sure the template meets all the requirements and guidelines mentioned above.
By following these guidelines, you can create high-quality, reusable, and multi-lingual prompt templates that are valuable to the AIPRM community. Remember to think from the perspective of a user who may not have prior knowledge of the specific topic or context. Your goal is to create templates that can be easily understood and utilized by a diverse user base.

Example for prompt for AIRPM

you are an article writer, write an article with heading and subheadings explain how to make chatgpt write with headings and subheadings using prompts, make sure to use markup formatting

1687470396327.png

Full Article it Produced.

How to Make ChatGPT Write with Headings and Subheadings Using Prompts​

Introduction​

ChatGPT, powered by OpenAI's advanced language model, is a powerful tool for generating human-like text. With the right approach, you can harness its capabilities to create content with well-structured headings and subheadings. In this article, we'll explore effective techniques to make ChatGPT produce text organized into clear sections. Let's dive in!

Understanding Prompts​

Before we delve into writing with headings and subheadings, let's recap the concept of prompts. Prompts serve as instructions or input provided to ChatGPT to generate desired text output. By crafting prompts strategically, we can guide the model to produce content in a structured format.

Formatting Headings​

Headings play a crucial role in organizing information and enhancing readability. Although ChatGPT doesn't inherently recognize headings, we can employ markup formatting to signal the desired structure. Here's how you can format headings using HTML tags:

Level 1 Heading​

To create a level 1 heading, use the <h1> tag. This represents the main heading of your content.

Level 2 Heading​

For subheadings within the main sections, employ the <h2> tag. It helps distinguish important subsections.

Level 3 Heading​

To further categorize content within subheadings, utilize the <h3> tag. This adds another level of hierarchy to your structure.

Indicating Subheadings within Prompts​

To instruct ChatGPT to generate text under specific headings and subheadings, we can embed them within the prompts. By utilizing placeholders, we can define where the headings and subheadings should appear. Here's an example:


[Prompt]
<h2>Section 1: Introduction</h2>
Please provide a brief overview of the topic.

<h3>Subsection 1.1: Importance</h3>
Explain why this topic is significant.

<h2>Section 2: Methods</h2>
Describe the methodology used for the research.

By including the HTML tags within the prompt, we guide ChatGPT to generate content under the corresponding headings and subheadings.

Fine-tuning Model Behavior​

To enhance the effectiveness of headings and subheadings, it's crucial to fine-tune the model's behavior. By giving explicit instructions, you can guide ChatGPT to adhere to specific formatting and provide detailed responses. For instance:

[Prompt]
<h2>Section 3: Results</h2>
Please outline the key findings of the research conducted.

<h3>Subsection 3.1: Statistical Analysis</h3>
Ensure statistical data is included to support the results.

<h3>Subsection 3.2: Graphical Representation</h3>
Generate visualizations to enhance the presentation of results.

By explicitly specifying the desired content and format within the prompts, you can shape ChatGPT's output to align with your requirements.

Testing and Iteration​

As with any AI-based system, testing and iteration are essential for achieving optimal results. Experiment with different prompts, headings, and subheadings to refine the output. Continuously evaluate the generated content to ensure it aligns with your intended structure and desired level of detail.

Conclusion​

Harnessing the power of ChatGPT to write with headings and subheadings can greatly enhance the organization and structure of your content. By leveraging markup formatting and providing clear instructions within prompts, you can guide the model to generate text that adheres to your desired hierarchy. Remember to iterate and refine your approach to achieve the best results. Happy writing!

Sorry not at home on my main rig with my AIRPM loaded up with my own public prompts to give better examples relying on my remote systems to generate content thats helpful for you on the go.
 
Last edited:
Sorry ran out of time again.

Here is a better example then I gave above. When crafting prompts for AIPRM

Prompt:
All Output must be in [TARGETLANGUAGE]. Give me 10 Guest Posting websites for the niche [PROMPT]. Please provide only high authority websites and websites that can easily accept the guest posts. Try to add website email if possible. Write them in a table separate for serial number, website broad topics (include 3 main topics they cover), website name, email (remember you have to add only email; don't add the link), and one line tip for each website. Just give me the table in your response. Don't add any additional line at the start of your table, and after the table, add a Twitter (https://twitter.com/rrehmanxd) and Buymeacoffee (https://www.buymeacoffee.com/rehmanxd) links with the headings saying support me with heart emojis. Don't add these two in a table.

As you can see this prompt engineer for AIRPM uses the tags correctly to build his prompt for public use.
 
A bit rude... If the goal was to upload to WordPress then WordPress has had markdown enabled for years, my bad if content isn't being used on WP - I was just trying to send a bit of guidance, apologies regardless...

I use markdown on all my work. :(
 
A bit rude... If the goal was to upload to WordPress then WordPress has had markdown enabled for years, my bad if content isn't being used on WP - I was just trying to send a bit of guidance...

I use markdown on all my work. :(
No What I am saying, did you read what he asked?

He is asking about crafting prompts for AIPRM... Or maybe I am wrong?

IF so then he confused me and you.

Either or, he should be crafting them for AIPRM if he has it installed, and gain exposure.
 
Following is how I want. This is generated using AIPRM. Notice how each heading is bold and properly formatted. How can I ask ChatGPT to write articles with formatting like this?

View attachment 264427
@Corvox yes... He would ask ChatGPT to enable markdown...

1687472609372.png

this can prompt tables, lists, everything you can do with markup...

Again, a bit rude - I might be wrong but there's no need for hostility...
 
@Corvox yes... He would ask ChatGPT to enable markdown...

View attachment 264500

this can prompt tables, lists, everything you can do with markup...

Again, a bit rude - I might be wrong but there's no need for hostility...
Again, just saying write in markup doesnt always work... Just saying. It will sometimes write in code blocks.

and thats the result of a prompt, where is the prompt? to show your work. Also are you saving it to file to use wordpress API, this is totally different then using the web UI

Using python and openAi api and wordpress API can return different results then the chat Web UI. In both cases its about how well the prompt is crafted, and how well you understand priming the model.

having a template where you can prime the model to ask you for more details is the best way to create content imho.

Anyone not paying for PLUS is using GPT wrong, Plugins and functions are the way to use it. and crafted prompts to take advantage of them, as functions and using langchain to link them together.

I have yet to see you craft a prompt for this guy to do what he asked. Other than show a saved file in markup from Openai Api to be used with wordpress api to auto generate a draft.

So calling what you have posted, Useless, is wrong? Because it will not produce what he wants 100% of the time?

Sorry I am a sigma, I don't beat around the bush and am brutally honest.

I dont look at AI the same as others, nor the world. Ai will lead to 60 to 80% unemployment rate around the world. And the down fall of lots of agencies.

agencies shouldn't be using these models to begin with, you are giving them your knowledge to train on.

Instead, people should be learning to build their own private models. Or go extinct. Or become a prompt engineer to help usher in high unemployment rates. By automating 60% of the work force. Like HR, And Phone reps. And allowing OpenAi to offer these services for business by the same business who hired you to use openai to automate jobs away, they will come for the prompt engineers last. After you trained OpenAi and other models with company data.

hence the real pause these companies want on open source AI

hence for my posting and passion, We need to develop our own LLM. Anyone with any business on BHW should really consider bringing LLM in-house and now.
 
Last edited:
Thanks I got it. So they key here is "markdown". And yes I want to copy/paste into Wordpress. Even the HTML tags work because you know in WordPress you can enable "code editor" and copy/paste that content which contain HTML tags but I was looking for a way to copy/paste in "visual editor".
 
Back
Top