[GH-ISSUE #4470] More variables in chat and system prompt #116934

Closed
opened 2026-05-20 18:41:28 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @sebdanielsson on GitHub (Aug 8, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4470

Is your feature request related to a problem? Please describe.
To make chats more useful for everyday tasks, it would be nice to be able to use more contextual information via the browser APIs.

Describe the solution you'd like
Similarly to the {{clipboard}} variable I would like to have access to variables like:

Variable Returned Information Short Description
{{location}} JSON object with latitude, longitude, accuracy, and timestamp of retrieval. Get the user's location. Use pipelines to get additional details like street, city, country, etc.
{{datetime}} JSON object with UNIX timestamp, UTC timezone, weekday, date, month, year, and time. Get the browser's date and time. Use a pipeline for more complex calculations.
{{language}} User's browser language. Get the user's browser language.

These are just some thoughts on how it could work but I'm sure the idea can be improved upon.

Originally created by @sebdanielsson on GitHub (Aug 8, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/4470 **Is your feature request related to a problem? Please describe.** To make chats more useful for everyday tasks, it would be nice to be able to use more contextual information via the browser APIs. **Describe the solution you'd like** Similarly to the {{clipboard}} variable I would like to have access to variables like: | Variable | Returned Information | Short Description | |----------------|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------| | `{{location}}` | JSON object with latitude, longitude, accuracy, and timestamp of retrieval. | Get the user's location. Use pipelines to get additional details like street, city, country, etc. | | `{{datetime}}` | JSON object with UNIX timestamp, UTC timezone, weekday, date, month, year, and time. | Get the browser's date and time. Use a pipeline for more complex calculations. | | `{{language}}` | User's browser language. | Get the user's browser language. | These are just some thoughts on how it could work but I'm sure the idea can be improved upon.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#116934