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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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:
{{location}}{{datetime}}{{language}}These are just some thoughts on how it could work but I'm sure the idea can be improved upon.