Dynamic prompting
Generating or modifying prompts at runtime based on user input, context, or data — not using static templates.
Think of it like
A restaurant menu that changes based on what ingredients arrived that morning.
Example
If user is a beginner, use detailed prompts with examples. If expert, use terse technical prompts.
How it actually works
Dynamic prompts improve relevance and efficiency. You adapt to context: user expertise, task type, history. Strategies: (1) select different templates based on routing, (2) inject context-specific examples, (3) adjust constraints dynamically.
For product teams
Better UX through personalization.
For engineers
Add conditional logic. Fetch examples or templates based on context. Log which prompts you generated for debugging.
Related
- Prompt template — Related to prompt templates and registry.
- Exemplar selection — Combines with exemplar selection.
Read anything AI without the jargon
Look up any term in plain English, or save terms as you read with the free Chrome extension.
Open DecoderAdd to Chrome