Complete Guide to Writing Prompts|Tips and Specific Examples of Using ChatGPT

prompt writing

Have you ever had the experience of "AI doesn't answer my questions as I expect..."? Have you ever had such an experience? The key to mastering AI lies in how to write prompts.

In this article, we have organized tips on how to design effective prompts, using ChatGPT as an example. Even beginners can start practicing today.


What is a prompt?

A prompt is a "directive" that you throw at AI. The quality of the answers you get back will vary greatly depending on how you express your question or request.

--- ## Prompt

Basic Writing 3 Steps

  1. Clearly state your purpose.

    • I need you to translate an English email.
    • I want you to write sample code in Python. → Writing the goal first makes it easier for AI to understand the direction of the answer.
  2. Convey specific conditions and assumptions.

    • Use a casual style.
    • Summarize in 200 words or less.
    • Use bullet points, not a tabular format." → The key is to add restrictions, because if you leave it vague, you are likely to get a disappointing answer.
  3. Specify the output format.

    • Markdown format.
    • With YAML front matter.
    • Step-by-step instructions." → To get practical output, clearly communicate the format.

--- "Markdown format

Common mistakes and examples of improvements

  • Failure Example: "Write a blog post." → Too abstract, unclear in content and tone.

  • Example of Improvement: "Write a blog post on 'digital detox' for beginners in Markdown format. Add a title, date, and tag front matter, with an introduction, headline, and summary.

→ By fleshing out the terms and conditions, you will have a ready-to-use article.


Advanced Technique: Role Designation

By assigning "roles" to the AI, you can further improve the accuracy of your answers.

  • You can assign a role to an AI and make it more accurate by saying, "You are a professional editor. You are a professional editor, please improve the headlines of blog posts.
  • You are a front-end engineer, please show us an example code in Next.js.

→ This one word can completely change the direction of your answer.

--- "You are a front-end engineer, please provide an example of your code in Next.js.

Summary

  • The quality of the prompt determines the AI's answer.
  • Communicating a set of goals, conditions, and format improves accuracy
  • Role specification can bring out professional-like output

In the next issue, we will also explain the difference of prompts by mode of thinking (Instant/Balanced/Thinking in GPT-5).


👉 Related articles are also recommended