How to leverage the GPT API to create bulk titles and article outlines using Google Sheets

tattooedbuddha

Senior Member
Joined
Jul 19, 2020
Messages
860
Reaction score
5,742
Hi, in this guide I will be showing you how you can leverage the power of GPT-3.5-Turbo to create article titles and outlines based on a list of keywords.

What you will need for this to work:
  • A list of keywords you want to target
  • The “GPT for sheets” plugin for google sheets
  • A valid OpenAI API key (Get yours here)
  • A cup of coffee or two to keep you focused (optional)
Let’s waste no more time and get right into it.

Installing GPT for sheets

Go to here and install the add-on.

There, wasn’t that hard now, was it?

Adjusting the settings of GPT for sheets

  • Open a new spreadsheet
  • Click on add-ons
  • Hover over “GPT for Sheets and Docs”
  • Click on “Set API Key”
  • Input your api key and click on “Check” then “Save API Key”
Now you’ve set your API key for the add-on.

Now onto the fun part.

1. Copy the prompt below and paste it into Cell A1

Code:
Task: Generate an article title of maximum 60 characters with the keyword in the beginning

2. Paste your list of keywords that you want to target in the cells below, like so:
guide-2.png

3. Copy the formula below and paste it into Cell B2

Code:
=gpt($A$1;A2;0,3;1000;"gpt-3.5-turbo")

It should look like this:
guide-3.png

4. Drag the bottom right corner of the B2 Cell down to cover the amount of keywords you have

It should look like this:
guide-4.png

Release your mouse button and it should copy the formula dynamically to the cells below

It should look something like this:

guide-5.png

Now you have your titles, so how do we create our article outlines from these? Easy. Just follow the same steps but change the prompt to:

Code:
Task: Generate an article outline with h1-h3 titles based on the title

And change the formula to:

Code:
=gpt($A$18;A2;0,3;1000;"gpt-3.5-turbo")

And it should look something like this:

guide-6.png

So there you have it, leveraging the GPT API to create bulk article titles and outlines in google sheets.

Known issues:

  • Sometimes you will receive the following error: “Error: you have reached your requests per minute rate limit. Please wait one minute then retry. Set up a payment method on OpenAI dashboard in order to increase your rate limit: https://platform.openai.com/account/billing/overview It will be increased to 3500 requests per minute after 48 hours.”

Solution: Either set up a payment method and increase your rate limit or update the cell after a little while and it will work.

  • The prompts give bad results
Solution: Experiment with different prompts to achieve the result you want. The provided prompts are merely examples of what you can use.

  • If you leave the sheet and come back after a couple of hours the titles and outlines will change because the GPT API will run once more.
Solution: Select the titles and outlines you want to keep the same then go to the GPT for sheets addon and click "Replace GPT formulas with values in selection"
OR: if you want to keep ALL the titles and outlines, instead click on "Replace GPT formulas with values in entire sheet"

I hope you liked this little guide and found it useful.

Cheers!
 
Quick tip: Take it a step further and create a prompt that takes the outlines and writes an article based on it.

Now, as soon as you upload a list of keywords, you'll have articles finished for them within 5 minutes.

Of course, they are going to need editing.
 
Someone is making a really nice contribution to the forum, well done. Keep´em coming, love this.
Thank you! :)

Here is an example of an article generated if you take this method a step further:

Keyword: Best nail polish
Best Nail Polish Brands for a Long-Lasting Manicure

Introduction:

Nail polish is a popular cosmetic product used by people of all ages and genders. It is an easy and affordable way to add color and style to your nails. However, choosing the best nail polish can be a daunting task, as there are so many options available in the market. In this article, we will discuss the factors to consider when choosing the best nail polish, the top 5 best nail polishes, the best nail polish for different occasions, and how to apply nail polish like a pro.

Factors to Consider When Choosing the Best Nail Polish:

