How to write prompts for ChatGPT

How to write prompts for ChatGPT

Whether you’re using ChatGPT to make your work easier or fully integrating artificial intelligence into your business, it’s definitely worth knowing how to write prompts.

In this article we will tell you how to correctly write prompts for ChatGPT in order to use the full potential of AI.

What is a ChatGPT prompt?

A ChatGPT prompt is a sentence or several sentences that give the AI ​​tool clear instructions about what you want it to do.

With the right text prompt, ChatGPT will be able to perform the following tasks:

  • write content,
  • create scripts,
  • transcribe audio,
  • create website code,
  • generate tables and CSV files,
  • describe the contents of the image,
  • create a schedule,
  • explain mathematical and grammatical errors,
  • imitate the writing or speaking style of famous people,
  • make summary of long articles,
  • get interesting data from reports.

But there is a nuance here – instructions that are clear to you may not be clear to ChatGPT.

ChatGPT runs on a large language model (LLM) using natural language processing (NLP). It is a computerized program that can interpret and reproduce incoming data because it is trained on internet content written by people. Using it is like “talking” to a conversational chatbot with artificial intelligence.

But even if the LLM responds in an almost human-like manner, you cannot give him instructions in the same way as you would with a human colleague. Instead, you should use specific words and phrases that give ChatGPT the right context to get the results you want.

How to write effective prompts for ChatGPT

The best ChatGPT prompts can contain a lot of background and additional information, for example:

  • details about who you are and what you do,
  • profile of the audience you are trying to reach with the generated result,
  • feedback on what you liked and didn’t like in previous iterations,
  • how long should ChatGPT take to respond,
  • any specific tone, emotion or keyword he should use in his response.

These additional tips will help you refine your prompt even further.

1. Determine your target audience

When you approach ChatGPT to create content, audience information will be very useful.

Let’s say you have a meal kit business and want to run an email marketing campaign for busy parents. Instead of just asking ChatGPT to write an email that will appeal to “busy parents,” go deeper into the details of your audience.

Ask ChatGPT to do the following:

Write a 150-word marketing email in a friendly and understandable tone to let 25-45 year old parents of school-aged children know that meal kits will give them more time during busy weekdays juggling between school, work and extracurricular activities.

2. Use examples

Giving ChatGPT specific examples of what you like and don’t like can also be very helpful.

This is called multi-trial learning and is a machine learning framework that can be used to help guide ChatGPT towards the desired outcome.

For example, you could say:

Here are some examples of what I like and don’t like.
I don’t like: capital letters and emojis.
I like: short sentences, descriptive images.
Now please create a one-paragraph description of Kyiv, the capital of Ukraine, in a style similar to mine.

You can also copy real examples of texts you like or dislike, or name famous authors.

Below is a simple diagram of prompts that will help you get started with some tips. Replace the capitalized words in brackets with your own examples and instructions:

Here are some examples of what needs to be done and what I don’t like. I don’t like: [ПРИКЛАД А] or [ПРИКЛАД B]. I like: [ПРИКЛАД C] or [ПРИКЛАД D]. Now please create [ПОТРІБНИЙ РЕЗУЛЬТАТ] O [ТЕМУ] in a style similar to [ПРИКЛАДИ C і D].

If ChatGPT fails, try repeating the request, but add more details about why you like or dislike each example. Also add more information about your audience or combine this type of prompts with others.

3. Use a chain of prompts

Increase the complexity of your prompts and outputs with a technique called chaining. That is, use the results obtained by ChatGPT as part of a new prompt.

For example, a marketer can give ChatGPT the following prompt:

Create a two-paragraph summary of this blog post: [ДОДАЙТЕ ТЕКСТ].

When ChatGPT returns a summary, the marketer can copy the response and add it to a new request:

Turn this text into a Twitter thread with at least 6 tweets, but no more than 9: [ДОДАЙТЕ ВІДПОВІДЬ CHATGPT № 1].

The marketer can then take the tweet chain generated by ChatGPT and use it to create another prompt:

Turn these tweets into a script for a 60-second TikTok video: [ДОДАЙТЕ ВІДПОВІДЬ CHATGPT № 2].

Combine prompts this way instead of asking ChatGPT to do everything at once. This will allow you to understand what you want, refine ChatGPT’s responses as you go, and get a result that best suits your needs.

4. Try role-playing

Try role-playing in ChatGPT. This can be useful for generating ideas or preparing for an event. For example, ask ChatGPT to help you prepare for an interview by playing the role of an interviewer.

