Skip to main content
All CollectionsPromptsWriting Prompts
How to Organize Input Variables in a Prompt
How to Organize Input Variables in a Prompt
Promptitude Team avatar
Written by Promptitude Team
Updated over 10 months ago

In the current setup of Promptitude, input variables are organized alphabetically by their 'Name'. However, we understand that this may not always be the most efficient way to manage your prompts.

This article will guide you through a simple workaround to better organize your input fields, and also share some exciting news about upcoming features.

Current Situation

At present, your input variables are sorted alphabetically. This means that the order in which they appear may not necessarily align with the flow of your prompts. This can make it a bit challenging when you want to give a specific flow to your colleagues and users.

Workaround to Organize Variable Inputs

To overcome this, you can modify the 'Name' of each input variable. Here's how you can do it:

βœ… Add a number or letter before the 'Name' field of each variable. For example, '1_question', '2_audience', '3_and_all_other_variables'. This will sort the variables by number.

βœ… Keep the 'Label' user-friendly. You can leave the 'Label' with a nice and easy-to-understand text. Just add the number or letter to the 'Name' of the variables.

βœ… Update the names in the actual prompt. After renaming your input variables, make sure to update their names in the actual prompt as well. This ensures that the new names are correct inside the braces, like this: '{{1_question}}'.

πŸ“Œ Announcement of Inclusion in the Roadmap

We're excited to announce that we're working on a more intuitive way to reorder your input variables. Soon, you'll be able to easily reorder your variables via drag and drop. This feature is currently in our roadmap, and we're looking forward to rolling it out to enhance your experience with Promptitude.

In the meantime, we hope the workaround shared above helps you manage your input variables more effectively. As always, we're here to support you in making the most of Promptitude.

Did this answer your question?