7 ways to write better ChatGPT prompts – and get the results you want faster

colorful keyboard

ChatGPT is the generative artificial intelligence (AI) tool that's taken the world by storm. While there's always the possibility it will simply make stuff up, there's a lot you can do when crafting prompts to ensure the best possible outcome. That's what we'll be exploring in this how-to.

Also: The most popular AI tools of 2024 (and what that even means)

In this article, I'll show you how to write prompts that encourage the large language model (LLM) that powers ChatGPT to provide the best possible answers.

Writing effective prompts, known as prompt engineering, has even become a highly-paid discipline. Who knows? These tips could help you build the skills to become a prompt engineer. Apparently, these gigs can pay from $175,000 to $335,000 per year.

How to write effective ChatGPT prompts

I am planning to travel to Spain in a few months and would like to learn some basic Spanish to help me communicate with local residents. I am looking for online resources that are suitable for beginners and provide a structured and comprehensive approach to learning the language. Can you recommend some online resources for learning Spanish as a beginner?

In this case, rather than just asking about learning resources, the context helps focus the AI on learning how to communicate on the ground with local residents. Here's another example:

I am a business owner interested in exploring how blockchain technology can be used to improve supply chain efficiency and transparency. I am looking for a clear and concise explanation of the technology and examples of how it has been used in the context of supply chain management. Can you explain the concept of blockchain technology and its potential applications in supply chain management?

In this example, rather than just asking for information on blockchain and its workings, the focus is specifically on blockchain for supply chain efficiency and how it might be used in a real-world scenario.

Also: The most popular programming languages in 2024

Lastly, let's get into how to construct a detailed prompt.

One note: I limit the answer to 500 words because ChatGPT sometimes breaks when asked to produce somewhere between 500 and 700 words, leaving stories mid-sentence and not resuming properly when asked to continue. I hope future versions provide longer answers because premises like this can generate fun story beginnings:

Write a short story for me, no more than 500 words.

The story takes place in 2339, in Boston. The entire story takes place inside a Victorian-style bookstore that wouldn't be out of place in Diagon Alley. Inside the store are the following characters, all human:

The proprietor: make this person interesting and a bit unusual, give them a name and at least one skill or characteristic that influences their backstory and possibly influences the entire short story.

The helper: this is a clerk in the store. His name is Todd.

The customer and his friend: Two customers came into the store together, Jackson and Ophelia. Jackson is dressed as if he's going to a Steampunk convention, while Ophelia is clearly coming home from her day working in a professional office.

Another customer is Evangeline, a regular customer in the store, in her mid-40s. Yet another customer is Archibald, a man who could be anywhere from 40 to 70 years old. He has a mysterious air about himself and seems both somewhat grandiose and secretive. There is something about Archibald that makes the others uncomfortable.

A typical concept in retail sales is that there's always more inventory "in the back," where there's a storeroom for additional goods that might not be shown on the shelves where customers browse. The premise of this story is that there is something very unusual about this store's "in the back."

Put it all together and tell something compelling and fun.

You can see how the detail provides more for the AI to work with. First, feed "Write me a story about a bookstore" into ChatGPT and see what it gives you. Then feed in the above prompt, and you'll see the difference.

