Field purpose
Fields define the input form users fill before running a template.
Supported field types
short_text
Use for compact values:
- audience
- product name
- language
long_text
Use for larger context:
- article body
- code diff
- meeting notes
select
Use for controlled options:
- tone: neutral, direct, friendly
- output depth: brief, standard, deep
Good field design
- Keep names stable and machine-friendly:
article_text - Keep labels human-friendly: "Article text"
- Mark only truly required fields as required
- Use default values when they save time
Example field mapping
Prompt body:
text
Explain this for {{audience}} in a {{tone}} tone:
{{article_text}}Fields:
- audience (short_text)
- tone (select)
- article_text (long_text)