mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 17:02:01 -05:00
[GH-ISSUE #2933] feat: Import/Export Default Prompt Suggestions as JSON File #13071
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 @silentoplayz on GitHub (Jun 8, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/2933
Is your feature request related to a problem? Please describe.
Default Prompt Suggestionsused for quickly selecting a prompt on an empty new chat page. Currently, the default prompt suggestions can only be set up by the user manually filling out thetitle,subtitle, andpromptfields for each prompt they want to display on each blankNew Chatpage. However, there is no built-in feature to import or export these default prompt suggestions, making it inconvenient for users to share their prompts, back them up, or restore them in the event of a loss of data.Describe the solution you'd like
Describe alternatives you've considered
title,subtitle, andpromptfields for each prompt I wanted to add. However, this method is not an efficient way to manage prompts, as the task is tedious and repetitive.The import/export functionality should support the following format (please note this this is also just an example, but I feel this is as good format to use):
prompts: A JSON object containing an array of prompt objects, where each prompt object has the following properties:title(string, required): A short title for the prompt.subtitle(string, optional): A subtitle for the prompt.prompt(string, required): The text of the prompt.Here is an example of what an exported JSON file for default prompt suggestions might look like (should also be ready for importing):
I believe the
+button for adding a newDefault Prompt Suggestionshould rather open up a menu of two options to choose from:Add New&Import from JSON file. I've yet to come up with an ideal placement of the button for the ability to export default prompt suggestions in JSON file format..jsonfile extension. The import function should allow users to select a.jsonfile from their local file system.Additional context