Prompt Templates with arguments #1335
secondtruth
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This proposal introduces the concept of Prompt Templates, leveraging Handlebars or a similiar template engine, with the ability to invoke the templates with arguments. This feature aims to add a new layer of flexibility to Chatbot UI by allowing users to use their prompts in a more dynamic way.
Suggestions and potential improvements of this proposal are always very welcome!
Examples
Prompt: words-starting-with
Usage examples:
/words-starting-with a
/words-starting-with b, 3
Prompt: greet
Usage example:
/greet a
UI/UX
In the prompt input field, arguments could be displayed like in Discord when using slash-commands.
Various types of argument inputs could be implemented: short text, long text (textarea), select box
Future Proposal: Dynamic Prompts
In building upon the previous feature concept, a future enhancement is proposed to allow prompt templates to trigger API requests, thereby enabling completely dynamic prompt generation based on external data or services. This would increase the versatility and interactivity of the prompts.
Example
Prompt: do-request
Configuration (similiar to Tool Schemas):
Usage example:
/do-request 1, 2
Beta Was this translation helpful? Give feedback.
All reactions