OBLYTECH Logo
OBLYTECH Logo

ServiceNow Task Mining Features: Capture, Setup and Analysis

ServiceNow Task Mining logs events from desktop applications on workstations where a manager has approved collection. It works through a workstation agent and projects configured on the instance, and each project reads its data through one of three analyses: Task activity, Overall activity or Task timeline. Power users and admins set event filters, retention and notifications, and each workstation user gives explicit consent before collection.

What the Task Mining agent records

The agent is a service installed on a workstation that logs certain events from desktop applications. It records activity for active windows. User-initiated recording covers mouse actions, hotkeys and authentication integrations.

Each record is linked to a workstation user identifier, so analyses can group activity by person, while the user data tables conceal that identity and are restricted to system admins.

Data category What it holds
Workstation user data Login name, domain name, IP address and workstation name
Workstation user activity Timestamps and a description of each activity
Screen information Screen names and possible personal information, depending on the application
Screen content Information on web screens and interface objects, which can include contract numbers and client names

Task Mining does not collect password field data. Window titles and web app URLs can still contain session tokens, user names or email addresses, and interface attributes can hold customer names typed into forms.

Drag-and-drop is not recorded, trackpad gesture scrolling is not detected, and duplicate actions are not removed automatically. Agent interface events cannot be excluded from recordings automatically, so analysts filter them during analysis. Mouse clicks and keyboard shortcuts are recorded more reliably.

The Windows agent can serve several users at once over remote desktop and virtual desktop sessions, and the macOS agent serves one user at a time.

Privacy controls and consent

Each data request goes to the manager of each workstation user it covers, and the manager approves or rejects it. A rejection needs a reason. Once collection is enabled on a workstation, the user is notified and gives explicit consent.

The product includes these safeguards:

  • Encryption of data during transmission and while stored.
  • A system-level list of applications excluded from monitoring.
  • Event filters that exclude matching activity or replace its details.
  • Event masking, which hides specific attributes of an event rather than dropping the event.
  • Private mode, which the workstation user switches on to pause collection.
  • Automatic deletion of data that no active project uses.

Notification text is configurable. An empty private startup text removes the private mode timeout for workstation users, and an empty value hides the notification altogether.

Setting up the instance

An admin installs Task Mining Core, identified as sn_tm_core, from the list of available applications. The install can load demo data on a development or test instance. It also brings in missing Store applications and plugins, so entitlements should be confirmed first.

Configuration is completed on each instance, in any order after installation. The default excluding filters should be left unchanged.

Configuration area What it controls Who can change it
Agent parameters System-level agent records, edited through the Value field Power user or admin
Anonymization Replacement term for filtered fields (default BLOCKLISTED) and minimum identification level (default login name; initials or an anonymized code are alternatives) Power user or admin
Notifications Consent text, private startup text and private timeout text Power user or admin
Retention Days kept for user data, project data and the DataMart Power user or admin
Event filters Filters that capture, exclude or replace activity Power user or admin

Event filters and retention

Event filters are created before a project starts. Each filter matches on application name, window name or URL, using equals, contains, starts with, ends with or is any. Condition sets combine with AND or OR logic, and a filter can be activated on creation.

Exceptions remove specific screens from a captured application, such as a password screen or a payroll page. Excluded activity is discarded on the workstation and is not stored. A matching filter can also replace application details, so the agent still records timestamps. With no filters active, all activity is captured.

Task Mining checks daily for data due for deletion. Three records set the periods, in days:

  • User data is kept 30 days by default, counted from the record’s start date. The rule applies to records not linked to a project.
  • Project data is kept 10 days by default after the project is closed.
  • The DataMart, which holds mined data with categorization rules applied, is kept 10 days by default after the project was last opened.

Admins can change these numbers and archive projects, but cannot add retention records. An archived project closes after the project retention period and can be reopened.

Installing the agent on workstations

Installation needs the Task Mining Agent Install group, which holds the itil, sn_tm_core.service_user and agent_client_collector_admin roles. The installer is an IT or security user in that group with admin rights on the target workstation. The instance URL and registration key come from the Agent Installation page in the Task Mining system settings, and the same two values apply to Windows and macOS. The agent is installed after the manager approves the data request.

On Windows, the installer runs as a wizard or silently from the command line, with the instance URL and registration key passed as switches. For managed devices, the installer can be packaged for Microsoft Intune and deployed as a Win32 app.

On macOS, the agent is a .pkg archive installed with a one-line Terminal script that also generates the configuration file. For managed devices, a JAMF deployment adds a configuration profile that grants the accessibility permissions capture requires.

The portable Windows agent runs from an extracted ZIP, changes no registry entries, and is intended for proof-of-concept use rather than production.

The three analyses

Each project is set up with one of three analyses, chosen at creation. Tabs switch between them.

Analysis What it shows Filters or fields
Task activity Time spent on and frequency of activities inside defined tasks, plus average task duration Dates, categories, applications, users and tasks
Overall activity A layered view of categorized applications that workstation users run Dates, categories, applications and users
Task timeline A step-by-step view of each collected task Collector, duration, steps, applications, task type and dates

The task activity analysis has a treemap named Average time per category. Hovering over a tile shows its share of total time and average daily usage. A stacked bar chart named Time by workstation user can be sorted from fastest to slowest task execution. A link named View across task timeline opens a chart that splits each task’s length into percentages, so the first section of a 200-minute task shows 20 minutes of activity.

The overall activity analysis reuses the same treemap and bar chart across categorized applications. In the task timeline, selecting a task opens its steps.

Building a project

  1. Create the project with a name, description, start and end dates, an analysis and a cadence, either continuous or targeted. A targeted project uses user-initiated task scopes, so at least one needs to be defined.
  2. Define the task scope. An automated task names a source table, an activity and start and end states. A P1 incident tracker, for example, uses the Incident table, the State activity, New as the start and Closed as the end.
  3. Add workstation users and request their data.
  4. Run the mining job once the project timeline has started. Analyses include users whose approvals are complete and whose agents are installed.
  5. Categorize activities. Five predefined rules ship with the product and cannot be changed. The first four classify non-productive, break, off and idle time, and the MAX rule catches uncategorized activity, which falls into the Other category and is hidden from dashboards by default.
  6. Refine and share. Look for large uncategorized areas, ask the power user to refine the rules, then grant access to users or groups.

The categorization list covers the last three days by default, extendable up to 90 days. Collecting a few days of sample activity first makes real application and window names available when rules are written.

Automation requests from the task timeline

Creating an automation request from a task needs the Automation Center plugin installed and configured. The Generate details option, which fills in the description and steps, also needs ServiceNow Otto for Platform and its User Task Step Summarization skill.

The analyst opens the task timeline, selects the task and chooses Edit. This creates a copy with Editable added to its name, so the original stays unchanged. Steps in the copy can be duplicated, deleted or reordered. The Source and Datetime fields cannot be edited. The analyst then chooses Request automation and either Generate with AI or Complete manually. Steps and desktop-action properties are captured in one recording session.

Frequently asked questions

Does a workstation user have to agree before Task Mining collects data?

Yes. The manager approves the data request first, and the workstation user is notified and gives explicit consent. Private mode lets the user pause collection.

Which values does the agent installer need?

The instance URL and a registration key, both copied from the Agent Installation page. The same two values apply to Windows and macOS.

What does the task timeline analysis show?

Each collected task, with its collector, duration, step count, applications, task type, creation date and any linked automation request.

What happens to data that no project is using?

Task Mining deletes it automatically after the retention period. User data not linked to a project is kept 30 days by default, and admins can change that number.