Open WebUI Prompts turn the instructions you type again and again into slash commands. Save a prompt once as /summarize, and typing that command in any chat inserts the full text. Add input variables and users get a small form with dropdowns, date pickers and text boxes before the prompt is sent.
Prompts are one of the quickest wins in a self-hosted Open WebUI setup, for you alone or for a whole team. They also keep full version history, so a bad edit is easy to undo.
This guide covers creating a prompt, system variables, form variables with every input type, message modifiers, version history, sharing, import and export, ready-to-copy examples and fixes. It follows the official Open WebUI documentation as of December 2026.
- Create: Workspace > Prompts > Create, set a Name, a Command such as
/summarizeand the Prompt Content. - Use: type
/in the chat box and pick the prompt. - Auto values:
{{CURRENT_DATE}},{{USER_NAME}},{{CLIPBOARD}}fill in automatically. - Forms:
{{priority | select:options=["High","Low"]:required}}shows a dropdown. Fields are optional unless:required. - History: every content change is a version you can compare and set live again.
- Avoid: the reserved commands
compact,status,forkandmodel.
Why Use Prompts
- Stop retyping: bug reports, meeting minutes, code reviews and content briefs become one command.
- Forms for everyone: non-technical users fill in fields instead of editing raw text.
- Rollback: every content change is tracked with who made it.
- Team control: share with users or groups, or make a prompt public for everyone.
- Tidy library: tags for filtering and an enable/disable toggle instead of deleting.
Prompts are different from a model’s system prompt. A saved prompt is text you insert into a message. A system prompt sits behind a custom model and applies to every chat; see our Open WebUI custom models guide for that.
Create Your First Prompt
- Open Workspace > Prompts and click Create in the Workspace header.
- Enter a Name, for example “Summarize text”.
- Add Tags such as
writingto filter later. - Set the Command, for example
/summarize. - Write the Prompt Content: “Summarize the following in 5 bullet points for a busy reader: {{CLIPBOARD}}”.
- Optionally add a Commit Message, such as “first version”.
- Save, then open a chat, type
/sumand pick the prompt.
The Access setting controls who can view and use the prompt and needs the Prompts Sharing permission. Not running Open WebUI yet? Start with our Open WebUI with Ollama setup guide.
Compare revision above the content box opens an empty Proposed revision pane. Paste a rewritten version, for example one a model improved, click Compare to see the changes, then Apply to draft and save.
System Variables
These are replaced automatically when the prompt runs.
| Variable | Inserts |
|---|---|
{{CLIPBOARD}} |
Your clipboard text (needs HTTPS or localhost) |
{{CURRENT_DATE}}, {{CURRENT_TIME}}, {{CURRENT_DATETIME}} |
Date and time |
{{CURRENT_WEEKDAY}}, {{CURRENT_TIMEZONE}} |
Day of the week and timezone |
{{USER_NAME}}, {{USER_EMAIL}}, {{USER_ROLE}} |
Your name, email and role |
{{USER_LANGUAGE}} |
Your selected language |
{{USER_BIO}}, {{USER_AGE}}, {{USER_BIRTH_DATE}}, {{USER_GENDER}} |
Profile fields from Settings > Account (left as is if empty) |
{{USER_LOCATION}} |
Browser location, or LOCATION_UNKNOWN if blocked |
{{USER_GROUPS}} only works in model system prompts and task templates. In a slash-command prompt it stays as literal text.
Input Variables and Forms
Any custom variable in the content creates a form field. A plain {{topic}} gives a one-line text box. A typed variable uses this pattern:
{{variable_name | type:property="value"}}
{{title | text:required}}
{{notes | textarea:placeholder="Additional context (optional)"}}
All fields are optional by default (since v0.5.0). Add :required to make one mandatory.
| Type | Field | Example |
|---|---|---|
| text | One-line text (default) | {{name | text:placeholder="Enter name":required}} |
| textarea | Multi-line text | {{description | textarea:required}} |
| select | Dropdown | {{priority | select:options=["High","Medium","Low"]}} |
| number | Number box | {{count | number:min=1:max=100:default=5}} |
| checkbox | On/off | {{details | checkbox:label="Include analysis"}} |
| date, time, datetime-local | Pickers | {{start_date | date:required}} |
| range | Slider | {{rating | range:min=1:max=10}} |
| color | Color picker | {{brand | color:default="#FFFFFF"}} |
| email, url, tel | Validated fields | {{website | url:required}} |
| month | Month and year (Chrome/Edge) | {{billing_month | month}} |
| map | Map coordinates (experimental) | {{location | map}} |
Important: this form syntax only works inside saved prompts. In a model’s system prompt it reaches the model as plain text. System prompts use chat variables instead, such as {{chat.variables.name | text:required}}.
Message and Prompt Modifiers
These matter most in task model templates (title, tag and follow-up generation), where long pasted documents can waste context.
| Syntax | Result |
|---|---|
{{prompt:start:N}} |
First N characters of the prompt |
{{prompt:end:N}} |
Last N characters |
{{prompt:middletruncate:N}} |
Start and end, N characters in total |
{{MESSAGES:END:5}} |
Last 5 messages |
{{MESSAGES:START:5}} |
First 5 messages |
{{MESSAGES|middletruncate:500}} |
Every message cut to 500 characters |
{{MESSAGES:END:2|middletruncate:500}} |
Last 2 messages, each capped at 500 characters |
A colon picks how many messages; a pipe limits characters per message. {{MESSAGES:MIDDLETRUNCATE:500}} selects 500 messages, not 500 characters.
Ready-to-Use Examples
Bug report (/bug_report)
Generate a bug report with the following details:
**Summary:** {{summary | text:placeholder="A brief summary of the issue":required}}
**Priority:** {{priority | select:options=["Critical","High","Medium","Low"]:default="Medium":required}}
**Steps to Reproduce:**
{{steps | textarea:placeholder="1. Go to... 2. Click on... 3. See error...":required}}
**Additional Context:** {{additional_context | textarea:placeholder="Browser, OS, screenshots"}}
Please format this into a clear and complete bug report document.
Meeting minutes (/meeting_minutes)
# Meeting Minutes
**Date:** {{meeting_date | date:required}}
**Title:** {{title | text:placeholder="e.g., Weekly Team Sync":required}}
**Attendees:** {{attendees | text:placeholder="Comma-separated names":required}}
## Discussion
{{agenda_items | textarea:required}}
## Action Items
{{action_items | textarea:placeholder="Action, owner, deadline"}}
Format this into a clean, professional meeting summary.
Daily planner (/plan_day)
Today is {{CURRENT_WEEKDAY}}, {{CURRENT_DATE}}. I am {{USER_NAME}}.
My tasks: {{tasks | textarea:required}}
Hours available: {{hours | number:min=1:max=12:default=6}}
Build a realistic schedule with breaks, hardest task first.
Version History
Each save that changes the content creates a version. Renaming, re-tagging or changing the command does not. In the editor, the history menu above the content starts on Live.
- Preview: click a version to view it read-only.
- Compare to current: see a Split or Unified diff against the live version (up to 5,000 lines).
- Edit as new version: edit old content and save it as a new version. Set as Production starts unticked, so the live prompt stays until you tick it.
- Set as Production: restore that version as the live one.
- Delete: remove a version from its ••• menu. The live version cannot be deleted.
Anyone who can view a prompt can compare its versions. Editing, going live and deleting need write access.
Share Prompts
Private prompts stay in your workspace. Shared prompts go to chosen users or groups, and public prompts appear in everyone’s / list.
With the Prompts Sharing permission, open the ••• menu on a prompt in Workspace > Prompts and choose Access; changes save straight away. Set up groups first with our Open WebUI users, groups and permissions guide.
Import and Export
- Export JSON in the Workspace header saves every prompt you can read. Export in a prompt’s ••• menu saves one. Needs the Export Prompts permission.
- Import JSON reads only
command,nameandcontent. Imported prompts arrive enabled, untagged and private. Needs Import Prompts. - Exports carry no version history.
- A command that already exists on the instance, for any user, is skipped and the rest still import.
Tips for Better Prompts
- Use clear names like
{{your_name}}, not{{var1}}. - Add placeholder text and sensible defaults to every field.
- Mark only truly essential fields
:required. - Keep public prompts few; they crowd every user’s
/menu. - Disable old prompts instead of deleting them.
- For a repeating job, run a prompt on a schedule with Open WebUI Automations.
Troubleshooting
“Failed to read clipboard contents”
Browsers only allow clipboard reading over HTTPS or localhost. On a LAN address over http://, {{CLIPBOARD}} stays unchanged. Put Open WebUI behind HTTPS.
“Location access not allowed”
The browser blocked or timed out the location request, so LOCATION_UNKNOWN is inserted. Use HTTPS and allow location.
My form does not appear
Check the syntax: a space, a pipe and the type, like {{name | text}}. Form syntax does nothing in a model system prompt.
Typing my command runs something else
compact, status, fork and model are built-in commands. Pick another name.
“This command is already registered”
Commands are unique across the whole instance. Choose a different command.
Old bookmarks to prompts broke
Prompt URLs changed from command-based to ID-based in the versioning update. Open the prompt from Workspace > Prompts again.
My prompt is missing from the / list
It may be disabled, or you lack read access. Check the toggle and Access settings.
FAQ
Are Open WebUI Prompts free?
Yes. They are part of self-hosted Open WebUI.
What is the difference between a prompt and a skill?
A prompt inserts text into your message. A skill is an instruction set the model loads when a task needs it.
Can I use prompts with Ollama models?
Yes. Prompts work with any model connected to Open WebUI.
Can a prompt pick a model?
No. A prompt only inserts text. Pair it with a custom model for a fixed model and system prompt.
Can I undo a bad edit?
Yes. Open the history menu, pick an earlier version and choose Set as Production.
Do imported prompts keep their tags and sharing?
No. Import reads only the command, name and content. Add tags and sharing again.



