AI Assist Bar
AI-powered snippet builders for DSL authoring
AI Assist Bar Overview
The DslAssistBar provides AI-powered snippet builders that help you write Echo DSL constructs without memorizing syntax. Describe what you want in natural language, and the assist bar generates the correct DSL snippet.
Snippet Builders
The assist bar offers context-aware suggestions for common DSL patterns:
- Variable insertion - Type a variable name, get the correct
{{var}}syntax with defaults - Conditional blocks - Describe the condition, get a properly structured IF/ELSE block
- Section creation - Name a section, get the syntax for defining and referencing it
- Operator lookup - Search for operators by description (e.g., “check if greater than”)
How to Use
- Open the playground and focus the editor
- Click the assist bar or use the keyboard shortcut
- Describe what you want to add (e.g., “add a conditional for premium users”)
- Review the generated snippet and insert it at your cursor position
Context Awareness
The assist bar reads your current template to provide relevant suggestions. It knows which variables you have already defined, which sections exist, and what operators are available for the types of variables in your template.