How to Write Effective AI Prompts

·7 mins
Christoph C. Cemper
Master the art of prompt engineering in generative AI models like ChatGPT.
Is your ChatGPT output bland, uninspired, or just off-topic? Fix your prompt!>

Is your ChatGPT output bland, uninspired, or just off-topic? Fix your prompt! #

Remember this AI truism: garbage in, garbage out.

Illustration of a smart AI Prompt Engineer at Work
What is an AI prompt anyways?>

What is an AI prompt anyways? #

Writing effective prompts for ChatGPT is crucial for harnessing its full potential. A prompt is essentially your instruction to the AI, guiding it on what to generate. The precision of your input directly influences the quality of the output of ChatGPT’s and other AIs.

Make sure you check out this tutorial as well.

Why do I need a good AI prompt?>

Why do I need a good AI prompt? #

Many new users tend to input vague, brief statements, expecting detailed responses. However, generative AI operates on a ‘garbage-in, garbage-out’ principle. A poorly structured prompt often leads to unexpected or unsatisfactory results. That’s where the art of prompt engineering comes in – it’s about meticulously crafting your request to ensure clarity and specificity.

This precision in prompt crafting is why tools like AIPRM and their communities are invaluable. They offer well-thought-out prompts, helping users quickly and effectively communicate their needs to the AI. Investing time in crafting a clear, detailed prompt pays off with more accurate and useful responses, turning ChatGPT into a more powerful tool for your needs.

What is Prompt Engineering?>

What is Prompt Engineering? #

Prompt engineering transforms how ChatGPT responds, tailoring its output to mimic specific characters or tones. Your example perfectly illustrates this. By instructing ChatGPT to “Act as Logan Roy from the TV show Succession,” you set a clear context and personality for the response. The prompt is concise yet detailed, directing the AI to respond as Logan would to a specific situation – his children going bankrupt.

The result?

A response that captures Logan Roy’s essence – terse, authoritative, and laced with the character’s signature disdain and resilience. It’s distinctly different from your own voice, showcasing the power of well-crafted prompts in shaping ChatGPT’s output to suit varied scenarios and styles. This approach is key for anyone looking to get the most out of their interactions with generative AI tools.

What is the Context Window? AI Model Memory.>

What is the Context Window? AI Model Memory. #

Understanding the context window in an AI model, like GPT-4, is crucial for effective communication with the AI. This ‘context window’ is essentially the AI’s short-term memory, encompassing the ongoing dialogue between the user and the tool.

GPT-4’s context window is impressively large, capable of retaining up to 96,000 words or 128,000 tokens on the largest model, roughly equivalent to 400 pages of text. Other current AI models go up to 200,000 tokens and when you read this, a new model may be out, even bigger.

This expansive memory allows it to reference a vast amount of information from earlier in the conversation, which significantly influences its responses.

The importance of this lies in the continuity and relevance of the AI’s responses. As you switch topics within the same chat session, everything previously discussed shapes the responses you receive. This can be advantageous for complex, multi-faceted conversations but can also lead to confusion if topics are wildly divergent.

To optimize the use of GPT-4 and similar tools, it’s advisable to start new chat sessions when embarking on entirely new topics. This approach ensures that the context window is clean and focused, allowing for more accurate and relevant responses from the AI, tailored to the specific topic at hand.

Literal Understanding of Language in LLMs>

Literal Understanding of Language in LLMs #

Precision in your choice of words is paramount when crafting prompts for ChatGPT, much like communicating with Amelia Bedelia, the literal-minded book character. This specificity is key in guiding the AI to your intended outcome.

  1. Verbs: Choose them carefully. Instead of a general term like “rewrite,” opt for “condense” if you want a summary, or “extrapolate” to expand on the information. This specificity directs ChatGPT’s approach more accurately.
  2. Adjectives: These are crucial, especially when setting the tone and voice of your content. Be descriptive and clear about the style or emotion you want to convey.
  3. Entities (People, Places, Things): To avoid confusion, it’s a good practice to put names and specific entities in quotes. For instance, saying “Logan Roy” rather than just Logan or Roy clarifies that you’re referring to the character from “Succession,” not someone else or something else like Roy Rogers.
  4. Specificity: The more detailed and precise your prompt, the more accurate and relevant the response. Ambiguity can lead to creative but potentially off-target answers. If you seek a specific type of response or information, make sure your prompt leaves no room for misinterpretation.

Remember, ChatGPT, like Amelia Bedelia, interprets prompts literally. Carefully chosen words help ensure that the responses you receive align closely with your intentions.

The Anatomy of an AI Prompt>

The Anatomy of an AI Prompt #

Now, the anatomy of a prompt, or at least the light, the sort of prompts that we do here at AIPRM and a lot of the people in our community do as well, is effectively like this. And the order of these items doesn’t really matter. You just want to make sure that it makes sense when you’re writing them to ChatGPT. 

  • So the role, who is the GPT creating ads?
  • Is it a person, is it a specific type of profession?

Just be very specific about that. That’s going to limit the context of its response.

Then there’s just general context.

  • Where is this person?
  • What are they writing for?
  • Are they writing a book?
  • Is it a plumber that’s at someone’s home talking about toilets being clogged?
