[METHOD] Make Your Own PAA Site With OpenAI - Complete Tutorial + FREE Python Script

where to use the prompt?

mport openai
import pandas as pd

df = pd.read_csv("input.csv")

# Set OpenAI API key
openai.api_key = "YOUR_API_KEY"

results = []

for index, row in df.iterrows():

prompt = f"Please write a detailed article about {row['topic']}. Use this information to write the article: {row['context']}"
response = openai.Completion.create(engine="text-davinci-003", prompt=prompt, temperature=0.7,max_tokens=2048,top_p=0.5)
results.append([row['topic'], response.choices[0].text])

output_df = pd.DataFrame(results, columns = ['Topic', 'Generated Text'])

output_df.to_csv('output.csv', index=False)

where to use this prompt? i am beginnner in coding so dont know to us e it..

The text between the quotes (“) is the prompt. You can change that to whatever you like.
 
Thanks a million for this! I managed to get it work, now I need to tweek the prompt. Any resource where I can learn how to upgrade it?
 
Thanks a million for this! I managed to get it work, now I need to tweek the prompt. Any resource where I can learn how to upgrade it?

You can look into prompt engineering. There are several resources on improving your prompts. The default prompt in the script won't generate great content.
 
i have tried my site jump from zero to 1.8k organic traffic but within week get down again AI Content is not working google can detect quick. I have created low volume and zero competitive keywords but google not going to index so it is useless.
 
i have tried my site jump from zero to 1.8k organic traffic but within week get down again AI Content is not working google can detect quick. I have created low volume and zero competitive keywords but google not going to index so it is useless.
I had same experience with it, AI content is hard for a new site ranking, Google still alow the old site with AI content ranking, but not new site any more
 
i have tried my site jump from zero to 1.8k organic traffic but within week get down again AI Content is not working google can detect quick. I have created low volume and zero competitive keywords but google not going to index so it is useless.

If you believe that AI content was the issue, you can always rewrite the content that was ranking and get your traffic back.
 
my domain is 15 years old domain but there was not any content on that domain.
 
my domain is 15 years old domain but there was not any content on that domain.

Im not sure I understand. You said that you had 1.8k visitors and then lost the traffic. How did you get the traffic without any content?
 
i have tried my site jump from zero to 1.8k organic traffic but within week get down again AI Content is not working google can detect quick. I have created low volume and zero competitive keywords but google not going to index so it is useless.

Don‘t upload the AI posts in bulk if you’ve a new site. Start with a low amount like 5 posts per day before uploading more per day. Always proof read the content before publishing it.
 
Im not sure I understand. You said that you had 1.8k visitors and then lost the traffic. How did you get the traffic without any content?
bulk uploading content 1000 posts at once and the organic traffic started and after week it get disappear.
 
bulk uploading content 1000 posts at once and the organic traffic started and after week it get disappear.

Well, you shouldn't have published 1000 posts at once. I'm pretty sure that the same thing would have happened to you if you had done this with non AI content. It's really unrealistic and unnatural for a 15 year old domain with no content to suddenly have 1000 posts published.
 
where to use the prompt?

mport openai
import pandas as pd

df = pd.read_csv("input.csv")

# Set OpenAI API key
openai.api_key = "YOUR_API_KEY"

results = []

for index, row in df.iterrows():

prompt = f"Please write a detailed article about {row['topic']}. Use this information to write the article: {row['context']}"
response = openai.Completion.create(engine="text-davinci-003", prompt=prompt, temperature=0.7,max_tokens=2048,top_p=0.5)
results.append([row['topic'], response.choices[0].text])

output_df = pd.DataFrame(results, columns = ['Topic', 'Generated Text'])

output_df.to_csv('output.csv', index=False)

where to use this prompt? i am beginnner in coding so dont know to us e it..
thank you for your reply
yes i am talking about the prompt as i donot know what to edit if you can highlight it i will be glad

prompt = f"Please write a detailed article about {row['topic']}. Use this information to write the article: {row['context']}"

is this what we are supposed to edit?.
If yes are we editing just Please write a detailed article about & Use this information to write the article

one more question are we paying for the api?. and also how do we get the api key?. and i have a shopify store can i guess i cant use the all wp import

thanks
here you go
 
where to use the prompt?

mport openai
import pandas as pd

df = pd.read_csv("input.csv")

# Set OpenAI API key
openai.api_key = "YOUR_API_KEY"

results = []

for index, row in df.iterrows():

prompt = f"Please write a detailed article about {row['topic']}. Use this information to write the article: {row['context']}"
response = openai.Completion.create(engine="text-davinci-003", prompt=prompt, temperature=0.7,max_tokens=2048,top_p=0.5)
results.append([row['topic'], response.choices[0].text])

output_df = pd.DataFrame(results, columns = ['Topic', 'Generated Text'])

output_df.to_csv('output.csv', index=False)

where to use this prompt? i am beginnner in coding so dont know to us e it..
You have to use Python. Assuming you did the clean-up and save as input.csv You would go cmd and open the file with python which will output an output.csv file. You have to do install pandan and openai using pip if these packages are not already installed. Also, be sure you use the same use the same case for topic and context in the prompt
 
Don‘t upload the AI posts in bulk if you’ve a new site. Start with a low amount like 5 posts per day before uploading more per day. Always proof read the content before publishing it.
What I would do is to import them as drafts, and go through them and publish
 
Is this like using chatgtp from browser? How many 500word articles per day can AI write for free??
 
Back
Top