Prompt
How do I let product and engineering edit prompts without code deploys?
Latest observation
Nov 17, 2026
OpenAI APIWeb search: off
A good way to do this is to move prompts out of code and into a versioned prompt store that your app reads at runtime.
Practical setup
1) Store prompts in a CMS / config system
Use something non-code people can edit, such as:
- Notion / Confluence-style workflow for drafting
- A database table or feature-flag/config service for runtime delivery
- A prompt management tool like:
- Langfuse
- Humanloop
- PromptLayer
- Vellum
- OpenAI-style prompt/version management if you have it
2) Give each prompt an ID and version
Example:
support_reply_v3classifier_v12
Your app loads the current active version by key, not hardcoded text.
3) Separate “editing” from “publishing”
Recommended workflow:
- Product/engineering edits a draft
- A reviewer approves it
- It gets published to production
- App picks it up without redeploy
This avoids accidental prompt changes breaking behavior.
4) Add runtime fetching + caching
At request time, or on a short cache interval:
- fetch the latest published prompt
- cache for speed and resilience
- fall back to the last known good version if the store is unavailable
5) Put guardrails around prompt changes
Prompts are code-like, so treat them like config with controls:
- role-based access
- approval workflow
- change history / diffs
- rollback to previous version
- test cases or evals before publish
A simple architecture
Editor UI → Prompt store → App runtime fetches by key/version → Logs/evals
Best practice
If you want product and engineering both to edit prompts safely:
- use a shared prompt editor
- keep prompts versioned
- require review for production
- run automated evals on candidate prompts
- monitor outputs after release
If you want a lightweight version
You can start with:
- a table in Postgres:
prompt_keyversioncontentstatusupdated_by
- an admin UI
- one API endpoint:
GET /prompts/{key}
That’s often enough to avoid code deploys.
If you want, I can also give you:
- a recommended stack for this,
- a database schema, or
- an example implementation in Python/Node.