Feature: Ability to add variables to custom prompts (depends on #969) #970
cstroliadavis
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
I'm sort of jumping the gun a bit on this one. It assumes that Custom Prompts (#969) are implemented and possibly also the ability to use built-in prompts (#968).
If those are done, then I think it could be very useful to include the ability to provide variables to these so that users don't need to search around in their prompt for places to tweak them.
I'm thinking that you could add them similarly to how we add other things (in template literal syntax
${}
, but it would be good if they could come with some additional data to streamline the experience. I'm thinking we could have a few "types" of inputs:boolean, shortText, longText and choice
I just rambled something into my examples, but those might look something like this:
${shortText:["Default Text Value, if any, could be a roo variable", "Field/Question Text"]}
${longText:["", "Pretty much the same as short text, but would have a larger entry window that might work like the chat window and allow for @ references"]}
${boolean:[true,"First param would be the default value followed by the Field/Question Text","Then the output for true", "and optionally the output for false"]}
${choice:[1,"Question/Field Text follows default (zero based) choice -1 is unselected", ["Choice","Result of choice"],["Choice N","Result Text of choice N, could be a roo variable value"]]}
Again, this is just a suggestion and does not really take into account the challenges of how this might happen. If there is an easier/better way to accomplish the same, go for it. I'm more results oriented than I am concerned with how we get them as long as it doesn't require too much effort on my part as a user of roo.
Reason:
For most apps that allow the saving of custom prompts, the ability to add variables is a common thing. Typically when we have a prompt, it contains some verbiage about one or more things. I would be nice if we could set up what those one or more things are without having to read through the prompt and tailor it every time.
Examples:
NOTE: There is one other feature I have in mind that I'm not ready to add to this issue, please ignore it and just focus on the prompt area:
This shows an example of how variables like these might be filled in when the prompt is selected:
Beta Was this translation helpful? Give feedback.
All reactions