Understanding the Types of Text Input
In AI Studio, when configuring a User Input of type “Text”, you’ll have two main options:Short Text Field
Ideal for when you need the user to provide short and objective information, such as a name, a number, a keyword, a URL, or a title.
Long Text Field
Perfect for situations where the user needs to provide a larger volume of information, such as a paragraph of instructions, a block of text to be analyzed, or a detailed description.

Our Example Project: The Scriptwriter Agent
Let’s create an example agent capable of developing a script for voiceover on a central theme, with a specific duration. Remember that creating an agent goes through the stages of idea design, development, testing and refining the prompt, up to its effective creation.Initial Setup
In AI Studio, create a new agent. For this example, a Chat or Text Agent is ideal. Keeping the default selection of “All LLM” will also work perfectly, and I’ll allow the end user to choose:

Developing the Prompt (simpler version)
We’ll use a more concise prompt that will work for now and will fill the prompt field:
Assume the persona of a senior scriptwriter and storyteller, specializing in creating engaging narratives for documentary and institutional videos. Your mission is to develop an original and impactful script for a professional voiceover, addressing the following theme: [The variable will go here] The script must be structured with an introduction that sparks curiosity, a development that explains the topic clearly and smoothly, and a memorable conclusion. Use language that is both elegant and accessible, focusing on creating strong mental images for the listener. The final result must be only the text to be narrated, pure and clean, without any kind of special formatting, character names (such as ‘Narrator:’), titles, or scene directions. Deliver a text that is ready to be recorded.

Configuring the User Input
Now we’ll create the field that the end user will fill with the theme. Since we’ll use only one variable, we’ll need just one field.
Remember the Essential Connection: The agent’s success depends on the exact match between the Variable Name (tema) and where it will appear in the prompt. That’s how the AI knows where to insert the user’s information.
- Click “Add User Input” and select short text
- In the “Variable Name” field, type exactly tema.
- In the “Label” field (what the user will see), type something friendly, such as “What is the script theme?”.


Saving and Testing
With the prompt and the single input configured, name your agent, click “Save”, and then “Preview”.





The beauty of AI Studio is that you can start with an agent like this—simple and functional—and then, if necessary, add more complexity. You could, for example, create a new version of this agent and add a second User Input for “Tone of Voice” (e.g., “Serious”, “Relaxed”, “Inspiring”), making your tool even more powerful.

