Example: Automate shipping management tasks using Agentic Desktop
Automate various tasks related to shipping management through desktop actions using Agentic Desktop and AI agents.
Your shipping coordinators frequently handle repetitive data-entry tasks. For example, entering PO numbers, invoice details, customer information, shipping addresses, item dimensions, and weights from Excel into the Shipping Management application on their desktops. When there are dozens of rows to process, it becomes time-consuming, error-prone, and significantly slows down their daily workflow.
To streamline this process, you can create a dedicated desktop action that reads each row from the Excel file and automatically inputs the data into the Shipping Management application. You can then assign this action to an AI Agent. When new shipping batches arrive, shipping coordinators simply trigger the AI Agent from the Now Assist panel. The agent then automatically processes each line item by selecting and running the appropriate desktop action.
Create Process shipping orders desktop action in Agentic Desktop
Automate various tasks related to shipping management through desktop actions in Agentic Desktop.
始める前に
- Enable Agentic Desktop on your ServiceNow instance. For more information, see Configure Agentic Desktop.
- Download the Agentic Desktop installer to automate repetitive tasks across applications and systems. For more information, see Download Agentic Desktop installer.
Confirm that the following system requirements are met:
- Windows 11 operating system is used.
- A .NET 9.0 runtime v9.0.10 and .NET 9 Desktop Runtime v9.0.10 is installed.
- No extended monitors are connected.
- Theme must match between the systems used for recording and execution.
Familiarize yourself with the Design workspace and Action recorder. For more information, see Agentic Desktop Design workspace and .
Role required: sn_aia.admin
手順
- From your Windows system, launch the Agentic Desktop application.
-
On the login page, in the Add ServiceNow URL field, enter the ServiceNow instance URL.
For example, https://<instance name>.service-now.com.
- Select Proceed.
-
Log in to your ServiceNow account by entering your user name and password.
Your account must have the sn_aia.admin role.
-
On the Agentic Desktop home page, select Create desktop action.
-
In the New desktop action dialog box, select Manual capture steps.
- In the Name field, enter Process shipping orders.
- In the Description field, enter Enter Shipping order details from Excel to Shipping Management tool.
-
Select Start capturing.
The Design workspace is displayed.
-
Capture screens.
-
In the Design tab, select the Capture Options icon
.
-
Select Manual capture screens.
The Agentic Desktop window is minimized and the Capture panel is launched.
-
Open the Shipping Management application from your desktop.
-
Capture the area of the external application’s window by selecting the Select icon
on the Capture panel or pressing the Ctrl + Shift + C on the keyboard.
注:For example, you can capture the area surrounding a button or a text field in a web browser. The cursor icon changes to theIf the Ctrl + Shift + C shortcut conflicts with another application on the your machine, such as Zoom, then you must use the Select button to initiate manual screen capture.icon.
-
Drag the
icon and select the required screen area.
When you leave theicon, the selected area is captured as a screenshot in the Design workspace.
If you are not satisfied with the captured screen, you can recapture the screen area by selecting the Capture image icon
.
-
In the Design tab, select the Capture Options icon
-
Insert anchors.
-
Insert an anchor on the captured screen by selecting the Add anchor icon
.
An anchor is a reference point on the screen that helps the automation identify and interact with a nearby UI elements. During execution, the system uses computer vision to locate the anchor and then identifies the UI elements at a related distance from the anchor. Anchors improve the stability and accuracy of steps when the target element’s location may shift or when the UI layout varies across sessions.
注:Do not use dynamically changing UI elements as anchors. If an element changes its color, text, or state after an action (for example, after a click), select a different anchor that remains static on the screen. -
Move the anchor to a part of the captured image that won’t change.
For example, move the anchor to a title or field label.
If the area under the anchor doesn’t exactly match the corresponding area of the captured image, the anchor isn't recognized, and the steps are not performed as intended. Choose a static area of the image for setting your anchor.
You can add multiple anchors on each screen. Multiple anchors let you define the geographical relationship between anchor and target with greater accuracy when targeting different locations in the image.
-
Insert an anchor on the captured screen by selecting the Add anchor icon
-
Configure the steps.
-
From the Step control menu, select the Add step icon
.
-
Select the type of step for each field on the ORDER FORM from the contextual menu.
Number Field Step 1 PO# Set Text 2 Invoice# Set Text 3 Customer Name Set Text 4 Shipping Address Set Text 5 Item size Set Text 6 Weight limit Set Text 7 Phone Set Text 8 Express Delivery Click 9 SMS Alerts Click 10 Submit Click
-
From the Step control menu, select the Add step icon
-
Configure the properties for added screens, anchors, and steps.
For more information, see Screen, anchor, and step properties in Agentic Desktop.
-
Provide names for all added screens, anchors, and steps.
When you create these elements, you can edit the auto-generated name, but follow these naming guidelines.
- Name fields must not be empty.
- Name fields must contain only alphanumeric characters. Spaces and special characters are not permitted.
- Each name must be unique at its respective parent level.
- Each screen must have a unique name at the desktop-action level.
- Each anchor must have a unique name at the screen level.
- Each step must have a unique name at the anchor level.
- Select the Details tab.
- In the Applications list, add Shipping Management.
- Select Save.
-
Test and activate the desktop action.
For more information, see Test and activate a desktop action in Agentic Desktop.
- Similarly, create and activate the Shipping Management login desktop action.
Create AI agents and add tools for shipping orders
Create an AI agent in AI Agent Studio and add desktop action tools for Shipping Management task automation.
始める前に
Role required: sn_aia.admin
手順
- Navigate to All > AI Agent Studio > Create and manage > AI agents.
- From the Add drop-down, select Chat.
-
On the New AI Agent page, in the Define the specialty step, define your AI agent and provide the specialties that this agent contains so that the LLM can analyze the wording you use to
understand the purpose of the AI agent.
注:The more details that you provide, the more accurately your AI agent can perform.
-
Describe your AI Agent by giving it a unique name and description.
表 : 1. Give it a unique name and description Field Description AI agent name Shipping Management Agent AI agent Description The Shipping Management Agent automates end-to-end handling of shipping orders across multiple platforms. It retrieves order data from an Excel sheet and seamlessly uploads the information into the shipping management tool. This reduces manual effort, ensures data consistency, and accelerates the overall invoice life cycle. -
Define the role and necessary steps so that the AI agent can carry out its tasks.
注:The AI agent uses this information as guidance to tailor its responses and actions.
表 : 2. Define the role and required steps Field Description AI agent role Automates the retrieval of shipping orders from Excel and performs seamless data entry into the shipping management application. List of steps 注:If your automation requires manual inputs, such as entering an OTP or CAPTCHA, you must provide instructions to the AI Agent to wait for the user input during execution. Otherwise, the automation can't proceed.- Launch and log in to the Shipping Management application.
- Open the Excel file from the user-specified folder.
- Navigate to the designated worksheet within the Excel file.
- Read the required columns for each order from the Excel sheet.
- Enter the extracted data into the corresponding fields in the shipping management application.
- Select Submit to register the order.
- Repeat steps 4–6 until all pending orders in the Excel sheet have been processed.
-
Select Save and continue.
You’re directed to the Add tools and information page.
-
Describe your AI Agent by giving it a unique name and description.
-
On the Add tools and information page, add Desktop actions tools for AI agents to automate your desktop tasks.
- In the Add tool drop-down list, select Desktop action.
- In the Select a type of desktop action field, select UI block
-
In the Select a desktop action drop-down list, select Shipping Management login desktop action.
This desktop action enables AI agents to log in to the Shipping Management application.
-
Provide a name and tool description for this desktop action configuration.
Tool description of the desktop action helps with what it’s going to do to assist your AI agent.注:This description is sent to the large language model (LLM).
- In the Execution mode field, select Autonomous.
-
Select Add.
The desktop action is added in the Desktop actions list on the Add tools and information page.
- In the Add tool drop-down list, select Desktop action.
- In the Select a type of desktop action field, select UI block
-
In the Select a desktop action drop-down list, select Process shipping orders desktop action.
This desktop action enables AI agents to enter data extracted from the spreadsheet into the Shipping Management application.
-
Provide a name and tool description for this desktop action configuration.
Tool description of the desktop action helps with what it’s going to do to assist your AI agent.注:This description is sent to the large language model (LLM).
- In the Execution mode field, select Autonomous.
-
Select Add.
The desktop action is added in the Desktop actions list on the Add tools and information page.
- In the Add tool drop-down list, select Desktop action.
- In the Select a type of desktop action field, select Non UI block
-
In the Select an application drop-down list, select Microsoft Excel.
The Microsoft Excel tool, non-UI block desktop action, enables AI agents to contextually extract information from the spreadsheet.
-
Provide a name and tool description for this desktop action configuration.
Tool description of the desktop action helps with what it’s going to do to assist your AI agent.注:This description is sent to the large language model (LLM).
- In the Execution mode field, select Autonomous.
-
Select Add.
The desktop action is added in the Desktop actions list on the Add tools and information page.
- Select Save and continue.
-
Complete the remaining steps that are necessary.
For more information, see Create an AI agent.
-
Select Save and test to complete the configuration steps or review a previous step by selecting Back.
Selecting Save and test leads you to the AI agent testing page, where you can test the AI agent that you created. For more information, see Manually test the execution of an AI agent.
To test the AI agent, you must have the sn_aia.admin role and any roles the ACLs configured for the AI agent and its tools require, if applicable.
次のタスク
Enable shipping coordinators to trigger AI agents from the Now Assist panel to enter data automatically into the Shipping Management application.
For more information, see Example: Use AI agents to automatically enter data into the shipping management app.