Configure the AI widget builder in Employee Slate. Set the scope, the role access, and the chat panel that drives widget generation.
About this task
The AI widget builder lets admins describe a widget in plain language. The builder generates the widget code, validates it, and compiles it before preview.
The landing card lists the widgets in the instance. Admins can search, filter custom widgets from out-of-the-box widgets, edit a widget, or clone a widget.
Procedure
-
Navigate to .
The landing card lists every widget available in the instance.
-
Set the scope for new widgets.
Select Global to create widgets at the global scope, or select an application scope. The scope applies to every widget created from this point.
-
Select Create to open the create workflow.
The create workflow opens the chat panel on the left and the component and server script editor on the right.
- Optional:
Enter a widget description in the chat panel.
An example description is Create a widget that creates an OTP page. The skill validates, compiles, and renders the widget. The build can take 15 to 20 seconds.
-
Set the widget properties.
Set the element name, the widget name, the tag, and the description. Detailed property values improve the next chat prompt.
-
Set Chat compatibility for the widget.
Chat compatibility maps the widget to the output of tools used in agents. The setting renders the widget in the interactive chat view rather than inline.
-
Assign roles for widget access.
Select the roles that can view and use the widget. Restrict the widget to admin roles when the widget operates on admin-only data.
- Optional:
Review the generated code.
Open the component and the server script. Run quality checks and edit the code manually when needed.
- Optional:
Preview the widget.
Provide sample inputs and select Refresh preview. Drag, drop, and resize the widget to confirm responsive behavior.
- Optional:
Refine the widget with a subsequent prompt.
An example refinement is When the timer is less than 30 seconds, change the background color to red. Accept or reject the change. Select Undo to revert to the prior version.
-
Save the widget.
The save commits the widget code, the properties, the chat compatibility, and the role access. The widget is available in the widget library.
Result
Admins create, clone, and refine AI-powered widgets from the same builder. Each widget honors the configured scope, the chat compatibility, and the role access. Admins can review the generated code and revert any change with the undo control.