Running desktop rpa bots in a shared virtual desktop infrastructure — a pool of VDI sessions reused by multiple bots or shared with human users — adds environment controls that a dedicated machine does not need. The shared setting multiplies interference risks: bots competing for resources, leftover state from one run affecting the next, shared profiles and local files colliding, and unpredictable session startup. The specification table below sets out the controls per bot class, then the two deciding specifications: session isolation and resource allocation, and profile persistence with clean cleanup between runs. The reporting dashboard and retainer contract determine whether these controls are monitored and maintained over the deployment’s life.
Shared VDI deployment and the bots that run there
VDI pools host bot sessions on virtual desktops spun up from a common image, shared across the automation fleet or alongside human remote-desktop users. Shared pools save infrastructure cost and make sessions easy to redeploy, but they remove the stable, single-owner machine that desktop RPA traditionally assumes. Bots that read local files, hold application state, or depend on window and focus behavior can interfere with each other when sessions are pooled and reused.
The fit depends on bot type. Attended bots usually run in a user’s own session and do not belong in a shared unattended pool. Unattended batch bots are the typical pool residents: scheduled, state-per-run processes that can be mapped to sessions as capacity frees. Short-lived transactional bots suit pooling better than long-running stateful sessions that accumulate context over time. Before designing the pool, inventory the bots’ environment dependencies: installed applications, local folders, file paths, desktop settings, and any data held between runs.
Virtual versus hosted deployment trade-offs for bot sessions are compared in desktop versus cloud bot deployments, and the VDI decision follows the same balance between dedicated control and shared efficiency. A shared pool is viable only when the image, isolation, and cleanup controls below are in place; otherwise the pool produces the flaky, unreproducible failures that desktop automation already risks.
Specification table: environment controls per bot class
| Control area | Unattended batch bot in pool | Stateful or long-running bot | Attended bot with human user |
|---|---|---|---|
| Session ownership | Pool session assigned per run, released after | Stable dedicated session held for the bot | User’s own session; bot yields to the person |
| Resource allocation | CPU, memory, session slots sized to peak batch | Reserved capacity so other bots cannot starve it | Share session under the user’s priorities |
| Local state | Working files isolated per run, cleaned afterward | Persistent profile and state storage | User profile and files owned by the user |
| Image and apps | Common gold image with required applications | Image plus bot-specific configuration | User session image with installed runtime |
| Cleanup between runs | Logs and temp files removed, session reset | State checkpointed; session restored to known state | Bot artifacts cleaned after the attended task |
| Failure visibility | Session health and queue load in dashboard | Continuous health monitoring and restart | Bot status visible to the operator |
The table separates bots that tolerate pooled reuse from those that need a stable session. A bot designed around a dedicated machine should not be dropped into a shared pool without reworking its local-file and state assumptions. Pool sizing, image maintenance, and session teardown are infrastructure responsibilities that should be named in the retainer or operations agreement, not left to ad hoc bot owners.
Spec one: session isolation and resource allocation
The first deciding specification is isolation between sessions. Bots in a pool should not share local folders, profiles, or working files in ways that let one run’s data leak into another. Each run gets an isolated working directory for its records and outputs, and session assignment should prevent two bots from occupying the same session concurrently. Shared system resources — application licenses, connectors, and network connections — are allocated so concurrent bots do not exceed limits or collide on the same account session.
Resource allocation prevents noisy-neighbor failures. CPU, memory, and session slots are sized to the peak batch load, with headroom for concurrent runs. A pool undersized for peak volume queues bots behind session slots, extending cycle times past deadlines; an oversized pool wastes license and infrastructure cost. Monitoring should show session utilization, queue depth, and resource pressure, so capacity can be adjusted before batches miss their window. Long-running or resource-heavy bots may need reserved sessions rather than competition for shared pool slots.
Isolation also covers credentials and accounts. Bot service accounts and connector tokens must not be visible across pooled sessions, and a run must not inherit another run’s authenticated application state. Secrets stay in a controlled vault rather than in the pool image or local profile, per the secrets-management practices in secrets management for workflow bots. Application sessions should close or reset between runs, so a leftover login from one bot does not expose another’s records.
Spec two: profile persistence, startup state, and cleanup
The second deciding specification is whether every session returns to a clean, known state between runs. Pool sessions reused across bots carry profile settings, temp files, cached data, and leftover windows from the previous occupant. The startup should rebuild or reset the session to the gold image state: required applications present, local working folders clear, prior temp and log files removed, and no stale dialogs or open sessions hanging. A session that resumes with another bot’s leftover state produces failures that vary by which bot ran first, making them nearly impossible to reproduce.
Profile persistence is decided per bot. Pooled batch bots should rely on a disposable profile reset between runs; anything they must keep goes to an external controlled store, not the local profile. Stateful bots that need persistent configuration and working data should hold that state in external storage attached to their dedicated session, rather than depending on a pooled local profile that may be wiped. Persistent settings, application preferences, and mapped drives should be baked into the gold image or pushed from a controlled configuration source.
Cleanup between runs removes outputs that belong in the audit store, temporary extraction files, downloaded documents, and partial records left by interrupted runs. The cleanup process should verify the session is clear before the next assignment, and logs should record when a session was reset and which run last used it. After an exception or interrupted run, the session should be inspected or reset before reuse, so partial state does not contaminate the next bot’s work. Cleanup failures themselves should surface to the dashboard rather than accumulating invisibly.
Reporting dashboard for VDI bot health and load
The reporting dashboard for a shared pool tracks both bot outcomes and session infrastructure. Bot-level views: records processed per run, exception and failure rates, cycle completion against deadline, and retry volume. Session-level views: active and idle sessions, session pool utilization, queue depth waiting for a slot, resource pressure, and session reset frequency. Together these show whether the pool capacity matches workload demand and whether sessions are being reused cleanly.
Health signals include sessions that fail to start, sessions stuck mid-run, repeated resets, and bots waiting in queue past their SLA window. Alerts escalate when pool capacity backs up or when failures cluster around a particular image or session type. Dashboard history shows capacity trends across cycles and seasons, so pool sizing adjusts before peak batches miss deadlines. Operational metrics stay separate from record-level detail; reviewed records and audit logs remain accessible under the appropriate access controls.
The dashboard should also surface interference symptoms: failures that correlate with concurrent pool load, leftover state detected on session startup, or application-session collisions. These patterns indicate isolation or cleanup gaps rather than a bot logic defect, and they feed image or pool configuration fixes. Reporting exports follow the same scheduled-export controls used for other automation reporting, with retention aligned to the process’s record policy.
Retainer contract for shared-session maintenance
The retainer contract should name who maintains the VDI pool and its controls. Image maintenance: updating the gold image, installing required applications, and rebuilding sessions after changes. Session operations: assignment, reset, cleanup, and capacity monitoring. Bot repairs: selectors and scripts after application or image changes, and exception-queue support. The retainer should distinguish included maintenance from change orders for new bots, new integrations, or rule changes.
Contract terms should cover response windows for pool outages versus ordinary bot issues, how image changes are coordinated with bot owners, and who tests bots after an image or application update. Because shared-pool failures can affect multiple bots at once, the agreement should define escalation for a pool-wide outage and the fallback sessions or manual workaround while it is resolved. Hosting region, session infrastructure location, and data held in pool sessions should be documented, including retention and deletion for local temp data.
Ownership and exit should be explicit: whether the VDI pool is the buyer’s infrastructure operated remotely by the vendor, or a vendor-hosted service. Scripts, configuration, session documentation, and runbooks transfer to the buyer, with vendor operator access revocable at the end of the engagement. Retainer renewal should allow scaling session capacity up or down as workload changes, rather than locking a fixed pool size. Maintenance ownership after vendor changes mirrors the handover questions for other Chinese-built automation, where undocumented shared environments become the hardest dependency to unwind.
When a dedicated session beats a shared VDI pool
Shared VDI pools suit short, transactional, stateless batch bots that tolerate session reuse and clean resets. Dedicated sessions are the better fit for stateful long-running bots, bots with heavy local-file or profile dependencies, bots holding sensitive credentials or persistent application logins, and processes where interference between runs would carry high risk. Mixing models works: short batch bots share the pool, while critical stateful bots keep reserved dedicated sessions.
The choice should be revisited as the fleet changes. A pool that suited early lightweight bots may struggle when heavy or stateful bots join it; capacity and isolation should be reviewed quarterly alongside the bot fleet. Shared VDI RPA works when isolation, cleanup, monitoring, and maintenance are designed into the pool from the start; treating a shared virtual desktop like a free dedicated machine produces the interference and leftover-state failures that undermine unattended automation across the deployment.
Leave a Reply