When choosing the best nail polish, it is essential to consider factors such as color, finish, formula, and brand. The color of the nail polish should complement your skin tone and outfit. The finish of the nail polish can be glossy, matte, or metallic. The formula of the nail polish should be long-lasting, chip-resistant, and easy to apply. The brand of the nail polish should be reputable and known for producing high-quality products. To choose the best nail polish, you can read reviews, try samples, and consult with a nail technician.

Top 5 Best Nail Polishes:

Based on the factors discussed in the previous section, the top 5 best nail polishes are:
  1. OPI Nail Lacquer
  2. Essie Nail Polish
  3. Zoya Nail Polish
  4. Sally Hansen Miracle Gel
  5. Butter London Nail Lacquer
OPI Nail Lacquer is known for its wide range of colors and long-lasting formula. Essie Nail Polish is known for its trendy colors and easy application. Zoya Nail Polish is known for its vegan and cruelty-free formula. Sally Hansen Miracle Gel is known for its gel-like finish and chip-resistant formula. Butter London Nail Lacquer is known for its high-quality ingredients and long-lasting formula. These nail polishes can be purchased at beauty supply stores, drugstores, and online retailers.

Best Nail Polish for Different Occasions:

The best nail polish for different occasions depends on the dress code, theme, and mood of the event. For weddings, neutral and pastel colors such as pink, beige, and lavender are appropriate. For parties, bold and glittery colors such as red, gold, and silver are appropriate. For work, subtle and professional colors such as nude, gray, and navy are appropriate. To choose the best nail polish for different occasions, you can consult with a fashion expert, browse fashion magazines, and observe fashion trends.

How to Apply Nail Polish Like a Pro:

To apply nail polish like a pro, you should follow these steps: clean your nails, file your nails, apply a base coat, apply two coats of nail polish, apply a top coat, and let your nails dry. To prevent smudging and chipping, you should avoid touching your nails, avoid using your nails as tools, and avoid exposing your nails to water or heat. To remove nail polish properly, you should use a nail polish remover that is gentle and effective.

Conclusion:

Choosing the best nail polish is important for achieving a stylish and professional look. By considering factors such as color, finish, formula, and brand, you can choose the best nail polish for your needs. The top 5 best nail polishes are OPI Nail Lacquer, Essie Nail Polish, Zoya Nail Polish, Sally Hansen Miracle Gel, and Butter London Nail Lacquer. The best nail polish for different occasions depends on the dress code, theme, and mood of the event. By applying nail polish like a pro, you can achieve a flawless and long-lasting manicure
 
Do i make something wrong or i need a subscription for the chatgpt api?
 
en creating an OpenAI account you receive 18 dollars worth of credits to use in the API & Playground.

At what step of the process are you experiencing difficulties?
By the way, seems like now they only give 5$ , i made a couple of accounts and i just received 5 bucks but now with chatgpt3.5 turbo price can make a bunch of content!
 
How did you write the prompt to write the article for the outline? Do you have to specify that it must write about just the subheadings or do you just task it to write an article based on the outline. I have found that chatgpt gets a bit confused when tasked to do an entire article, so I usually make it write a paragraph for each heading.
 
How did you write the prompt to write the article for the outline? Do you have to specify that it must write about just the subheadings or do you just task it to write an article based on the outline. I have found that chatgpt gets a bit confused when tasked to do an entire article, so I usually make it write a paragraph for each heading.
The prompt is
Code:
Task: based on the article outline, write an article with 2 paragraphs of text for each title

And yes, chatgpt does not always output its best content when making articles like this, usually you have to make it write each heading by its own. This can also be automated using this method, it just need more work to do.
Great share. Bookmarked
Cheers.
 
Now you have your titles, so how do we create our article outlines from these? Easy. Just follow the same steps but change the prompt to:

Task: Generate an article outline with h1-h3 titles based on the title
And change the formula to:

=gpt($A$18;A2;0,3;1000;"gpt-3.5-turbo")
I'm lost here. Where (which cells) do we paste the prompt & the code?
 
Back
Top