Classify SEO Keywords using GPT-3 & R'
Last updated
Last updated
Thanks to OpenAI it's now possible to use artificial intelligence to help your SEO ✨
They have made available an API called GPT-3 that allows us to get a reply from their Generative Pre-trained Transformer (whatever it means)
It's possible to ask silly questions in GPT-3 playground but it's also possible to use the API for SEO work.
For this example, let's imagine we have a recipe website classicly structured by starters, main courses and desserts. For users and SEO purposes we want to also classify each dish per country of origin. The goal is to build landing pages like "Top traditional german recipes", etc
We will ask GPT3 to go through our full catalogue of recipes
Grab your API key from here: https://beta.openai.com/account/api-keys
and your organisation key from https://beta.openai.com/account/org-settings
and replace the value in the code below:
I've made a small function to make it easier but to explain simply:
We provide a prompt and some examples and ask the AI to complete the text
The temperature
, it's a number between 0 and 2 and some say it's the randomness. It may require a bit of tweaking, that's why I left it as a function parameter.
And after that you just need to run it.
Now that you have this example, it's up to you to update the prompt and the examples to fit your use case. Good luck!