[GH-ISSUE #16165] Add support for {{USER_EMAIL}} system prompt variable #56477

Closed
opened 2026-05-05 19:30:30 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @Giyeong-gian on GitHub (Jul 31, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16165

I am currently using system prompt variables like {{USER_NAME}} in Open WebUI. It works great for customizing conversations. However, I often find myself needing the logged-in user's email address in prompts for logging, personalization, or routing purposes.

Describe the solution you'd like

I would like to request a new built-in system variable: {{USER_EMAIL}}, which would automatically provide the authenticated user's email address (when available).

This would work similarly to {{USER_NAME}}, and be extremely useful in:

  • Multi-user environments
  • Organizational deployments
  • Email-based agent workflows
  • Prompt templates that need email-specific logic

Describe alternatives you've considered

Right now, the only alternative is to manually add the email address inside a custom prompt each time, which is not scalable.

Additional context

Related discussions:

Thank you for considering this feature!

Originally created by @Giyeong-gian on GitHub (Jul 31, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/16165 ### Is your feature request related to a problem? Please describe. I am currently using system prompt variables like {{USER_NAME}} in Open WebUI. It works great for customizing conversations. However, I often find myself needing the logged-in user's email address in prompts for logging, personalization, or routing purposes. ### Describe the solution you'd like I would like to request a new built-in system variable: {{USER_EMAIL}}, which would automatically provide the authenticated user's email address (when available). This would work similarly to {{USER_NAME}}, and be extremely useful in: - Multi-user environments - Organizational deployments - Email-based agent workflows - Prompt templates that need email-specific logic ### Describe alternatives you've considered Right now, the only alternative is to manually add the email address inside a custom prompt each time, which is not scalable. ### Additional context Related discussions: - USER_ROLE variable idea: https://github.com/open-webui/open-webui/issues/4764 - CHAT_ID variable suggestion: https://github.com/open-webui/open-webui/issues/14142 Thank you for considering this feature!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#56477