Back to Home →

Prompt Engineering: A Comprehensive Guide

Table of Contents

What is Prompting?

Prompting is the process of providing specific instructions to a generative AI tool to receive new information or to achieve a desired outcome on a task. This interaction can encompass various modalities, including:

  • Text
  • Images
  • Videos
  • Audio
  • Code

The quality and structure of the prompt often directly influence the relevance and usefulness of the AI-generated output.

flowchart LR
    User([User])
    Prompt[Prompt Construction]
    AI[[AI Model]]
    Output[Generated Output]
    Feedback[Feedback Loop]
    
    User -->|Crafts| Prompt
    Prompt -->|Submitted to| AI
    AI -->|Generates| Output
    Output -->|Reviewed by| User
    User -->|Provides| Feedback
    Feedback -->|Refines| Prompt
    
    style User fill:#f9f,stroke:#333,stroke-width:2px
    style AI fill:#bbf,stroke:#333,stroke-width:2px
    style Output fill:#bfb,stroke:#333,stroke-width:2px
    style Prompt fill:#fbb,stroke:#333,stroke-width:2px

Designing a Prompt: A 5-Step Framework

Creating an effective prompt is essential for achieving high-quality results from generative AI tools. Following a structured framework can dramatically improve your outcomes.

flowchart TD
    subgraph Framework ["The 5-Step Framework: TCREI"]
        Task["1. TASK
        Define what you want the AI to do
        Consider adding persona and output format"]
        Context["2. CONTEXT
        Provide relevant background information
        More context leads to better results"]
        References["3. REFERENCES
        Include examples to guide the AI
        Show patterns you want it to follow"]
        Evaluate["4. EVALUATE
        Review the output critically
        Does it match your expectations?"]
        Iterate["5. ITERATE
        Refine your prompt based on results
        Apply different iteration techniques"]
    end
    
    Task --> Context --> References --> Evaluate --> Iterate
    Iterate -.-> Task
    
    style Task fill:#f9d5e5,stroke:#333,stroke-width:1px
    style Context fill:#e3eaa7,stroke:#333,stroke-width:1px
    style References fill:#b5ead7,stroke:#333,stroke-width:1px
    style Evaluate fill:#c7ceea,stroke:#333,stroke-width:1px
    style Iterate fill:#ffd3b6,stroke:#333,stroke-width:1px

1. Task

Define what you want the AI to do. For example:

If your friend’s birthday is approaching and they’re into anime, you could start with:
“Suggest a gift related to anime for my friend’s birthday.”

While this prompt might yield decent results, you can make it more specific by incorporating two additional elements:

Persona: Define the role you want the AI to embody. For example:
“Act as an anime expert to suggest an anime gift for my friend’s birthday.”

Output Format: Specify the desired format of the response. For instance:
“Organize that data into a table.”

2. Context

Provide as much relevant information as possible. More context typically leads to better outputs. For example:
“Act as an anime expert to suggest an anime gift for my friend’s birthday. She is turning 29 years old, and her favorite animes are Shangri-la Frontier, Solo Leveling, and Naruto Treasures.”

3. References

Include examples to clarify your expectations. If explaining your requirements in words proves challenging, examples can help guide the AI’s understanding of what you’re looking for.

4. Evaluate

After receiving the AI’s output, ask yourself: “Is this result aligned with what I wanted?” If it isn’t, proceed to the next step.

5. Iterate

Prompting is rarely perfect on the first attempt. It’s an iterative cycle where you refine the prompt to achieve desired results.

graph TD
    subgraph "Iteration Methods"
        A[Revisit the Prompting Framework<br>Add more context or examples] 
        B[Separate Prompts<br>Into Shorter Sentences]
        C[Analogous Tasks<br>Try different phrasing]
        D[Constraints<br>Introduce limitations to focus the AI]
    end
    
    style A fill:#ffc6c4,stroke:#333,stroke-width:1px
    style B fill:#ffe8b8,stroke:#333,stroke-width:1px
    style C fill:#d8f8b7,stroke:#333,stroke-width:1px
    style D fill:#b8d0ff,stroke:#333,stroke-width:1px

Four effective methods for iteration include:

  1. Revisit the Prompting Framework: Consider adding more references, providing additional examples, offering more context, or introducing a persona if you haven’t already.

  2. Separate Prompts into Shorter Sentences: Simplify complex instructions into smaller, manageable parts. For example:
    • Instead of:
      “Summarize the key data points and information in the report. Then create visual graphs from the data and shorten the key information into bullets.”
    • Try:
      “1. Summarize the key data points and information in the report.
      2. Create visual graphs with the data you summarized.
      3. Shorten the key information you summarized into bullets.”
  3. Try Different Phrasing or Analogous Tasks: If the output feels dull or uninspired, reframe the task.

  4. Introduce Constraints: Narrow the focus by specifying constraints or limitations.

Mnemonic to Remember the Framework

Use the phrase “Thoughtfully Create Really Excellent Inputs” to recall the 5-step framework:

  • Task
  • Context
  • References
  • Evaluate
  • Iterate

Multimodal Prompting

Multimodal prompting expands the interaction beyond text, allowing generative AI tools to process and generate outputs in various modalities such as images, audio, video, and code.

graph TD
    subgraph Multimodal["Multimodal Prompting"]
        A[Text] 
        B[Images]
        C[Audio]
        D[Video]
        E[Code]
    end
    
    AI((AI Model)) --> Multimodal
    Multimodal --> Output[Generated Content]
    
    style AI fill:#f9f,stroke:#333,stroke-width:2px
    style Output fill:#bfb,stroke:#333,stroke-width:2px
    style A fill:#e6f7ff,stroke:#333,stroke-width:1px
    style B fill:#fff2e6,stroke:#333,stroke-width:1px
    style C fill:#e6ffe6,stroke:#333,stroke-width:1px
    style D fill:#ffe6e6,stroke:#333,stroke-width:1px
    style E fill:#e6e6ff,stroke:#333,stroke-width:1px

Examples of Multimodal Usage

  • Suggest recipes based on a photo of the ingredients in your fridge
  • Design a digital teaser for an upcoming event incorporating brand elements
  • Analyze data visualizations and extract insights
  • Create captions for product images based on visual content

Social Media Post Example

Major Issues When Using AI Tools

graph TD
    subgraph "Major Challenges"
        H[Hallucinations]
        B[Biases]
    end
    
    H -->|Produces| F[False or Inconsistent Information]
    B -->|Results in| U[Unfair or Skewed Outputs]
    
    subgraph "Mitigation"
        M[Human-in-the-loop Verification]
    end
    
    F --> M
    U --> M
    
    style H fill:#ffcccc,stroke:#333,stroke-width:1px
    style B fill:#ccccff,stroke:#333,stroke-width:1px
    style F fill:#ffdddd,stroke:#333,stroke-width:1px
    style U fill:#ddddff,stroke:#333,stroke-width:1px
    style M fill:#ccffcc,stroke:#333,stroke-width:1px

1. Hallucinations

Hallucinations occur when the tool provides outputs that are inconsistent, incorrect, or nonsensical. For example:

  • Asking AI: “How many R’s are in the word strawberry?”
    The AI might respond incorrectly with: “There are 2 R’s in strawberry.” (The correct answer is 1)

2. Biases

AI systems, trained on human-generated content, often inherit biases present in that content. These biases can include those related to gender, race, and more.

Mitigating Issues

To address these problems, a human-in-the-loop approach is recommended. Always review and verify the AI-generated outputs to ensure accuracy and fairness.

Using AI Responsibly

When leveraging AI tools, it is your responsibility to ensure that the outputs are accurate, ethical, and appropriate.

graph TD
    subgraph "Responsible AI Use Checklist"
        A[1. Evaluate Suitability<br>Ensure AI fits the task and doesn't reinforce biases]
        B[2. Get Approval<br>Obtain company consent for AI use on projects]
        C[3. Protect Privacy<br>Use secure tools and avoid exposing sensitive data]
        D[4. Validate Outputs<br>Review all AI-generated content before sharing]
        E[5. Be Transparent<br>Disclose AI use to teams and clients]
    end
    
    A --> B --> C --> D --> E
    
    style A fill:#f9d5e5,stroke:#333,stroke-width:1px
    style B fill:#e3eaa7,stroke:#333,stroke-width:1px
    style C fill:#b5ead7,stroke:#333,stroke-width:1px
    style D fill:#c7ceea,stroke:#333,stroke-width:1px
    style E fill:#ffd3b6,stroke:#333,stroke-width:1px

Design Prompts for Everyday Work Tasks

This section provides examples of use cases based on the 5-step framework and iteration methods to show how generative AI tools can assist with daily work tasks.

Prompt Library

One common use case for generative AI is content production. Here are some examples:

Example 1: Writing an Email

“I’m a gym manager and we have a new gym schedule. Write an email informing our staff of the new schedule. Highlight the fact that the M/W/F Cardio Blast class changed from 7:00 AM to 6:00 AM. Make the email professional and friendly, and short so that readers can skim it quickly.”

For important content such as essays, articles, or newsletters, be specific about tone:

“Write a summary in a friendly, easy-to-understand tone like explaining to a curious friend.”

Example 2: Planning a Game Launch

“I’m a marketer for a well-known video game producer known for creating immersive story-based online video games. I’m planning the launch of a new medieval fantasy roleplaying game that follows the path of a young protagonist searching for their missing partner. The game’s primary audience is young adults. The game is reaching the end stages of development, and I need help creating a timeline before it goes live. Provide a rough timeline for the year leading up to its launch. Also, provide some pre-launch ideas to help generate buzz around the game.”

Example 3: Scheduling Staff Shifts

“I have 10 employees. Their employee numbers are 1 through 10. Create a table that tracks weekly staffing. Create columns for day, name, and shift (morning or afternoon).

- Employees should not be scheduled for a morning shift on the following day after they were scheduled for an afternoon shift.
- Employees should not be scheduled for both the morning and afternoon shifts on the same day.
- Every employee should have roughly the same number of total shifts per week.”

Speed Up Data Analysis

flowchart LR
    Data[Raw Data] --> Upload[Upload to AI]
    Upload --> Prompt[Craft Analysis Prompt]
    Prompt --> Analysis[AI Analysis]
    Analysis --> Insight[Extract Insights]
    Analysis --> Validation[Validate Results]
    Analysis --> Visual[Generate Visualizations]
    
    subgraph "AI Assistance Areas"
        direction TB
        Formula[Formula Explanation]
        Pattern[Pattern Recognition]
        Calculation[Complex Calculations]
        Correlation[Correlation Identification]
    end
    
    Prompt -.-> Formula & Pattern & Calculation & Correlation
    
    style Data fill:#f9d5e5,stroke:#333,stroke-width:1px
    style Analysis fill:#c7ceea,stroke:#333,stroke-width:1px
    style Insight fill:#b5ead7,stroke:#333,stroke-width:1px
    style Formula fill:#e3eaa7,stroke:#333,stroke-width:1px
    style Pattern fill:#ffd3b6,stroke:#333,stroke-width:1px

Generative AI can significantly streamline data analysis tasks, from creating new columns to understanding complex formulas.

Example Dataset

Download the dataset from the following URL:
StoreData.xlsx

This dataset contains information about a grocery store chain, including store details, areas, items available, daily customer counts, and store sales.

Prompts for Data Analysis

  1. Calculate Average Sales Per Customer:
    Prompt:
    “Attached is an Excel sheet of store data. How can I create a new column in Sheets that calculates the average sales per customer for each store?”

  2. Analyze Relationships in the Data:
    Prompt:
    “Give me insights into the relationship between ‘Daily Customer Count,’ ‘Items Available,’ and ‘Sales’ based on the given data.”

Understanding Complex Formulas

AI tools can also demystify intricate formulas. For example:

Prompt:
“I work at a large restaurant and I need to order inventory while my coworker is on leave. They left me with a formula to calculate how much food to order, but I don’t understand it:

=IFERROR(ROUNDUP(MAXO, VLOOKUP(B2, Inventory!A:B,2,FALSE)0.2 - C2) + SUMIFS(Reservations!D:D, Reservations!A:A, “>=”&TODAY(), Reservations!A:A, “<”&(TODAY()+7), Reservations!C:C,B2)* 0.12), “Check Inventory”).*

Explain what the formula means in simpler, step-by-step terms.”

Building Presentations

flowchart TD
    Start[Define Presentation Topic]
    Structure[Generate Presentation Structure]
    Content[Create Slide Content]
    Visual[Design Visuals]
    Format[Format Slides]
    Review[Review & Refine]
    
    Start --> Structure
    Structure --> Content
    Content --> Visual
    Visual --> Format
    Format --> Review
    Review -->|Iterate| Content
    
    subgraph "AI Assistance"
        direction LR
        OutlineGen[Outline Generation]
        ContentSuggestion[Content Suggestions]
        VisualIdeas[Visual Design Ideas]
        DataVisualization[Data Visualization]
    end
    
    Structure -.-> OutlineGen
    Content -.-> ContentSuggestion
    Visual -.-> VisualIdeas & DataVisualization
    
    style Start fill:#f9d5e5,stroke:#333,stroke-width:1px
    style Review fill:#c7ceea,stroke:#333,stroke-width:1px
    style OutlineGen fill:#e3eaa7,stroke:#333,stroke-width:1px
    style VisualIdeas fill:#ffd3b6,stroke:#333,stroke-width:1px

Generative AI can be a powerful tool for designing and structuring professional presentations.

How Generative AI Can Help

  1. Organizing Content: Use AI to outline your presentation structure, ensuring logical flow and completeness.
  2. Creating Visuals: Generate custom images, graphics, or charts to enhance the visual appeal of your slides.
  3. Writing Slide Content: Craft concise and impactful slide text tailored to your audience.
  4. Design Suggestions: Get recommendations for layouts, color schemes, and fonts to match your presentation’s theme.

Example Prompts

Structuring a Presentation

“I’m a product designer at a headphones brand. I’m putting together a presentation for my team about what new features should be included in our next product line. The presentation includes findings from our market research on features that our 18-to-34-year-old customers want their headphones to have. These features include new colors, the ability to control playback with head movements, and noise-canceling capabilities.

Consider the relationship between our demographics’ disposable income and their most important considerations when buying headphones. How should I structure my presentation? List each slide’s topic with its key points and visuals.”

Creating Visuals for the Presentation

“Generate close-up images of a pair of sleek, silver headphones on a desk in a college dorm room. They should have musical notes floating around the headphones to show that they’re playing music.”

Use AI as a Creative or Expert Partner

flowchart TD
    subgraph "Advanced Prompting Techniques"
        PC[Prompt Chaining<br>Connect a series of prompts]
        COT[Chain of Thought<br>Ask AI to explain reasoning]
        TOT[Tree of Thought<br>Explore multiple reasoning paths]
    end
    
    PC --> PCE[Example:<br>Novel marketing plan<br>1. Generate summaries<br>2. Create tagline<br>3. Design marketing plan]
    
    COT --> COTE[Example:<br>Explain your thought process<br>step by step]
    
    TOT --> TOTE[Example:<br>Imagine three different<br>designers pitching ideas]
    
    subgraph "AI Agents"
        SIM[Simulation Agent<br>Agent SIM]
        EXP[Expert Feedback Agent<br>Agent X]
    end
    
    style PC fill:#f9d5e5,stroke:#333,stroke-width:1px
    style COT fill:#e3eaa7,stroke:#333,stroke-width:1px
    style TOT fill:#b5ead7,stroke:#333,stroke-width:1px
    style SIM fill:#c7ceea,stroke:#333,stroke-width:1px
    style EXP fill:#ffd3b6,stroke:#333,stroke-width:1px

Generative AI can be leveraged not only as a tool but as a creative or expert partner to enhance problem-solving, content creation, and skill-building.

Advanced Prompting Techniques

Prompt Chaining

Prompt chaining guides the AI tool through a series of interconnected prompts, adding layers of complexity along the way.

Prompt Chaining Diagram

Example Scenario:
You’re an author who has written a novel and now needs a marketing plan.

  1. Generate Summaries:
    Prompt:
    “Generate three options for a one-sentence summary of this novel manuscript. The summary should be similar in voice and tone to the manuscript but more catchy and engaging.”

    Output Example

  2. Create a Tagline:
    Prompt:
    “Create a tagline that is a combination of the previous three options, with a special focus on the exciting plot twist and mystery of the book. Find the catchiest and most impactful combination.”

    Output Example

  3. Design a Marketing Plan:
    Prompt:
    “Generate a six-week promotional plan for a book tour, including what locations I should visit and what channels I should utilize to promote each stop on the tour.”

    Output Example

Chain of Thought Prompting

Chain of thought prompting involves asking AI to explain its reasoning step by step. This is especially useful for identifying errors and improving decision-making.

Prompt:
“Explain your thought process step by step.”

Chain of Thought Diagram

Tree of Thought Prompting

Tree of thought prompting allows you to explore multiple reasoning paths simultaneously, making it valuable for abstract or complex problems.

Example Prompt:
“Imagine three different designers are pitching their design to me. Each designer writes one step of their thinking and shares it with the group. If any expert realizes they’re wrong at any point, they leave. The question is: Generate an image that’s visually energetic, featuring art supplies and computers. Show me three suggestions in different styles from simple to detailed.”

Tree of Thought Diagram

Follow-up Prompt:
“I like the first option. Expand the idea and generate three different color schemes for that concept.”

Pro Tips for Prompting

  1. Combine chain-of-thought and tree-of-thought techniques by asking AI to explain its reasoning at each iteration.
  2. Use meta-prompting: Ask AI to help you generate the next prompt when you’re stuck.

AI Agents

AI agents are specialized virtual assistants designed to help with specific tasks or provide expert feedback.

Types of AI Agents

  1. Simulation Agent (“Agent SIM”):
    Simulates scenarios, such as role-playing exercises.

    Example Prompt:
    “Act as a career development training simulator. Your task is to help interns master interview skills and conduct conversations with potential managers. Support these types of conversations:
    - Articulating strengths and skills
    - Communicating professionally and confidently
    - Discussing future career goals
    Continue the role play until the intern replies with ‘JAZZ HANDS’. Then provide key takeaways from the simulation and areas for improvement.”

    Simulation Agent Example

  2. Expert Feedback Agent (“Agent X”):
    Acts as a tutor or consultant to provide feedback.

    Example Prompt:
    “You’re my potential client, the VP of Advertising at a world-famous sports car company known for innovation and performance. Critique my answers, ask follow-up questions, and provide feedback until I say ‘BREAK.’ Summarize areas for improvement after the session.”

    Expert Agent Example

Designing Effective AI Agents

  1. Assign a persona to the agent.
    Assigning a Persona
  2. Provide context and detail about the scenario.
    Providing Context
  3. Specify conversation types and interaction rules.
    Specifying Rules
  4. Define a stop phrase for ending interactions.
    Defining a Stop Phrase
  5. Request feedback after the interaction.
    Requesting Feedback

Rules to Prompt Engineering

Rule Ineffective Approach Effective Approach
Rule 1: Ditch the fluff “Can you please write me a short story about a robot and a dog who go on adventure together?” “Write a short story about a robot and a dog going on an adventure”
Rule 2: Be Descriptive “A blog post about the economics of the Middle East in the 1960s” “Write a 1000-word blog about the economic situation of Kuwait from 1961 to 1967, aimed at beginners, in a conversational tone”
Rule 3: Context & Specifics “Write a blog post about social media marketing” “Write a 1000-word blog post about digital social media marketing for beginners, using a conversational tone, targeting a general audience, and dividing it into 5 parts, each with a short list”
Rule 4: Use role play “Explain the legal process for patenting an invention” “You are a patent lawyer. Explain the legal process for patenting an invention in simple terms for a non-legal audience”
Rule 5: Use Limitations “Write about renewable energy” “Write a 200-word summary on the benefits of solar energy, avoiding technical jargon, and focusing on environmental advantages”
Rule 6: Use Iterative Prompting Single complex prompt Start simple and build with follow-up prompts that refine the request
Rule 7: Specify Output formats “Tell me about the history of computers” “Write a timeline of major events in computer history, formatted as a bulleted list. Include 5-7 key milestones, with one sentence explaining each”
Rule 8: Provide examples “Write a chord progression in the style of the Beach Boys” “Write a chord progression in the style of the Beach Boys. Here is an example: [your example]”
Rule 9: Use Chain-of-Thought “Explain the pros and cons of renewable energy” “Explain the pros and cons of renewable energy by addressing the following: Environmental impact, Economic considerations, Availability and scalability, Long-term sustainability”
Rule 10: Split huge prompts “Explain the causes, effects, and potential solutions for climate change” Break into multiple focused prompts: “1. List the top three causes of climate change” followed by effect and solution prompts
Rule 11: Ask for help with prompting Direct question “Refine this prompt to make it clearer and more effective: ‘Explain the causes, effects, and potential solutions for climate change’”

Parameters

Parameters are essentially settings you can adjust to control how an AI responds to your prompts.

flowchart TD
    subgraph "Key Parameters"
        T[Temperature<br>Controls randomness/creativity]
        MT[Max Tokens<br>Controls response length]
        TP[Top-p<br>Controls word diversity]
        TK[Top-k<br>Limits word selection pool]
    end
    
    T -->|High 1.0| TC[Creative<br>Unpredictable<br>Varied]
    T -->|Low 0.2| TS[Focused<br>Deterministic<br>Predictable]
    
    MT -->|High| MTL[Longer<br>Detailed<br>Comprehensive]
    MT -->|Low| MTS[Concise<br>Brief<br>To the point]
    
    TP -->|1.0| TPH[Full vocabulary<br>Maximum diversity]
    TP -->|0.3| TPL[Limited vocabulary<br>Most probable words]
    
    style T fill:#f9d5e5,stroke:#333,stroke-width:1px
    style MT fill:#e3eaa7,stroke:#333,stroke-width:1px
    style TP fill:#b5ead7,stroke:#333,stroke-width:1px
    style TK fill:#c7ceea,stroke:#333,stroke-width:1px

Key Parameters and Their Functions

  1. Temperature:
    The “randomness dial” that determines how creative or focused the AI’s responses are.
    • High Temperature (e.g., 1.0): Produces creative, chaotic, and unpredictable outputs.
    • Low Temperature (e.g., 0.2): Results in structured, deterministic, and rule-abiding responses.
  2. Max Tokens:
    Controls the maximum length of the AI’s response.
    • A lower value limits the output length, making it concise.
    • A higher value allows the AI to provide detailed and extended answers.
  3. Top-p (Nucleus Sampling):
    Influences the creative diversity of the response by narrowing or expanding the pool of words considered.
    • A value of 1.0 includes all possible words (high diversity).
    • A lower value (e.g., 0.3) focuses on only the most probable options, reducing randomness.
  4. Top-k:
    Limits the number of options the AI considers when selecting the next word.
    • A lower value forces the AI to pick from only the most likely words.
    • A higher value increases the number of potential choices, enhancing creativity.

Practical Usage

Every language model handles parameters differently, so the syntax for specifying them varies:

  • In ChatGPT/Claude/Gemini, parameters are formatted like temperature:0.7.
  • In Mistral, parameters use an equal sign, e.g., temperature=0.7.

Image Generation

flowchart LR
    subgraph "3-Step Framework for Image Prompts"
        S[1. Subject<br>What's in your image]
        D[2. Description<br>Context and details]
        A[3. Style/Aesthetic<br>How it should look]
    end
    
    S -->|Examples| SE["A fluffy black cat<br>A futuristic spaceship<br>A serene mountain lake"]
    D -->|Examples| DE["...soaring through stormy clouds<br>...abandoned in a desert<br>...at sunset with reflections"]
    A -->|Examples| AE["Oil painting<br>Photorealistic<br>Anime style<br>Cyberpunk aesthetic"]
    
    S --> D --> A --> Final[Final Prompt]
    
    style S fill:#f9d5e5,stroke:#333,stroke-width:1px
    style D fill:#e3eaa7,stroke:#333,stroke-width:1px
    style A fill:#b5ead7,stroke:#333,stroke-width:1px
    style Final fill:#c7ceea,stroke:#333,stroke-width:1px

Image generation with AI is an incredible blend of creativity and technology. At its core, it uses diffusion—an AI process that refines noise bit by bit, turning chaos into something stunning.

The 3-Step Framework for Killer Image Prompts

  1. Subject:
    The foundation of your image, like the main character of your visual story. This is usually a noun (dog, spaceship, guitar, waterfall).
    • For better results, spice it up with adjectives.
    • Example: A fluffy black cat with glowing green eyes
  2. Description:
    Add context—what’s your subject doing? How are they doing it? What’s happening around them? Details make all the difference.
    • Example: A red dragon soaring through stormy clouds, lightning illuminating its scales as it breathes fire into the night
  3. Style/Aesthetic:
    Think of this as picking the filter for your image. Decide how you want it to look:
    • Is it a photo or a painting?
    • What’s the art style (impressionist, surreal, 3D render, etc.)?
    • Example: A 3D render of a futuristic cityscape at sunset with neon lights glowing

Rules for Image Generation Prompting

Rule Ineffective Approach Effective Approach
Rule 1: Don’t overthink it - Describe the image as you would to a friend “cat, urban street, cyberpunk, neon, nighttime, high quality” “A sleek black cat perched on a rain-slicked urban street in a glowing cyberpunk city at night. Neon signs in electric blues and purples reflect off the wet pavement, casting a dreamy glow. The cat’s cybernetic eyes shimmer softly as it watches hover cars zip through the misty air in the background”
Rule 2: Find the right prompt length for your image complexity “A snowy mountain range at sunrise, golden light hitting icy peaks, with a lone climber in the distance” “A stunning snowy mountain range illuminated by the warm glow of sunrise. Golden light glints off icy peaks, contrasting against the deep blue shadows. A lone climber in vibrant gear scales the ridge, surrounded by an expanse of untouched snow”
Rule 3: Use negative prompting to exclude unwanted elements “Generate me an image of a serene beach scene with crystal clear water and white sand” “Generate me an image of a serene beach scene with crystal clear water and white sand, exclude trees”
Rule 4: Specify resolution and layout - “Generate me an image of a cat, 4k, high resolution, detailed textures, landscape orientation”

Key Tips for Crafting Prompts

  • Be as specific as possible to avoid ambiguity
  • Think about the mood, color palette, and perspective (e.g., wide shot, close-up)
  • Test and iterate—AI models often improve results with refined instructions
  • Use negative prompting to exclude unwanted elements
  • Specify resolution and quality settings as needed
  • Consider including reference to a specific artist or style for more distinctive results