ChatGPT will ask you questions you can answer and even give you tips on how to improve your interview answers.

5. Ask ChatGPT to wait for a response

Sometimes ChatGPT may respond too quickly. This usually happens because it thinks you’ve finished issuing the prompt, even though you haven’t.

If you find it difficult to write all the details and requirements in one go, but there is no need to build a chain of prompts, ask ChatGPT to wait until you are finished.

To do this, give ChatGPT the following prompt:

I’m going to provide information in several parts. After I give each piece of information, say, “Got it!” When I’m done entering the information, I’ll say, “Go ahead!” and then you can give me an answer.

ChatGPT should say: “Got it!” After that, start entering all the necessary information or prompts that you want to give to the AI. When you say “Go!”, ChatGPT will generate a response.

6. Use Chat Markup Language (ChatML)

If you’re comfortable working with code, create a structured format for ChatGPT by assigning roles to different parts of the prompt.

To do this, use OpenAI’s ChatML formatting:

  • The role of the system is ChatGPT and what it should do.
  • The user role is you and what you are asking ChatGPT about.
  • Assistant role – ChatGPT input.

Here’s an example from OpenAI’s GitHub page about ChatML:

This is a more complex version of creating a chain of prompts to pose a ChatGPT task.

7. Use an AI prompt generator

To quickly get the desired result, use generators and libraries of artificial intelligence prompts. Find out the types of prompts other people use to get the most out of ChatGPT.

  • Hall Analysis is an easy to use ChatGPT prompt generator that works like a form. You simply fill out the available fields and receive a prompt that can be copied to ChatGPT.
  • Aspose is a free library of copycat questions that can be browsed by industry, specialty, or use case. While this is not a fully customizable generator, it is a good starting point and will give you some additional ideas.
  • Prompt Hero is another prompt library containing prompt options for ChatGPT as well as AI image generators such as Midjourney.

AI can even be used to create more prompts. Ask ChatGPT for this following request:

Create a prompt to ask the AI ​​generator to execute [ДІЯ] For [ВИПАДОК ВИКОРИСТАННЯ].

If you ask ChatGPT to generate prompts to force the AI ​​to write social media posts, you might get the following result:

In the future, use the ChatGPT response as a template for future prompts.

And remember that you can improve the result. If ChatGPT doesn’t give you the answer you want, explain why you didn’t like it. Please repeat the request again, adding details. It is also recommended to create a new chat topic to start fresh.

8. Create multiple conversations in ChatGPT

ChatGPT uses the data to further improve responses, even if you give a new prompt. As long as you continue to give ChatGPT prompts in the same conversation, your pre-prompts and AI output will influence subsequent responses.

To avoid this and train the AI ​​to do what you want better, save and organize your ChatGPT conversations by topic. Rename each conversation to make it easier to reference later.

Every time you want to use ChatGPT for a new purpose, start a new conversation. Then hover over the new list that appears in the menu on the left. To rename a chat, click on the pencil.

For example, developers might have one chat for tuning code on a website, a second for optimizing program code, and a third for learning a new language.

By analogy, a small business owner might have one conversation where they tell ChatGPT about their business and receive suggestions for marketing copy, and another where the AI ​​creates a product description.

9. Use Playground or API

OpenAI Playground is another way to experiment with prompts. It is a platform that helps users interact with various OpenAI language models and modes, one of which is ChatGPT. You access the Playground based on access to the OpenAI API.

Its main purpose is to be an experimental platform for developers, researchers and users who want to test and explore the capabilities of these models. Users can enter text prompts, change parameters, and observe the model’s response, making it a great environment for studying and understanding AI behavior.

Using Playground you can:

  • Choose different AI models to interact with.
  • Regulate the level of creativity of artificial intelligence results
  • Change the length of artificial intelligence responses.
  • Experiment with chatbot presets.

Also try using the ChatGPT API and customizing it to suit your specifications. However, this requires an understanding of Python, so non-developers are better off using Playground.

10. Improve, update and repeat

Be patient when using ChatGPT. You’ll have several rounds of refining and updating the results until you find the right combination of details and words that will make the AI ​​work for you.

The good news is that since ChatGPT’s responses are almost instantaneous, iterations are fast. And if you use ChatGPT responses to manage settings, it will speed up everything too.

In the next article we will give examples 150 useful prompts for specialists in various fields to improve interaction with AI. Follow our new materials.


Related posts