AI-powered Widget Builder

  • Release version: Australia
  • Updated April 24, 2026
  • 2 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of AI-powered Widget Builder

    The AI-powered Widget Builder is a comprehensive tool designed for administrators and partners to create, clone, and refine Employee Slate widgets efficiently within ServiceNow. It integrates AI-driven natural language prompts, a visual preview, and direct access to component and server script code, enabling users to move seamlessly from widget requirements to functional components without leaving the tool.

    Show full answer Show less

    Key Features

    • Widget Library: Provides a searchable and filterable list of all available widgets, including custom and base system widgets. Administrators can duplicate or edit existing widgets and set the creation scope directly from the library.
    • AI-driven Widget Generation: Uses natural language descriptions to generate widget code, validates and compiles it to ensure functionality, and typically completes generation in 15 to 20 seconds. Administrators can iteratively refine widgets with follow-up prompts and revert changes via an undo history.
    • Widget Properties: Automatically generates tag names, element names, and descriptions from prompts. Administrators can customize properties such as chat compatibility for integration with agent tools and role-based access to restrict widget usage.
    • Preview and Code Review: Features drag, resize, and responsive design checks aligned with the Employee Slate design system using design tokens. Administrators can inspect and manually edit the generated component and server script code. Sample input values can be provided to test widget behavior in different canvas layouts.

    Key Outcomes

    • Enables efficient, AI-assisted creation and refinement of Employee Slate widgets within a single authoring environment.
    • Reduces development time by allowing natural language input to generate functional widgets quickly and reliably.
    • Provides flexibility for administrators to customize widget properties, enforce access control, and ensure compatibility with chat-based agent tools.
    • Supports thorough testing and quality assurance through integrated previews and code inspection tools.
    • Requires a Now Assist Creator license to access AI-driven chat features; without it, widget creation is manual.

    Administrators and partners use the AI-powered Widget Builder to generate, clone, and refine Employee Slate widgets. The builder provides natural-language prompts, a visual preview, and direct access to the generated component and server script.

    The Widget Builder is the single authoring surface for all Employee Slate canvas widgets. It combines a widget library, an AI chat panel, and an inline code and preview workspace. Administrators move from a written requirement to a working widget without leaving the tool.

    Widget library

    The first card in the Widget Builder lists every widget available in the instance. Administrators use the library to:

    • Search for widgets by name or description.
    • Filter between custom widgets built in the instance and widgets included in the base system.
    • Duplicate an existing widget as the starting point for a new one.
    • Edit an existing widget directly.
    • Select the scope in which to create the widget.

    AI-driven widget generation

    The Widget Builder chat panel generates widget code from a written description. The builder creates the widget and validates the generated code. It then compiles the widget to confirm that the output is a working component before it appears in the preview. Generation typically completes in 15 to 20 seconds.

    After the Widget Builder generates the widget, administrators refine it with follow-up prompts. Each prompt produces a new version of the widget that the administrator accepts or rejects. The Widget Builder keeps an undo history so administrators can revert to any earlier version.

    Note:
    AI-driven widget generation requires an Now Assist Creator license. Without the license, the chat panel isn't available and administrators author widgets manually in the component and server script editors.

    Widget properties

    The Widget Builder generates the widget tag name, element name, and description from the prompt. Administrators can refine the following properties:

    Table 1. Widget properties
    Property Description
    Tag name and description Identifies the widget in the library and in generated code.
    Chat compatibility Controls whether the widget maps to the output of tools that agents use. When enabled, the widget can be mapped to a tool output with interactive and inline toggle view in the conversation.
    Role access Limits the widget to employees with specific roles. For example, assign an administrator role to restrict the widget to administrators.

    Preview and code review

    The Widget Builder preview supports drag, resize, and responsive checks so administrators can confirm that the widget behaves correctly across canvas layouts. Generated widgets follow the Employee Slate design system and use design tokens for styling.

    Administrators open the generated component and server script to inspect the code and run manual quality checks. They can also edit the widget outside of the chat panel. To drive the preview, administrators provide sample input values through the widget settings.