WIP - Use Google Bard, Improving chatgpt3.5
This commit is contained in:
@@ -21,19 +21,23 @@ def write_blog_google_serp(search_keyword, search_results):
|
||||
"""Combine the given online research and gpt blog content"""
|
||||
gpt_providers = os.environ["GPT_PROVIDER"]
|
||||
prompt = f"""
|
||||
As a SEO expert and content writer, I will provide you with my web research keyword and its google search result in json format.
|
||||
Your task is to write a SEO optimized, unique blog and 5 FAQs.
|
||||
As a SEO expert and content writer, I will provide you with my 'web research keywords' and its 'google search result'.
|
||||
Your task is to write an original, conversational, SEO optimized blog and also 5 FAQs.
|
||||
|
||||
1). Your blog content should compete against all, in the provided search results. Follow best SEO practises.
|
||||
2). Your FAQ should be based on 'People also ask' and 'Related Queries' from given result.
|
||||
Follow below guidelines:
|
||||
1). Your blog content should compete against all blogs from search results.
|
||||
2). Your FAQ should be based on 'People also ask' and 'Related Queries' from given search result.
|
||||
Always include answers for each FAQ, use your knowledge and confirm with snippets given in search result.
|
||||
3). Your blog should be detailed, unique and written in markdown language.
|
||||
4). Do not explain, describe your response.
|
||||
3). Your blog should be highly detailed, unique and written in human-like personality & tone.
|
||||
4). Act as subject matter expert for given research keywords and include statistics and facts.
|
||||
5). Do not explain, describe your response.
|
||||
6). Important: Please read the entire prompt before writing anything, and do not do anything extra.
|
||||
Follow the prompt exactly as I instructed.
|
||||
|
||||
Web Research Keyword: "{search_keyword}"
|
||||
\n\nWeb Research Keyword: "{search_keyword}"
|
||||
Google search Result: "{search_results}"
|
||||
"""
|
||||
logger.info("Generating blog and FAQs from web search result.")
|
||||
logger.info("Generating blog and FAQs from Google web search results.")
|
||||
if 'google' in gpt_providers.lower():
|
||||
try:
|
||||
response = gemini_text_response(prompt)
|
||||
|
||||
@@ -20,28 +20,16 @@ def blog_with_keywords(blog, keywords):
|
||||
"""Combine the given online research and gpt blog content"""
|
||||
gpt_providers = os.environ["GPT_PROVIDER"]
|
||||
prompt = f"""
|
||||
You are an expert copywriter specializing in content optimization for SEO.
|
||||
As an expert digital content writer, specializing in content optimization and SEO.
|
||||
I will provide you with my 'blog content' and 'list of keywords' on the same topic.
|
||||
Your task is to write an original blog, using given keywords and blog content.
|
||||
Your task is to write an original blog, utilizing given keywords and blog content.
|
||||
Your blog should be highly detailed and well formatted.
|
||||
Do not miss out any details from provided blog content.
|
||||
|
||||
Blog content: '{blog}'
|
||||
list of keywords: '{keywords}'
|
||||
"""
|
||||
|
||||
if 'google' in gpt_providers.lower():
|
||||
prompt = f"""You are an expert copywriter specializing in content optimization for SEO.
|
||||
I will provide you with my 'blog content' and 'list of keywords' on the same topic.
|
||||
Your task is to write an original blog, using the given keywords and blog content.
|
||||
Your blog should be highly detailed and well formatted.
|
||||
Do not miss out any details from provided blog content.
|
||||
Always, include figures, data, results from given content.
|
||||
It is important that your blog is original and unique. It should be highly readable and SEO optimized.
|
||||
|
||||
Blog content: '{blog}'
|
||||
list of keywords: '{keywords}'
|
||||
"""
|
||||
try:
|
||||
response = gemini_text_response(prompt)
|
||||
return response
|
||||
|
||||
@@ -20,50 +20,31 @@ def blog_with_research(report, blog):
|
||||
"""Combine the given online research and gpt blog content"""
|
||||
gpt_providers = os.environ["GPT_PROVIDER"]
|
||||
prompt = f"""
|
||||
You are an expert copywriter specializing in SEO content optimization for blogs.
|
||||
You are an expert content editor specializing in SEO content optimization for blogs.
|
||||
I will provide you with a 'research report' and a 'blog content' on the same topic.
|
||||
Your task is to transform and combine the given 'research report' and 'blog content' into a well-structured, unique
|
||||
and original blog article.
|
||||
|
||||
Your objectives include:
|
||||
1. Master the report and blog content: Understand main ideas, key points, and the core message.
|
||||
2. Sentence Structure: Rephrase while preserving logical flow and coherence.
|
||||
3. Identify Main Keywords: Determine the primary topic and combine the articles on the main topic.
|
||||
4. REMEMBER: From the research report, include links and cititations to make your article more authoratative.
|
||||
5. Optimize for SEO: Generate high quality informative content.
|
||||
6. Implement SEO best practises with appropriate keyword density.
|
||||
7. Craft Engaging and Informative Article: Provide value and insight to readers.
|
||||
8. Proofread: Important to Check for grammar, spelling, and punctuation errors.
|
||||
9. Use Creative and Human-like Style: Incorporate contractions, idioms, transitional phrases,
|
||||
interjections, and colloquialisms. Avoid repetitive phrases and unnatural sentence structures.
|
||||
10. Blog Structuring: Include an Introduction, subtopics and use bullet points or
|
||||
numbered lists if appropriate. Important to include FAQs, Conclusion and Referances.
|
||||
11. Ensure Uniqueness: Guarantee the article is plagiarism-free. Write in unique, informative style.
|
||||
12. Punctuation: Use appropriate question marks at the end of questions.
|
||||
13. Pass AI Detection Tools: Create content that easily passes AI plagiarism detection tools.
|
||||
14. REMEMBER: Use the formatting style of given research report and include highlights, citations, referances in combined article.
|
||||
|
||||
Follow these guidelines to combine and write a new, unique, and informative blog article
|
||||
Your task is to follow below given guidelines to write a new, unique, and informative blog article
|
||||
that will rank well in search engine results and engage readers effectively.
|
||||
|
||||
Create a blog post, in markdown, from the given research report and blog content below.
|
||||
Follow below given guidelines:
|
||||
1. Master the report and blog content: Understand main ideas, key points, and the core message.
|
||||
2. Sentence Structure: Rephrase while preserving logical flow and conversational tone.
|
||||
3. Identify Main Keywords: Determine the primary topic and combine the articles on that main topic.
|
||||
4. Implement SEO best practises with appropriate keyword density.
|
||||
5. Use Creative and Human-like Style: Incorporate contractions, idioms, transitional phrases,
|
||||
interjections, and colloquialisms.
|
||||
6. Blog Structuring: Include an Introduction, subtopics and use bullet points or
|
||||
numbered lists if appropriate. Important to include FAQs, Conclusion and Referances.
|
||||
7. Ensure Uniqueness: Guarantee the article is plagiarism-free. Write in human-like and informative style.
|
||||
9. Pass AI Detection Tools: Create content that easily passes AI plagiarism detection tools.
|
||||
10. Act as subject matter expert and include statistics and facts in your combined article.
|
||||
|
||||
Important: Please read the entire prompt before writing anything. Follow the prompt exactly as I instructed.\n\n
|
||||
|
||||
Research report: '{report}'
|
||||
Blog content: '{blog}'
|
||||
"""
|
||||
|
||||
if 'google' in gpt_providers.lower():
|
||||
prompt = f"""You are an expert copywriter specializing in content optimization for SEO.
|
||||
I will provide you with my 'research report' and 'blog content' on the same topic.
|
||||
Your task is to transform and combine the given research and blog content into a blog article.
|
||||
Your blog should be highly detailed, original and well formatted.
|
||||
Do not miss out any details from provided content.
|
||||
Always, enhance the blog FAQs section with more information from given research.
|
||||
It is important that your blog provides detailed insights and engaging to readers.
|
||||
It should be highly readable and SEO optimized.
|
||||
|
||||
Research report: '{report}'
|
||||
Blog content: '{blog}'
|
||||
"""
|
||||
try:
|
||||
response = gemini_text_response(prompt)
|
||||
return response
|
||||
|
||||
@@ -81,11 +81,14 @@ def write_blog_from_keywords(search_keywords, url=None):
|
||||
#blog_markdown_str = blog_with_research(blog_markdown_str, you_search_result)
|
||||
#logger.info(f"Final blog content: {blog_markdown_str}")
|
||||
|
||||
# Pass the content to remove obivious words used by AI.
|
||||
blog_markdown_str = blog_humanize(blog_markdown_str)
|
||||
logger.info("Pass Final blog for blog-proof reading and *improvements.")
|
||||
# Pass the final content for proofreading.
|
||||
blog_markdown_str = blog_proof_editor(blog_markdown_str)
|
||||
|
||||
# Pass the content to remove obivious words used by AI.
|
||||
logger.info("Pass Final blog for Humanizing it further, Doesn't matter, Really?")
|
||||
blog_markdown_str = blog_humanize(blog_markdown_str)
|
||||
|
||||
blog_title, blog_meta_desc, blog_tags, blog_categories = blog_metadata(blog_markdown_str,
|
||||
search_keywords, example_blog_titles)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user