If you're not familiar with input variables and their function, we recommend reviewing them before proceeding. ;-) Input Variable "Text" Type allows you to replace variables with text, making your prompts more dynamic and tailored to your needs. In this article, we’ll break down what this input type is, how to use it, and some handy tips to ensure you get the most out of it.
What is Input Variable Text Type?
The Input Variable Text Type is the simplest form of input in Promptitude. It allows you to insert text (also known as a string) into your prompts. The beauty of this input type is that it doesn’t have a limit; instead, the length of the text you can input depends on your specific configuration.
📌 Basic Fields: Required Information
To set up your Input Variable Text Type, you’ll need to fill out a few basic fields:
Label: This is the field ID that identifies your variable.
Type: Here, you’ll select "Text" as the variable type.
Name: This is the ID in double brackets that places the variable within your indicator.
Use the Copy icon to easily insert the exact variable name into your message.
Default Value: This is a placeholder value that helps you test your variable easily.
If you have long content, you can upload a TXT file to simplify the process of copying and pasting.
Content Limit: Set a maximum number of words for the input if needed.
📌 Advanced Fields: Optional Enhancements
In addition to the basic fields, you have some optional advanced fields that can enhance your input visually when used in the form:
Help Text: This is additional information that can guide users on how to use the variable.
Placeholder: This text appears within the field to provide hints on what to enter.
Display: You can configure whether the field is mandatory or optional and choose its display size (from S to XL), allowing for 1 to 10 lines of text.
👌🏻 Tips for Effective Use
To ensure your prompts work smoothly, here are some helpful tips:
Avoid Strange Characters: Refrain from using unusual symbols or codes that might confuse the AI. Stick to standard text.
Long Text Inputs: If you need to include lengthy text, place it within triple quotes in your prompt. For example:
"""{{input_name}}"""
. This tells the system that it’s context, not an instruction.Preview Your Prompt: Always use the Preview Prompt feature to ensure that everything is functioning as expected.
✏️ Example in Action
To see the Input Variable Text Type in action, try a short example from our inspiration library. You’ll notice that the field where users add content to be analyzed is a text-type input. Check it out here: Suggest content improvements.
Remember, the key is to keep your inputs clear and straightforward, ensuring that your prompt users can easily interact with your form.
Happy prompting!