LLM ToolsA learning lab

Interactive playground

Prompt Playground

Build a clearer prompt with a task, context, examples, and an output format. Start from a template, revise your instructions, and inspect an illustrative response.

Local demo. Responses come from a small set of templates selected by keywords. No live AI model runs here, so prompt edits may produce the same response. History is saved in this browser.

Your Prompt

0 characters 0 words 0 instructions
💡 Start typing to see prompt optimization tips

Illustrative response

Enter a prompt and click "Show demo response" to see a template-based example

Response details

Response Length: 0 words
Demo wait: 0ms
Evaluation: N/A

Prompt Templates

Creative & Writing

✍️

Creative Writing

Draft a prompt for a story, poem, or creative task

📝

Poetry

Create poems with specific themes and styles

📖

Storytelling

Develop narratives with character and plot

Analysis & Research

📊

Text Analysis

Analyze documents, articles, or literature

🔬

Research Summary

Summarize research findings and methodologies

⚖️

Comparison

Compare different concepts or approaches

Education & Learning

💡

Explanation

Explain complex concepts in simple terms

👩‍🏫

Teaching

Create lesson plans and educational content

❓

Quiz Generation

Create questions and assessments

Problem Solving

🧩

Problem Solving

Work through problems step by step

🎯

Decision Making

Evaluate options and make recommendations

📋

Planning

Create structured plans and strategies

Communication

🎭

Role Playing

Simulate conversations and scenarios

📧

Email Writing

Draft professional emails and messages

🎤

Presentation

Create presentation outlines and scripts

Technical

💻

Code Generation

Draft instructions for a coding task

🐛

Debugging

Analyze and fix code problems

📚

Documentation

Create technical documentation

Conversation History

No conversation history yet. Start prompting to build your history!

Prompt Revision Lab

Prompt Length Analyzer

Current Length: 0 characters
There is no universal ideal length. Include the information a task requires, then test the result.

Style & Tone Guide

Quick Templates

Prompting habits to practice

Be Specific

Clear, detailed prompts get better results. Instead of "Write about cats," try "Write a 300-word informative article about the history of domestic cats, including their origins in ancient Egypt and evolution as companion animals."

Show Example ↕️

Define Format

Specify how you want the response structured. Use phrases like "in bullet points," "as a JSON object," "in 3 paragraphs," or "as a step-by-step guide."

Show Example ↕️

Provide Context

Give background information and examples. Context helps AI understand exactly what you need and reduces ambiguity.

Show Example ↕️

Avoid Ambiguity

Describe the result you want: who it is for, what it should include, and how it should be structured. Add exclusions only when they help.

Show Example ↕️

Use Examples

Provide examples of the type of response you want. This is called "few-shot prompting" and helps AI understand your expectations.

Show Example ↕️

Checkable answers

Ask for checkable calculations, assumptions, or evidence when they help you evaluate an answer. An explanation is not proof that a response is correct.

Show Example ↕️

Advanced Techniques

Role Assignment: Describe the task and audience; a persona does not establish expertise.
Output Constraints: Specify the length, format, and details the answer must include.
Multiple Perspectives: Ask which assumptions could change the answer, then verify the evidence.
Progressive Refinement: Change one instruction at a time and compare results against your goal.

Keep exploring

Put the ideas into practice

Try this: write two prompts for the same task. Give one an audience, a length, and a format. Compare the instructions, then test them with a real model using the resources below.