Back to Glossary

Prompt Engineering

Synonyms: prompt design, prompt crafting, LLM prompting, prompt authoring, AI instruction design

Do not index

Definition

Prompt engineering in UX is the practice of strategically designing, refining, and optimizing inputs (prompts) to get predictable, high-quality, and useful outputs from Generative AI models.
It shapes how AI features behave inside a product by controlling the instructions, context, and constraints given to the model.
For UX teams, prompt engineering affects output quality, tone, reliability, and user trust.

Use cases

Weak prompts create inconsistent outputs, confusing interactions, and unreliable AI behavior.
  • Consistent AI personality: Without structured prompts, chatbots can shift unpredictably in tone or behavior. Designers use system prompts to define personality, guardrails, and response style.
  • Context-aware generation: AI tools produce generic results unless prompts include relevant context like brand voice, product info, or user goals.
  • Focused summarization: Designers engineer prompts to prioritize key insights, pain points, or patterns instead of generating shallow summaries.

How it's used in practice

  • Designing dynamic prompts: Instead of hard-coded inputs, create flexible prompt structures that combine user input with system instructions and relevant context.
  • Defining guardrails: Prompts should clearly restrict harmful, misleading, or off-topic outputs to reduce hallucinations and unsafe behavior.
  • Testing and iteration: Teams often test multiple prompt versions to compare output quality, consistency, and task success rates.
  • Developing a prompt design system: As products grow, teams may build reusable prompt templates and shared patterns to maintain consistency across AI features.
🪄
Pro-tip: Avoid putting every instruction into one massive prompt.
Smaller prompts chained together are often easier to test, debug, and improve over time.

Challenges & limitations

  • Non-determinism: Even with identical prompts, GenAI models can produce slightly different outputs each time, making consistency difficult.
  • Model vulnerability: Prompt injection attacks can manipulate the AI into ignoring instructions or exposing restricted behavior.

Free resources

  • OpenAI Cookbook — Open-source examples and recipes for prompting in production.
 
notion image

Share this post

Get free UX resources

Get portfolio templates, list of job boards, UX step-by-step guides, and more.

Download for FREE
 
 
 

The best email 📮 for growing 🌱 designers

 
Honest notes about the work behind the work. Read in 2 minutes, weekly. Free forever.
 
 
     
    notion image
     
    Join 13,045 designers and get tactics, hacks, and tips.