Appearance
Protected Prompt Logic
BetterPrompt lets you publish prompts without revealing the full text of your carefully engineered instructions.
This is what we mean by protected prompt logic: users can run your prompt and see the inputs, but they can't copy or inspect the hidden parts that make it work so well.
What stays hidden
When you publish with protected logic, BetterPrompt keeps the following private:
- System instructions and roles (e.g. "You are a senior marketer specializing in writing high-converting email content.").
- Detailed step‑by‑step guidance you give the model.
- Examples and few‑shot prompts you've crafted to shape behavior.
- Any other internal structure or tricks you use to get great results.
- Any referenced images you use to guide the model.
Users see:
- The title, description, and tags for your prompt.
- The inputs they need to fill in.
- Sample outputs you've chosen to publish.
They never see the full underlying text that glues everything together.
How protected logic works at run time
When someone runs your prompt:
- They fill in the inputs you've defined (text and/or images).
- BetterPrompt combines those values with your hidden logic on the server.
- The combined prompt is sent securely to the AI provider.
- The output is returned to the user—not the full prompt text.
At no point is the complete hidden prompt logic exposed to the runner.
Why this matters for authors
Protected prompt logic lets you:
- Share and monetize your work without giving away the "secret sauce".
- Invest more in crafting and refining prompts, knowing your work is not trivially copy‑pasted.
- Stay flexible: you can keep improving the hidden logic while users continue to rely on the same inputs and surface.
It's the foundation that makes BetterPrompt a safe place to treat prompts as real products rather than disposable snippets.
Tips for designing with protected logic
To take advantage of protection:
- Put as much of your expertise and structure as possible in the hidden part of the prompt.
- Use clear placeholder inputs so users can still understand how to interact with your prompt.
- Pair protected logic with good samples so people can trust what they're getting before they run it.
This combination—strong hidden logic, clean inputs, and great samples—is what makes a published prompt feel like a polished app.