mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 17:02:01 -05:00
[GH-ISSUE #23713] feat: Refine Prompt Variables UI to include instructions and custom labels #58717
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mrkrsl on GitHub (Apr 14, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23713
Check Existing Issues
Verify Feature Scope
Problem Description
The current set-up for Prompt Variables is promising, but it lacks refinements to be useful.
I can render a form in the UI on invoking a /prompt where a variable is defined like this:
{{client_name | text:placeholder="e.g. Acme Payments Ltd":required}}This renders with the variable name
client_nameas the form label with no additional context other than theplaceholdertext inside the rendered field.Desired Solution you'd like
This request is to moderately extend the feature so that:
e.g. a prettier/human readable label canbe defined like this:
{{client_name | text:label="Client Name":placeholder="e.g. Acme Payments Ltd":required}}also, additional text can be defined surrounding the form field(s):
Alternatives Considered
Hacking the variable names so they're more meaningful for users. However,
client_requires_license_rightsis still ugly and can't include punctuation.Additional Context
No response
@Classic298 commented on GitHub (Apr 14, 2026):
could also be done using rich UI in tools and actions and execute() events if Rich UI is not the solution you are looking for here.
The prompt variables originally were meant to be quickly pastable highlighted areas you could navgiate with tab quickly - and later those variables were put in a form.
If you want more customization it might make sense to look into rich UI and actions and tools and execute event calls
Needs discussing