Skip to content
4 days ago

Basics of Writing Good AI Prompts

MA
Mindli AI

Basics of Writing Good AI Prompts

The quality of the answers you receive from an artificial intelligence is almost entirely determined by the quality of the questions you ask. Good prompts are the key to unlocking useful, accurate, and creative AI outputs, transforming the tool from a novelty into a powerful collaborator. By mastering a few core principles of communication, you can consistently guide the AI to produce work that meets your specific needs, saving time and elevating your results.

The Foundation: Clarity and Specificity

The single most important rule for writing effective prompts is to be clear and specific. Vague instructions lead to vague, generic, or incorrect outputs. An AI has no inherent understanding of your intent; it can only work with the information you provide.

Think of the AI as a brilliant but literal-minded assistant. If you ask it to "write about marketing," you'll get a shallow, encyclopedic overview. A specific prompt narrows the scope and defines the goal. For example, "Draft a 300-word email newsletter section for a new line of eco-friendly yoga mats, targeting environmentally conscious consumers aged 25-45, highlighting durability and sustainable materials" gives the AI a concrete task. Specificity acts as a constraint, focusing the AI's vast knowledge on your particular problem.

This principle extends to all requests. Instead of "make a schedule," try "Create a 4-hour study schedule for a high school student preparing for a biology final exam next week, allocating time for reviewing textbook chapters, practicing with flashcards, and taking a practice test." The more precise you are about the what, the less room there is for the AI to guess incorrectly.

Providing Essential Context and Role

AI models generate text based on patterns learned from a massive corpus of data. You can steer these patterns by providing context and assigning a role. Context is the background information the AI needs to tailor its response appropriately. It answers the implicit questions: Why is this task being done? What is the bigger picture?

For instance, prompting "Summarize this article" is weak. A stronger prompt provides context: "I am a project manager presenting to non-technical stakeholders. Summarize the attached article on blockchain technology in 3 bullet points, avoiding jargon and focusing on potential business impacts." The context ("presenting to non-technical stakeholders") fundamentally changes the nature of the summary.

Assigning a role is a powerful technique for shaping tone, depth, and perspective. By instructing the AI to "Act as a seasoned high school chemistry teacher," you prime it to use explanatory analogies, anticipate common student misconceptions, and adopt an instructive tone. Other effective roles include "cybersecurity expert," "business strategy consultant," "friendly career coach," or "professional copywriter." The role sets the frame for the entire interaction.

Defining the Desired Format and Audience

Explicitly stating your desired output format prevents you from receiving a rambling paragraph when you needed a table, or a bulleted list when you needed a formal report. Format specification is a direct instruction the AI can easily follow. Common format commands include:

  • "Output in a table with columns for X, Y, and Z."
  • "Write in the style of a press release."
  • "Provide a step-by-step numbered guide."
  • "Give your answer in Python code with comments."
  • "Structure the response using the headings: Introduction, Analysis, Recommendations."

Closely tied to format is audience specification. The language, complexity, and examples used should match who will consume the content. A prompt for "an audience of PhD candidates" will differ radically from one for "a group of 5th-grade students" or "potential investors." Telling the AI "Explain quantum computing to my 90-year-old grandmother using simple analogies related to cooking or gardening" forces it to translate complex concepts into accessible, relatable terms. Defining the audience ensures the output is not just correct, but also appropriate and effective.

The Iterative Process: Refining and Building

Rarely will your first prompt yield a perfect result. Treat interaction with AI as a conversational iteration process. Your first prompt is a starting point. You then refine the output through follow-up prompts, building toward your ideal result.

The initial output might be 80% of the way there. Use it as a foundation to ask for specific adjustments. For example:

  • First Prompt: "Generate five ideas for a blog post about urban gardening."
  • AI Output: Provides five generic titles.
  • Iteration Prompt: "Take idea #3, 'Growing Herbs on a Fire Escape,' and expand it into a detailed outline for a 1500-word guide. The audience is apartment dwellers in cold climates. Include sections on container selection, cold-resistant herb varieties, and overcoming limited sunlight."
  • Further Iteration: "For the outline above, now draft the introduction paragraph to be engaging and highlight the benefits of fresh herbs."

You can also use iterative prompts to change tone ("Make this more persuasive"), shorten or lengthen text ("Condense this to three sentences"), or correct inaccuracies ("The third point is factually incorrect. According to [source], it should be..."). The "temperature" or creativity level of the output can also be guided iteratively, asking for a "more creative" or "more straightforward" version of the previous text.

Common Pitfalls

  1. The Vagueness Trap: "Write something good." This prompt is doomed. The AI doesn't know what "good" means to you. Always replace subjective adjectives with objective criteria. Instead of "good," specify "concise," "evidence-based," "humorous," or "actionable."
  2. Assuming Context: The AI does not remember your past conversations unless you are in a dedicated chat thread, and even then, it has limits. Never assume it knows the background. If you're asking for a follow-up, briefly restate key context. For example, don't just say "Now write the conclusion"; say "Using the three-point argument about renewable energy subsidies we just developed, now write a compelling conclusion for the speech."
  3. Ignoring the Format: Failing to specify a format often leads to a default prose block. If you need structured data, a list, or code, you must ask for it explicitly. The extra few seconds to specify "in a table" saves minutes of reformatting later.
  4. Stopping at the First Output: Treating the AI's first response as the final product wastes its potential. The real power emerges in the dialogue—refining, tweaking, and asking "what if." Not iterating means you settle for a generic answer instead of crafting a tailored solution.

Summary

  • Be Specific and Clear: The AI is literal. Detailed, unambiguous instructions focused on a concrete goal yield dramatically better results than vague requests.
  • Provide Context and Assign a Role: Give the AI the background it needs and tell it who to be (e.g., an expert, a teacher, a writer) to shape the tone, depth, and perspective of its response.
  • Explicitly State Format and Audience: Directly command the structure of the output (list, table, code, essay) and define the intended reader to ensure the content is appropriately styled and accessible.
  • Embrace Iteration: View your first prompt as a draft. Use follow-up prompts to refine, expand, correct, and perfect the output in a collaborative, conversational process.
  • Avoid Vagueness and Assumptions: Replace subjective terms with objective criteria, and never assume the AI knows anything you haven't explicitly told it in the current prompt or recent conversation history.

Write better notes with AI

Mindli helps you capture, organize, and master any subject with AI-powered summaries and flashcards.