You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ai/agentic-ui-generator/index.md
+64-64Lines changed: 64 additions & 64 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,125 +10,126 @@ published: True
10
10
11
11
# Telerik UI for Blazor Agentic UI Generator
12
12
13
-
The Agentic UI Generator is an intelligent, prompt-driven development assistant designed to accelerate the creation and styling of modern web applications. Built around Telerik and Kendo UI, the Agent enables developers to move from idea to quality UI with speed, precision, and confidence. It allows developers to use it with their favourite AI-powered IDEs for seamless integration with their existing workflows, delivering more productivity with no extra friction.
13
+
The Agentic UI Generator is an intelligent, prompt-driven AI development assistant designed to accelerate the creation and styling of modern web applications. Built around Telerik and Kendo UI, the Agent enables developers to move from idea to quality UI with speed, precision, and confidence.
14
14
15
-
## What is the Agentic UI Generator
15
+
## What Is the Agentic UI Generator
16
16
17
-
At its core, the Agentic UI Generator integrates five specialized tools—UI Generator, Style Search, Component Search, Style Customization, and Icon Search—working together in an agentic flow to deliver complete, beautiful, on-brand and enterprise-ready UIs. The main generator coordinates these tools to handle component generation, styling, theming, and design system integration seamlessly.
17
+
At its core, the Agentic UI Generator integrates five specialized tools:
18
+
* UI Generator
19
+
* Style Search
20
+
* Component Search
21
+
* Style Customization
22
+
* Icon Search
18
23
19
-
### How It Works
24
+
The tools are working together in an agentic flow to deliver complete, beautiful, on-brand and enterprise-ready UIs. The main generator coordinates these tools to handle component generation, styling, theming, and design system integration seamlessly.
20
25
21
-
The Agentic UI Generator uses an intelligent approach where specialized tools work together to handle different aspects of UI development. When you provide a prompt, the main generator analyzes your requirements and coordinates the appropriate tools to deliver the desired outcome. For more control over specific aspects of your UI, you can also call individual tools directly as described in the [Advanced Use](#advanced-use) section.
26
+
## How It Works
22
27
23
-
### Intended Use
28
+
The Blazor Agentic UI Generator uses an intelligent approach where specialized tools work together to handle different aspects of UI development. When you provide a prompt, the main generator analyzes your requirements and coordinates the appropriate tools to deliver the desired outcome. For more control over specific aspects of your UI, you can also call individual tools directly as described in the [Advanced Use](#advanced-use) section.
29
+
30
+
## Intended Use
24
31
25
32
The Agentic UI Generator is designed to help with various development scenarios:
26
33
27
-
**Create Individual Components**
28
-
* Build specific Telerik components with custom configurations
29
-
* Generate components with advanced features like filtering, validation, and data binding
30
-
* Example: "Create a Select component with filtering and the option to add new items"
34
+
### Create Individual Components
35
+
36
+
Build specific Telerik components with specific configurations and features like filtering, validation, and data binding
37
+
38
+
**Example:** "#telerik_ui_generator Create a Select component with filtering and the option to add new items"
39
+
40
+
### Create Full Responsive Pages
31
41
32
-
**Create Full Responsive Pages**
33
42
* Build complete dashboards, landing pages, and listing pages in existing applications
34
-
* Generate pages similar to [Telerik Design System page templates](https://www.telerik.com/design-system/docs/ui-templates/templates/automotive-industry/)
35
-
* Example: "Create a new PoC and I have created an empty application that now needs a login screen and an admin dashboard"
43
+
* Generate pages similar to the [Progress Design System page templates](https://www.telerik.com/design-system/docs/ui-templates/templates/automotive-industry/)
44
+
45
+
**Example:** "#telerik_ui_generator I have created an empty application that now needs a login screen and an admin dashboard. Create a new PoC"
46
+
47
+
### Modify Existing Pages
36
48
37
-
**Modify Existing Pages**
38
49
* Enhance existing dashboards by adding new sections
39
50
* Insert new sections that match existing layout style and responsiveness
40
-
* Example: "Insert a new section in the middle of an existing page. In that added section, a Dashboard Card displays summary KPIs (revenue, active users, growth rate), next to a Compact Card showing a recent alert or message"
41
51
42
-
**Create and Modify Themes**
43
-
* Generate new themes inside existing applications
44
-
* Add dark mode or high-contrast themes
45
-
* Example: "Generate a complete dark theme for my app based on a prompt so my UI looks on-brand in dark mode as well"
52
+
**Example:** "#telerik_ui_generator Insert a new section in the middle of an existing page. In that added section, a Dashboard Card displays summary KPIs (revenue, active users, growth rate), next to a Compact Card showing a recent alert or message"
53
+
54
+
### Create and Modify Themes
55
+
56
+
* Generate new themes inside existing applications. Add dark mode or high-contrast themes
57
+
58
+
**Example:** "Generate a complete dark theme for my app based on a prompt so my UI looks on-brand in dark mode as well"
46
59
47
-
**Responsive Layout**
48
-
* All created pages and sections are automatically responsive
60
+
### Implement Responsive Layout
61
+
62
+
* Create new responsive pages and sections
49
63
* Convert existing pages to be responsive for mobile and tablet views
50
-
* Example: "Update an existing page layout to make it responsive"
64
+
65
+
**Example:** "Update an existing page layout to make it responsive"
51
66
52
67
For specific examples of these use cases, see the [Sample Prompts](#sample-prompts) section.
53
68
54
69
## Installing the Agentic UI Generator
55
70
56
-
The Agentic UI Generator is available as an MCP (Model Context Protocol) server that integrates with AI-powered IDEs like GitHub Copilot, Cursor, and other MCP-compatible tools.
71
+
The Agentic UI Generator is available as an MCP (Model Context Protocol) server that integrates with AI-powered IDEs like Visual Studio Code, Cursor, and other MCP-compatible tools.
57
72
58
73
### Prerequisites
59
74
60
-
* A valid Telerik DevCraft Complete, or DevCraft Ultimate license.
61
-
* An AI-powered IDE that supports MCP servers (e.g., Visual Studio, Visual Studio Code).
75
+
* An AI-powered IDE that supports MCP servers, for example, Visual Studio, Visual Studio Code, Cursor.
62
76
63
77
### Configuration Steps
64
78
65
-
Sign in to your Telerik account to ensure proper user identification.
79
+
This section contains information about how to set up the Agentic UI Generator in Visual Studio and Visual Studio Code.
66
80
67
81
#### Visual Studio
68
82
69
-
To enable the Agentic UI Generator in a specific Blazor app, add a `.mcp.json` file to the solution folder and paste the [Preview JSON MCP Configuration](https://uiagent.mcp.telerik.com/preview) in the file.
To enable the Agentic UI Generator in a specific Blazor app, add a `.mcp.json` file to the solution folder and paste the configuration from the [Agentic UI Generator | MCP Configuration page](https://uiagent.mcp.telerik.com/preview).
86
84
87
85
To enable global automatic discovery of the Agentic UI Generator in Visual Studio, add the above `.mcp.json` file to your user directory (`%USERPROFILE%`), for example, `C:\Users\____\.mcp.json`.
88
86
89
87
#### Visual Studio Code
90
88
91
-
1. Go to the [Agentic UI Generator Preview Configuration](https://uiagent.mcp.telerik.com/preview).
92
-
2. Click the `Add to VS Code` button. This will open a tab named `MCP Server: telerik-ui-generator` in your VS Code instance.
93
-
3. In the new VS Code tab, click the `Install` button.
89
+
1. Go to the [Agentic UI Generator Preview Configuration](https://uiagent.mcp.telerik.com/preview).
90
+
2. Log in with a valid Telerik account.
91
+
3. Click the **Add to VS Code** button. This will open a tab named **MCP Server: telerik-ui-generator** in your VS Code instance.
92
+
4. In the new VS Code tab, click **Install**.
94
93
95
94
After adding the configuration, restart your IDE to load the MCP server.
96
95
97
-
## Using the Agentic UI Generator
96
+
## Call the Generator
98
97
99
98
The Agentic UI Generator can be used in two primary modes: basic usage through the main tool, or advanced usage by calling specific MCP tools directly.
100
99
101
100
### Basic Use
102
101
103
102
To use the Agentic UI Generator, you can call it in two ways:
104
103
105
-
**Method 1: Using the Tool Handle**
104
+
#### Method 1: Using the Tool Handle
105
+
106
106
Prefix your prompt with `#telerik_ui_generator` followed by your request:
107
107
108
108
````TEXT.skip-repl
109
109
#telerik_ui_generator Create a dashboard page with a grid showing sales data and a chart visualizing monthly trends
110
110
````
111
111
112
-
**Method 2: Using Natural Language**
113
-
Simply describe what you want to create using natural language. The AI assistant will automatically recognize when to use the Agentic UI Generator:
112
+
#### Method 2: Using Natural Language
113
+
114
+
Prefixing your prompt with `#telerik_ui_generator` will make it more likely for the Agentic UI Generator to get called. Alternatively, you can use natural language and simply describe what you want. The AI assistant automatically recognizes when to use the Agentic UI Generator:
114
115
115
116
````TEXT.skip-repl
116
117
Create a product management page with a grid for displaying products, a form for adding new items, and filtering options
117
118
````
118
119
119
-
The generator will analyze your prompt and create the appropriate Blazor components, markup, and styling.
120
+
The generator analyzes your prompt and creates the appropriate Blazor components, markup, and styling.
120
121
121
-
### Advanced Use
122
+
### Target the Tools (Advanced)
122
123
123
124
For more granular control, you can call individual tools that make up the Agentic UI Generator:
124
125
125
126
| Tool Handle | Description |
126
127
|------------|-------------|
127
128
|`telerik_ui_generator`| Main generator for building full UI flows. Coordinates all other tools to deliver complete solutions. |
128
-
|`telerik_style_search`|Retrieves design system utilities including spacing, typography, and colors for consistent layouts. |
129
-
|`telerik_component_search`|Retrieves documentation and answers about Telerik/Kendo components, providing implementation guidance. |
130
-
|`telerik_style_customization`| Generates CSS variables for themes and customization, enabling brand-specific styling. |
131
-
|`telerik_icon_search`|Retrieves icons from the Telerik Design System for consistent iconography across your application. |
129
+
|`telerik_layout_assistant`|Applies suitable CSS utility classes from the Progress Design System for styling and positioning elements. Use this tool when you need help with spacing, typography, colors, layout structure, or transforms. |
130
+
|`telerik_component_assistant`|Answers questions and generates code related to Teelrik UI for Blazor components. Use this tool when you need to implement or configure specific UI for Blazor components like Grid, Charts, Forms, etc. |
131
+
|`telerik_style_assistant`| Generates custom styles and theme configurations for your application. Use this tool when you need to apply brand-specific colors, create custom themes, or modify the overall visual design of your UI. |
132
+
|`telerik_icon_assistant`|Searches and retrieves icons from the Progress Design System iconography by name, category, or keywords. Use this tool when you need to find and add specific icons for your UI components or design elements. |
132
133
133
134
You can call these tools directly when you need specific functionality, allowing for more precise control over the generation process.
134
135
@@ -165,24 +166,23 @@ Build a landing page similar to the automotive industry template with a hero sec
165
166
166
167
To get the best results from the Agentic UI Generator:
167
168
168
-
**Provide Clear Context:**
169
+
### Provide Clear Context
170
+
169
171
* Be specific about your requirements and desired layout structure.
170
172
* Mention any existing components or styles you want to match.
173
+
* Attach the files you want to modify as context to your prompt so the tool can understand your existing code structure.
171
174
* Specify responsiveness requirements for different screen sizes.
172
175
* Reference existing design patterns when applicable (e.g., "similar to the automotive industry template").
173
176
174
-
**Optimize Your Environment:**
175
-
* Don't configure too many MCP tools or extensions simultaneously, as this may affect performance.
176
-
* In case of issues when both the Telerik AI Coding Assistant and the Agentic UI Generator are enabled, disable one of the tools.
177
+
### Best Practices
178
+
179
+
*Don't configure too many MCP tools or extensions simultaneously, as this may affect performance. In case of issues when both the Telerik AI Coding Assistant and the Agentic UI Generator are enabled, disable one of the tools.
177
180
* Ensure you have a stable internet connection for AI processing.
178
181
* Keep your Blazor project structure organized and follow naming conventions.
179
-
180
-
**Best Practices:**
181
182
* Start with simpler prompts and gradually add complexity.
182
-
* Review and test generated code before integrating into production.
183
183
* Customize the generated code to match your specific business logic and branding.
184
184
* Use the advanced tool handles when you need precise control over specific aspects.
185
-
* Leverage existing Telerik Design System patterns for consistency.
185
+
* Leverage existing [Telerik Design System](https://www.telerik.com/design-system/docs/) patterns for consistency.
0 commit comments