[Problem Statement]
Currently, Glean Agent allows users to dynamically create text input fields by simply typing [[Unique Field Name]] within a Step's instructions. This is an incredibly convenient feature that speeds up the initial setup.
However, this functionality is currently limited to Text Fields only. If a user needs a different input type (such as a Date or Multiple Choice) or needs to add a description/default value, they must navigate away from the Step editor back to the "Input" trigger settings. This context-switching breaks the creative flow, especially during the iterative process of refining and rearranging steps.
[Proposed Solution]
I request an expansion of the inline field definition syntax to allow for full field configuration directly within the instruction text. Specifically:
- Support for Multiple Field Types: Allow users to specify the type of field (e.g.,
Document, Multiple Choice, Date, etc.) using an extended syntax. - Inline Configuration: Enable setting additional parameters such as Descriptions and Default Values without leaving the Step editor.
Example Syntax Suggestion:[[Field Name | type=Date | desc="Select the project deadline" | default="2026-04-01"]]
[Expected Benefits]
- Seamless Creation Workflow: Users can build and iterate on complex Agents without jumping between different configuration screens. This "write-as-you-configure" approach is much more intuitive.
- Rapid Prototyping: Being able to define multiple choice options or document requirements on the fly allows for faster testing of Agent logic.
- Improved Usability for Power Users: For those who frequently rearrange steps and logic, this feature significantly reduces the manual overhead of managing input fields separately.