Test and activate a desktop action in AI Desktop Actions

  • Release version: Australia
  • Updated May 22, 2026
  • 3 minutes to read
  • Test the desktop action and then activate it so that it’s available as a tool in the AI Agent Studio. You can add this tool to the AI agents that execute desktop actions in your desktop environment.

    Before you begin

    Role required: sn_aia.admin

    About this task

    You can test the desktop action before you activate it. You can also test individual screens to quickly identify and troubleshoot issues.

    Execution workspace is launched to run and test the selected screen or the desktop action.

    AI Desktop Actions showing the Shipping Management app with fields on a Windows 10 background.

    After you run the test by entering the required inputs manually, test results are shown either for a screen or for entire desktop action in the Execution workspace. While running tests, if you do not see the Execution workspace coming forth, switch to the Execution workspace manually.

    While working on a desktop action, the test values you enter are retained across test runs until you close the desktop action or reset the test values.

    Procedure

    1. From the desktop action header, select Test.
    2. Option 1: Run the screen-level test.
      1. In the Test modal, enter required inputs for the screen that you want to test.
      2. Select Test screen.
        The Execution workspace is launched.
      3. Enter the Windows Security credentials.
        Observe the test run in the Execution workspace.
        Note:
        If any pop up is blocking the automation from running, step in to clear the pop up so that you can see the test run in the Execution workspace.
      4. After the test run is complete, check the status in the Test modal.
        • If test is successful, proceed with testing the next screen.

          Test completed window displaying status as Success.

        • If test isn’t successful, fix the issue highlighted in the error message and run the screen-level test again.

          Test completed window displaying status as Failed.

      5. Optional: Reset test data by selecting Reset.
      6. Optional: Cancel running test by selecting Cancel.
    3. Option 2: Run the Desktop action-level test.
      1. In the Test modal, enter the required input values in the desktop action.
        • Show inputs - Shows all the required input fields.
        • Show all - Shows all fields.
      2. Select Run test.
        The Execution workspace is launched.
      3. Enter the Windows Security credentials.
        Observe the test run in the Execution workspace.
        Note:
        If any pop up is blocking the automation from running, step in to clear the pop up so that you can see the test run in the Execution workspace.
      4. After the test run is complete, check the status in the Test modal.
        • If test is successful, proceed with activating the desktop action.

          Test completed window displaying status as Success.

        • If test isn’t successful, select Back to Test to check the configuration and run the test again.

          Test completed window displaying status as Failed.

    4. Optional: Cancel running test by selecting Cancel.
    5. After a successful completion of the desktop action test and when you're satisfied with the result, select Activate to publish the desktop action in AI Agent Studio.
      The Activate button sets the desktop action as active or inactive. Only the activated on-screen desktop actions can be selected from the drop-down in AI Agent Studio.
      Note:
      After activation, save the desktop action to make it available as a tool in AI Agent Studio.
    If you get en error that the file size is beyond 10 MB, you can increase the file size in a payload by creating system properties in the ServiceNow instance. For more information, see Increase payload limit through system properties.

    What to do next

    Create an AI agent. For more information, see Creating AI agents for AI Desktop Actions.

    Enable AI agents to perform desktop actions by adding desktop actions as tools. For more information, see Add a defined desktop action tool to an AI agent for desktop and web-based task.