Skip to content

Robot sessions

A robot session is a Windows user account that the bot uses to run unattended execution. It stores a (reusable) Windows username and password, and is what gives the robot a desktop to work on when no one is logged into the machine.

It is a resource in the environment (like agents or credentials) and is not tied to a specific agent: the same robot session works for any agent in the environment.

ModeHow the bot runsDo you need a robot session?
AttendedIn the Windows session of a person who already has their desktop open (she launches the bot on her computer)No — use the desktop that is already open
UnattendedOn a server or VM with no one present, with Agent running as a Windows serviceYes

The key point: interface automation (moving the mouse, opening windows, automate the desktop or a windowed browser) requires an active Windows desktop. In unattended, that desktop doesn’t exist on its own — no one is logged in. The robot session solves this: the agent uses that Windows account to open (or reuse) a desktop session of the bot, and runs the automation within it.

  1. Enter the environment and open the Robot Sessions tab.
  2. Click New session.
  3. Fill out the form:
    • Name — an identifier for the session (e.g. bot-cuenta-01).
    • Windows user — the Windows account, with domain if applicable: DOMINIO\bot01 or bot01 (local account).
    • Windows Password — the password for that account.
  4. Click Create Session.

modal "New Robot Session" with Name, Windows User and Windows Password.

To change your password later, edit the session and enter the new password (leave it empty to keep the current one).

For a robot session to work unattended, the Windows account must meet, on the agent machine:

  • Remote Desktop Login (RDP) permission The agent opens a desktop session for the bot using a local Remote Desktop connection; The account requires the “Allow login via Remote Desktop Services” right and Remote Desktop is enabled on the machine.
  • Batch login. The agent automatically grants the batch login (SeBatchLogonRight) right to the account.
  • Valid and non-expiring password. If the password expires or changes, runs will fail at login until you update the password in the robot session. That is why it is advisable to use a service account with a password that does not expire.

The robot session is chosen when launching the process:

  • In Run Manually, the new run dialog asks for process, agent, and robot session (all three are required).
  • In scheduled triggers, you configure the robot session with which each automatic execution will run.

Each selector option displays the name, Windows user, and state of the session.

Status (on the portal)Significado
DisponibleThe session is ready to use
No disponibleThe account does not have a usable desktop at this time (no active session, or a connection/credentials issue)

The agent reports the status of the sessions to Zoan Cloud; If one becomes Unavailable just when it should run, check that the machine is turned on, that the account can log in via RDP, and that the password is still valid.

Don’t confuse them — they are different and complementary things:

Robot sessionCredencial
What does it keepThe Windows account under which the bot runsSecrets of systems that the bot uses (ERP, email, API, DB)
for whatGive the bot an unattended desktopLet the playbook access a system without exposing the secret
How to useIt is chosen when executing the processIt is referenced in the playbook with = credential("nombre")