Guide: How to write better 'Rewrite' Prompts (Functional GPT Prompting)

bitvalentine

Jr. VIP
Jr. VIP
Dec 26, 2020
132
65
I've noticed many people write a rewrite prompts like below
Rewrite this article to make it sound better: [Article Text]
The problem with this is that it's too vague, and it's a headache if you run into artifacts or hallucinations.

Stop using Rewrite... why?

As a developer, we use functions to set parameters to call upon, and I used this logic with ChatGPT.

We can create functions with a name, so we can call back at any time.

Here is an example.
[[FUNCTION_NAME]]
Whatever you want to set with GPT

Getting started to rewrite an article or text

First we need to set a goal for GPT.
The goal of this news article is to make it easy to read for the user.

Supplying the original content as a function, so we can call back to the article/text at any time.
[[ORIGINAL]]
...This would be the text from the original document or article you want to rewrite...
Or If you have GPT Premium
[[ORIGINAL]]
I want you to grab the news article from https://somewebsite/article

Establishing clear rules can help prevent confusion and repeated requests. These rules are particularly important if the AI is not following instructions correctly or experiencing hallucinations.

Here is my example
[[RULES]]
1. It's important to ignore parts in [[ORIGINAL]] that mentions 'Posted by xxx' with the date and time.
2. It's important that you ignore the sentence 'This post is 100% True!' in the article and anything after it in [[ORIGINAL]]
3. It's Important to ignore a Posted by, date and time in the [[ORIGINAL]] article.
4. Do Not include any [[SUMMARY]], [[HEADER]], [[REWRITTEN]] tags in the layout
5. Never include any broken image links.

I want to include internal and external links to the GPT rewrite, so I've set up a Links function.
[[LINKS]]
1. Include any links in the original document and add them to [[REWRITTEN]] in a natural way.
2. Any links must be converted with a nofollow tag
3. Include a link to 'https://yourdomain' once inside [[REWRITTEN]] when the text mentions about domain investment or domains.

Next I set the rewritten text
[[REWRITTEN]]
Please follow the rules set in [[RULES]] & [[LINKS]]. I want you to Illuminate the [[ORIGINAL]] text.
You noticed that I didn't use rewrite.... I've used Illuminate instead.

What is Illuminate?
Use this prompt to request a rewrite that is more insightful and easy to understand.

Example:
User: Illuminate this sentence: “Quantum mechanics studies the behavior of subatomic particles.”
GPT: “Quantum mechanics delves into the fascinating realm of subatomic particles, examining how they interact and behave on an incredibly minuscule scale.”

It's much better than using Rewrite.

I want a summary of the original content to make it easier to read for my users.
[[SUMMARY]]
1. Please follow the rules set in [[RULES]].
2. Summarize [[ORIGINAL]] with 2 to 3 bullet points that are 1 sentence long per bullet points
3. Do not show a title for the summary. Make sure the bullet points have a li tag in each bullet.

What is Summarize?
Use this prompt when you need a concise overview of a lengthy topic to save time.

Example:
User: Summarize the findings of this study on climate change impacts on agriculture.
GPT: “The study reveals that climate change is increasingly affecting agriculture, with potential reductions in crop yields and disruptions to food supply chains.”

The Headers
[[HEADER1]]
Please follow the rules set in [[RULES]].
Exaggerate this text for an h1 tag that is good for seo and make it less than 8 words from [[ORIGINAL]]

[[HEADER2]]
Please follow the rules set in [[RULES]].
I want you to Illuminate the [[ORIGINAL]] text with an Exaggerated h2 tagged title.

What is Exaggerate?
This prompt asks you to amplify the aspects of the rewrite, making it more dramatic and exciting. Perfect for grabbing attention in marketing materials!

Example:
User: Exaggerate this product description: “Our new sneakers are comfortable, lightweight, and stylish.”
GPT: “Introducing the game-changing, ultra-comfortable, feather-light, and jaw-dropping stylish sneakers that’ll revolutionize your walk!”

Now the functions have been set, we can now generate the layout for your page.
I want you to respond in html with this layout
[[HEADER1]]
[[SUMMARY]]
[[HEADER2]]
[[REWRITTEN]]

The method simplifies debugging and rewriting content, making it appear natural and not bot-like.

Remember, with the examples above. These are all included in 1 prompt that is sent to GPT.

Please click like as I'll create more guides if people like the content.
 
Last edited:
Here is my real world GPT Prompt that I use to rewrite news content from a news source.

The goal of this news article is to make it easy to read for the user.

[[ORIGINAL]]
... the content source ...

[[RULES]]
1. It's important to ignore parts in [[ORIGINAL]] that mentions 'Posted by xxx' with the date and time.
2. It's important that you ignore the sentence 'This post is 100% True!' in the article and anything after it in [[ORIGINAL]]
3. It's Important to ignore a Posted by, date and time in the [[ORIGINAL]] article.
4. Do Not include any [[SUMMARY]], [[HEADER]], [[REWRITTEN]] tags in the layout
5. Never include any broken image links.

[[LINKS]]
1. Include any links in the original document and add them to [[REWRITTEN]] in a natural way.
2. Any links must be converted with a nofollow tag3. Include a link to 'https://website' once inside [[REWRITTEN]] when the text mentions about domain investment or domains.

[[SUMMARY]]
1. Please follow the rules set in [[RULES]].
2. Summarize [[ORIGINAL]] with 2 to 3 bullet points that are 1 sentence long per bullet points
3. Do not show a title for the summary. Make sure the bullet points have a li tag in each bullet.

[[HEADER]]
Please follow the rules set in [[RULES]].
I want you to Illuminate the [[ORIGINAL]] text with an Exaggerated h2 tagged title.

[[REWRITTEN]]
Please follow the rules set in [[RULES]] & [[LINKS]].
I want you to Illuminate the [[ORIGINAL]] text.

I want you to respond in html with this layout
[[SUMMARY]]
[[HEADER]]
[[REWRITTEN]]
 
This seems Good. I will add this to my own prompt that I am using for articles.
 
If anyone has any suggestions to add to the prompt to make it even better. Please elaborate!
 
Good share and easy to understand for newbies. Not everyone knows how to craft pinpoint prompts so such shares are a goldmine.

One more small point from me: If you want to restructure the text, chain your outputs by their features. Like, generate a table of contents (or any other feature you want) and post-process them with original text to craft the final result.
 
Good share and easy to understand for newbies. Not everyone knows how to craft pinpoint prompts so such shares are a goldmine.

One more small point from me: If you want to restructure the text, chain your outputs by their features. Like, generate a table of contents (or any other feature you want) and post-process them with original text to craft the final result.
Yup, good point. Just add another function to do a table.
 
I like running one prompt to create deep research first, then another to rewrite, clean up and add structure. Maybe you can add that to your system to check the results.
can you give as an example please? I woul like to learn more :) Thank you very much
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock