top of page

How to Customize Your ALwrity AI Blog Writer Writer Prompt

Writer's picture: UmeshUmesh

If you’re new to coding or working with AI-powered blog generation tools, you might want to tailor the text prompt so that the generated blog posts feel uniquely yours. The great news is that you can modify the prompt text in your code without changing how the tool functions.


Here’s how you can do it step by step:

A screenshot of the GitHub repository page for “alwrity_blog_writer,” showing the main branch, a description stating “AI blog writer from SERP results,” and a list of files including .devcontainer, README.md, blog_from_serp.py, and requirements.txt. The interface displays the green “Code” button on the right, alongside repository stats such as stars, forks, and commits.

 

1. Understand What the Prompt Does


The prompt is a set of instructions sent to the AI model. It defines:


  • Your role and expertise: For instance, you’re presented as a seasoned content creator or SEO expert.


  • The type of blog post: This could be a general post, how-to guide, listicle, etc.


  • Tone and language: These instructions ensure the output matches a specific style—professional, casual, or otherwise. Note that the UI allows users to set their desired tone via the {input_tone} variable, so there is no need to hardcode a specific tone.


  • SEO and formatting requirements: Details like including FAQs, markdown formatting, and keyword usage.


By editing this prompt, you’re only changing the description and style guidelines given to the AI, not the way the code interacts with APIs or handles responses.


 

2. Locate the Prompt in Your Code


Open your code editor and find the blog_from_serp.py file. Inside this file, you’ll see a block that looks similar to this:

prompt = f""" 

You are ALwrity, an SEO expert & {input_language} Creative Content writer. 
You specialize in writing {input_type} blog posts. 
Write a detailed, informative, and SEO-optimized blog post using the following web research keywords and Google search results. 

Ensure that: 
1. The blog content competes against existing blogs in the search results. 2. You include 5 FAQs based on 'People also ask' and related queries from the search results, with answers. 
3. The blog is formatted in markdown and follows the {input_tone} tone. 
4. Include personal insights and make the content engaging. 
5. Your final response should be highly readable and demonstrate Experience, Expertise, Authoritativeness, and Trustworthiness. 
6. Maintain blog tone of type {input_tone}, attitude and mood of your blog, conveyed through sentence formations, phrase types, and word choices. 

Blog keywords: {input_blog_keywords} 
Google SERP results: {serp_results} 
"""

This block is where you describe what you want the AI to do.

 

3. Plan Your Customizations


Before making changes, think about what you want to adjust. Some ideas include:


  • Introduction Style: Adjust the opening lines to sound more personal or match your brand voice.


  • Instruction Details: Modify, add, or remove any bullet points. For example, you might want to request the inclusion of personal anecdotes or specific examples.


  • Tone and Language: Since the UI allows users to specify the tone and language via {input_tone} and {input_language}, you don't need to hardcode a specific tone in the prompt. Instead, ensure the prompt references {input_tone} so that the user's selection is respected.


 

4. Edit the Prompt Text


Now, update the text within the triple-quoted string. For example, if you want the prompt to sound more like a friendly conversation, you might change it as follows:


prompt = f"""

You are ALwrity, a passionate storyteller and seasoned content creator who crafts {input_type} blog posts that truly resonate with readers.
 
Your mission is to create engaging and SEO-friendly content that feels naturally written and personal.

Instruction: 
1. Make sure the blog post competes with current top-ranking posts.
2. Include 5 FAQs inspired by 'People also ask' queries, complete with clear answers.
3. Format the blog post in markdown.
4. Write in a friendly, conversational tone that reflects a {input_tone} style.
5. Incorporate personal insights or anecdotes to make the content relatable.
6. Ensure the final content is easy to read and demonstrates your expertise and credibility.

Blog keywords: {input_blog_keywords}
Google SERP results: {serp_results}
"""

Notice that in this new version:

  • The core functionality remains unchanged—the AI still receives keywords, blog type, tone, and SERP results.


  • The language is adjusted to create a friendlier, more engaging narrative without affecting the data or process.


Code editor showing text edits. Original text in red with removed content; new text in green with added content for improving SEO writing tasks.

 

5. Save and Test


Once you’ve updated the prompt:


  1. Save your code in your editor.


  2. Run the application to generate a new blog post.


  3. Review the output to ensure it meets your expectations. The underlying functionality (SEO optimization, markdown formatting, FAQ inclusion, etc.) remains unchanged.


 

6. Fine-Tune as Necessary


It might take a few tries to get the wording just right. Consider:


  • Testing different versions: Run multiple tests with various keywords and blog types.


  • Gathering feedback: Ask a friend or colleague to review the generated post to see if the tone and style are exactly what you intended.


  • Iterating: Adjust the prompt until you achieve the perfect balance of human-like writing and SEO optimization.


 

Conclusion


Customizing the prompt in your AI blog writer tool is a straightforward process that allows you to change the “voice” of your generated content without altering the code’s functionality. By following these steps, you can make your blog posts sound naturally written, engaging, and perfectly aligned with your personal or brand style. Happy customizing and writing!


Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

14th Remote Company, @WFH, IN 127.0.0.1

Email: info@alwrity.com

© 2024 by alwrity.com

  • Youtube
  • X
  • Facebook
  • LinkedIn
  • Instagram
bottom of page