🛠️Prompt Template
Also known as Prompt Templates, Templated Prompt
A prompt with blanks that a program fills in each time it runs.
Think of it like
Think of it like a form letter with blanks. You fill in the name and the date each time.
Example
Emma's app has one template for product blurbs. For each item, the code fills in the name, the price and three features, then sends it.
Why it matters
Definition
Example code
text
Write a product blurb under 40 words.
Product: {name}
Price: {price}
Key features: {features}
Tone: friendly, no hype.Common mistake
Key takeaways
- 1Fixed part and blanks. The blanks change.
- 2Filled by code. Before each call.
- 3One place to fix. Change it once.