More prompt-writing tips

  • Feel free to re-ask the question. ChatGPT will often change its answer with each ask.
  • Make small changes to your prompts to guide it into giving you a better answer.
  • ChatGPT will retain its awareness of previous conversations as long as the current page is open. If you leave that page, it will lose awareness. To be clear, ChatGPT will also sometimes lose the thread of the conversation without reason, so be aware you may need to start over from time to time.
  • Similarly, opening a new page will start the discussion with fresh responses.
  • Be sure to specify the length of the response you want. Answers longer than about 500 words sometimes break down.
  • You can correct and clarify prompts based on how the AI answered previously. If it's misinterpreting you, you may be able to just tell it what it missed and continue.
  • Rephrase questions if ChatGPT doesn't want to answer what you're asking. Use personas to elicit answers that it might not otherwise want to give.
  • If you want sources cited, tell it to support or justify its answers.
  • ChatGPT custom instructions are now available to free users. You can give ChatGPT a set of prompts that are always available, so you don't have to retype them.
  • Keep experimenting.
  • Consider getting the ChatGPT Plus subscription. You'll get more time to interact with the AI before it shuts you down and asks you to wait for another session.
  • Try asking the same question of Gemini (formerly Bard) or Copilot (formerly Bing Chat). Both will interpret your prompts differently and answer differently. This is effectively getting a second opinion on your prompt, and can give you alternate perspectives.
  • Ask for examples. If you want to see how well ChatGPT understands what you're asking for, ask it, "Can you give me three examples of how that works?" or similar questions.
  • Ask it to repeat parts of your original requests back to you. For example, if you feed it an article to analyze, you can tell it something like, "Just to be sure you understand, please echo back the first three headlines," or "I want to be sure you understand what I mean, so summarize the main conflict discussed in this article."
  • Sometimes ChatGPT just fails. Keep trying, but also be willing to give up and move on to other tools. It's not perfect…yet.

What type of prompts work best with ChatGPT?

Part of what makes ChatGPT so compelling is you can ask it almost anything. That said, keep in mind that it's designed to provide written answers. If you want a list of websites, you're better off talking to Google.

Also: How to use DALL-E 3 in ChatGPT

If you want some form of computation, talk to Wolfram Alpha. Give ChatGPT open-ended prompts, encourage creativity, and don't be afraid to share personal experiences or emotions. Plus, keep in mind that the AI's knowledge ends in 2021 for ChatGPT 3.5 and December 2023 for ChatGPT 4 in ChatGPT Plus and ChatGPT 4o, which is available in both Plus and free modes.

How can I adjust the complexity of ChatGPT responses?

You can directly specify the complexity level by including it in your prompt. Add "… at a high school level" or "… at a level intended for a Ph.D. to understand" to the end of your question. You can also increase the complexity of output by increasing the richness of your input. The more you provide in your prompt, the more detailed and nuanced ChatGPT's response will be. You can also include other specific instructions, like "Give me a summary," "Explain in detail," or "Provide a technical description."

Also: How does ChatGPT actually work?

You can also pre-define profiles. For example, you could say "When evaluating something for a manager, assume an individual with a four-year business college education, a lack of detailed technical understanding, and a fairly limited attention span, who likes to get answers that are clear and concise. When evaluating something for a programmer, assume considerable technical knowledge, an enjoyment of geek and science fiction references, and a desire for a complete answer. Accuracy is deeply important to programmers, so double-check your work."

If you ask ChatGPT to "explain C++ to a manager" and "explain C++ to a programmer," you'll see how the responses differ.

How can I adjust the creativity level of ChatGPT's responses?

In the same way that you can adjust the complexity level, you can adjust the creativity level. It's a matter of providing a prompt that guides the AI in that direction. For example, use "please include creative, open-ended responses" or "please provide factual, concise replies" in your prompts.

What do I do if ChatGPT refuses to answer or I don't like its answer?

There are some guardrails built into ChatGPT. It tends to shut down if you ask it political questions, for example. That's what's built into the system. While you might be able to tease out an answer, it's probably not going to provide great value. That said, feel free to keep trying with different phrasing or perspectives.

You can follow my day-to-day project updates on social media. Be sure to subscribe to my weekly update newsletter on Substack, and follow me on Twitter at @DavidGewirtz, on Facebook at Facebook.com/DavidGewirtz, on Instagram at Instagram.com/DavidGewirtz, and on YouTube at YouTube.com/DavidGewirtzTV.

Artificial Intelligence

Follow us on Twitter, Facebook
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 comments
Oldest
New Most Voted
Inline Feedbacks
View all comments

Latest stories

You might also like...