Trigger ServiceNow AI Lens from the desktop app

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 4 minutes de lecture
  • Trigger ServiceNow AI Lens from the desktop app by using a Lens action to preview the extracted data and initiate post processing or auto-fill a form.

    Avant de commencer

    To access the ServiceNow AI Lens functionality, perform the following steps:

    Verify that you've defined the Lens action for this purpose. For more information, see Define a Lens action.

    Verify that ServiceNow AI Lens has access to record the screen on your system. For more information, see Providing permission to ServiceNow AI Lens.

    You must have create and update access privileges for creating or updating a record using ServiceNow AI Lens.

    Don't scan any personally identifiable information, such as medical reports, financial reports, or other sensitive data, when using ServiceNow AI Lens as you don't want to expose the large language model (LLM) to any sensitive information.

    Role required: lens_user

    Pourquoi et quand exécuter cette tâche

    By using Lens actions, you can perform one of the following tasks:
    Fill a form
    In the Lens action configuration, when Trigger From is Desktop and Trigger For is Form, and a table is selected, ServiceNow AI Lens can be triggered from the desktop to auto-fill a form. It first shows a preview of the data, and if the preview is editable, you can edit the fields before saving. After you select Submit in the preview window, it saves the form with the updated data on the ServiceNow instance.
    Preview the extracted data
    In the Lens action configuration, when Trigger From is Desktop and Trigger For is Others, ServiceNow AI Lens can be triggered from the desktop to show preview of the extracted data. If the preview is editable, you can edit the fields before saving. After you select Submit and close preview in the preview window, it saves the data and initiates post processing.

    Procédure

    1. From your system, launch the ServiceNow AI Lens application.
    2. On the login page, in the Instance URL field, enter the ServiceNow instance URL.
      For example, https://<instance name>.service-now.com.
    3. Select Proceed.
    4. Log in to your ServiceNow account by entering your username and password.
      Your account must have the lens_user role.
    5. Facultatif : On the onboarding journey widget, complete the onboarding and select Got it.
      Onboarding journey widget with three pages to show you the highlights of the application.

      If you launch the ServiceNow AI Lens for the first time, the onboarding journey widget appears. You can select Don't show me again to hide the widget the next time you launch ServiceNow AI Lens.

    6. Select a Lens action.
    7. Select Proceed with Lens.
      Lens scanner opens in a separate window.
      Remarque :
      Use the scanner window to scan the data of the screenshot so you can submit it for analysis.
    8. On your system, open an artifact that you want to scan.
      An artifact can be an image, scanned or handwritten note, website, or application.
    9. Place the ServiceNow AI Lens scanner window on the top of the artifact.
      You can resize the ServiceNow AI Lens scanner window by dragging its borders.
    10. Extract data from a single screen.
      1. Enter additional instructions to extract, analyze, and organize data by selecting the Edit icon (Edit icon.) and then enter the instructions.
        The default character limit is 500. Users with the admin role can increase this limit to up to 5000 characters by navigating to the sn_lens_user_prompt_max_length system property.
        Remarque :
        This is an optional step.
      2. Select Analyze.
        The ServiceNow AI Lens preview window displays the extracted output in an editable form.
    11. Facultatif : Extract data from multiple screenshots.
      1. To provide additional instructions to extract, analyze, and organize data, select the Edit icon (Edit icon.) and then enter the instructions.
        The default character limit is 500. Users with the admin role can increase this limit to up to 5000 characters by navigating to the sn_lens_user_prompt_max_length system property.
        Remarque :
        This is an optional step.
      2. Select the Multi-capture button Multi-capture icon..
        Conseil :
        Use the Upload file icon (File Upload icon.) to upload one or more files. For more information, see sn-lens-standalone-app.html#sn-lens-standalone-app__upload-files-steps
      3. Select the Capture icon (Capture icon.)
        The first screenshot is captured.
      4. Place the ServiceNow AI Lens scanner window over another document or page and then select the Capture icon ).
        The second screenshot is captured.

        Repeat the step to capture more screenshots, if required.

        Remarque :
        • You can capture a total of 10 screenshots with the combined size of all captured screenshots not exceeding 10 MB.
        • To enable the desktop app to send large screenshot data to the server, confirm that the following system properties are set exactly as shown below:
          Tableau 1. System property
          Property name Type Recommended value
          glide.rest.max_content_length Integer 15
          glide.rest.scripted.max_inbound_content_length_mb Integer 15
          For more information, see Configure system property
          Remarque :
          You must have the admin role to set the system properties.
      5. To complete the capture, select the Done icon ().
      6. Select Analyze.
        The data is extracted from the screenshots and the form that you can update and submit is shown.
    12. Depending on the type of Lens action selected, perform the following steps.
      TaskSteps
      Filling form
      1. (Optional) In case of editable preview, if necessary, edit the auto-filled field values before saving.
      2. On the form header in the Preview window, select Submit to save the filled form on the instance.
      Previewing extracted data
      1. (Optional) In case of editable preview, if necessary, edit the auto-filled field values before saving or copying the values.
      2. (Optional) Copy the previewed data by selecting the Copy icon .
    13. End the current session by selecting Start new session.