Use case: Configure an event handler with Now Assist

  • Release version: Australia
  • Updated June 16, 2026
  • 3 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 Use case: Configure an event handler with Now Assist

    This use case demonstrates how ServiceNow developers can streamline the configuration of event handlers in Service Operations Workspace using Now Assist’s Event handler generation skill. It eliminates the need for manual binding expressions and payload field lookups by allowing configuration through natural language prompts. This accelerates setup and reduces complexity when connecting UI components to navigation actions.

    Show full answer Show less

    Key Features

    • Natural Language Configuration: Developers use simple prompts in the Now Assist panel to specify navigation intentions, such as opening list or record pages and mapping parameters.
    • Automatic Binding: Now Assist identifies the correct destination page, event payload fields, and generates binding expressions without manual coding.
    • Preview and Edit: Developers can review generated configurations and adjust any fields using standard form controls before saving.
    • Supports Multiple Event Types: Handles button click events and reference link clicks within components like task lists.

    Configuration Steps

    • Ensure UI generation is installed and assign the uibuilderadmin role.
    • Navigate to Now Experience Framework > UI Builder and open the target experience and page.
    • Select the UI component and open the relevant event (e.g., Button clicked or Reference link clicked).
    • Add an "Open page or URL" handler and enter a descriptive natural language prompt referencing the destination page type and parameter mappings.
    • Review the generated preview, accept or edit as needed, then save the handler.

    Key Outcomes

    • Developers can quickly configure event handlers without needing detailed knowledge of payload field names or binding syntax.
    • At runtime, UI actions such as button clicks navigate users to the correct pages with parameters auto-populated, improving user experience.
    • Reference link clicks in lists can open related records in new tabs seamlessly, enhancing agent productivity.
    • The generated event handler configurations are immediately functional yet remain fully editable for customization.

    Automate event handler configuration without writing manual binding expressions.

    Scenario

    A UI developer is creating a Service Operations Workspace homepage for a service desk team. The homepage features two components: a button that directs agents to a list of open incidents, and a task list that displays open change requests. For the task list, when an agent selects a reference link in any row, the developer wants the associated change request record to open in a new tab, without requiring any additional navigation steps.

    Problem

    Without Now Assist, the developer must manually add an Open page or URL handler to the button component and configure both the destination page and the associated table parameter. For the task list, they need to add a second Open page or URL handler to the Reference link clicked event. Additionally, they must write binding expressions to map the event payload fields table and sys_id to the record page parameters. This process requires familiarity with the names of the payload fields, the binding syntax, and the parameter names expected by the record page, making it a complex configuration task for each handler.

    Solution

    With Event handler generation, the developer uses natural language prompts in the Now Assist panel to configure an event handler. Now Assist identifies the correct destination page, selects the appropriate event payload fields, and generates accurate binding expressions. The developer then reviews the preview and accepts the configuration without needing to look up payload field names or manually write any binding expressions.

    Before you begin

    Make sure that you install UI generation and that you have the ui_builder_admin role. For more information, see Install UI generation and Grant UI Builder admin role.

    Configuration steps

    Perform the following steps to use the Event handler generation skill:
    1. Navigate to All > Now Experience Framework > UI Builder.
    2. Open the Service Operations Workspace experience and navigate to the home page.
    3. Select the button component and open the Button clicked event.
    4. Add an Open page or URL handler. In the Now Assist input panel, enter the prompt: Open simple list page with table from state parameter.
      Tip:
      When writing prompts for Event handler generation, reference the specific destination page type and the fields you want to map by name. For reference link events, Now Assist displays the available payload fields in the panel — use these field names in your prompt for the most accurate results.

      Now Assist identifies the simple list page, selects it as the destination, and binds the table parameter to the appropriate state parameter.

    5. Review the preview, select Accept and edit, and save the handler.
    6. Select the task list component and open the Reference link clicked event.
    7. Add a Open page or URL handler. Now Assist displays the available event payload fields. Enter the prompt: Open record page in a new tab with fields table and sysid from event payload.

      Now Assist sets the destination to the record page, binds the table parameter to the payload’s table field, binds sysid to the payload’s sys_id field, and enables the Open in new tab option.

    8. Review the preview, confirm the bindings are correct, and accept the configuration.

    Outcome

    Both event handlers can be configured with natural language prompts. The developer could set them up quickly without looking up payload field names or writing binding expressions manually. During runtime, selecting the button navigates the agent to the incident list, with the table parameter automatically populated from the workspace's state. Additionally, selecting any reference link in the task list opens the corresponding change request record in a new tab, pulling the table name and sys_id directly from the selected row. The generated configurations are ready for immediate use. The developer retains full control and can edit any field using standard form controls before saving.