Pretend you’re talking to a person>

Pretend you’re talking to a person #

Whatever it is, give the context for that person that’s meant to be responding.

The instructions:

  • What do you want them to do?
  • Do you want them to write a specific thing in a specific order?
  • Do you want them to have specific headings in the content that they’re giving you?
  • Do you want them to write large paragraphs, short paragraphs?
  • Do you want them to account for things like perplexity so that you can trick an AI detector?

All those instructions need to be baked in there.

The format: that’s also going to inform what it responds with.

  • Is it meant to be a tweet?
  • Is it meant to be a chapter in a book?
  • Is it meant to be a blog post?

Whatever format you’re thinking about, be very specific there and then that’s going to limit how many words it responds with or expand the number of words that it responds with.

Ideally, if you have examples, provide those because it can mimic very specifically what it is that you are wanting if you show it to them. Not them, but to it. It’s not a requirement, but again, it’s the quickest way to get to what you want. 

Finally, any constraints: If you don’t want it to use technical jargon, if you want it to use a specific voice or tone, if you want it to be a specific type of message, make sure that you put that in the constraints.

As you write your prompts using this format, it’s going to become second nature.

Best Practice in AI Prompting>

Best Practice in AI Prompting #

Starting your prompts with a specific role like “New York Times bestselling author” is a smart strategy.

This sets a high standard for the quality of writing you expect from ChatGPT. It signals that you’re looking for responses that are not just well-written but also carry a certain prestige and expertise in the craft.

Adding specific requirements, like asking for “a lot of technical detail,” helps further refine the response. It narrows down ChatGPT’s focus to meet your precise needs, ensuring the output aligns closely with your expectations in terms of depth and complexity.

This approach is effective in avoiding generic or superficial responses, guiding the AI towards producing content that meets professional standards and specific criteria.

What do you think?>

What do you think? #

And that wraps up our discussion on effective prompt crafting. Remember, if you’re not yet using AIPRM to enhance your experience with AIs like ChatGPT, it’s worth exploring, especially given its free access.

For additional support or feedback on your prompts, the AIPRM community forum is a valuable resource.

Don’t forget to check out forum.aiprm.com for more insights and interactions.


Use the Cheat Code for AI today. Install AIPRM for free.

Only a few clicks until you also experience the AIPRM-moment in your AI usage!

As Seen On

brand logo of FE-news-logo.svg
brand logo of IT-edge-news-africa-logo-light.jpeg
brand logo of MSN-logo.png
brand logo of MSSP-alert-logo.svg
brand logo of MV-pro-logo.svg
brand logo of NI-travel-news-logo-light.png
brand logo of PA-Life-logo.png
brand logo of ZDNet-logo.svg
brand logo of all-inclusive-logo-light.png
brand logo of az-big-media-logo.webp
brand logo of business-magazine-albania-logo.png
brand logo of business-money-logo.png
brand logo of business-today-logo.svg
brand logo of crave-logo-light.svg
brand logo of cybernews-logo-light.png
brand logo of daily-record-logo.png
brand logo of daily-star-logo.png
brand logo of digi-talk-logo.svg
brand logo of eweek-logo-light.png
brand logo of forbes-logo-light.png
brand logo of hackr-io-logo-light.webp
brand logo of hr-director-logo.png
brand logo of ignite-men-logo-light.png
brand logo of information-matters-logo.webp
brand logo of infoworld-logo.png
brand logo of live-science-logo.png
brand logo of liverpool_echo_logo.png
brand logo of makeuseof-logo-light.png
brand logo of marketing-profs-logo.svg
brand logo of mirror-uk-logo.png
brand logo of observatorio-IA-logo.svg
brand logo of passionate-in-marketing-logo-light.png
brand logo of seeking-alpha-logo.webp
brand logo of selecthub-logo.png
brand logo of sme-news-logo.png
brand logo of sote-logo.svg
brand logo of tech-digest-logo.png
brand logo of techno-economy-logo.png
brand logo of techopedia-logo.svg
brand logo of us-sun-logo.webp
brand logo of wales-online-logo.png
brand logo of zapier-logo-light.png

What Our Users Say

Improved quality of work it also made me significantly more efficient

" I absolutely love this tool. As the owner of two distinct businesses and a sales and marketing consultant for numerous others, this tool is essential. I utilize it for approximately 10 hours a day. Not only has it improved the quality of my work, but it has also made me significantly more efficient. Achieving these results wouldn’t be possible without this extension. I already have a few favorites, and I appreciate the ongoing addition of diverse and useful prompts. I often discover a new prompt that enables me to explore an entirely new sales or marketing channel. Excellent job! Keep on prompting!!!”

user name display picture
James Eglin
Founder - VP of Sales and Marketing at The Online Business Agency

Excellent!!

"I just started, but it seems very good work”

user name display picture
Konstantina Roussi
Author, Proofreader at Freelancer

One of the things I love about AIPRM is the vast collection of Prompts that are available

"I appreciate the idea of sharing exciting prompts with all community members. It follows the idea of collective learning and growth, which I do personally like a lot. ”

user name display picture
Begoña Mallenco
Corporate Fundraising Officer at The SeaCleaners