Enable AI agents to securely access SSH parameters in Agentic Desktop
Enable AI agents to securely access credentials, such as usernames and passwords, through Desktop Action Parameter records. This approach protects sensitive values during desktop action execution without exposing them in agent instructions.
Only the users with the sn_aia.admin role can create Parameter records for various parameters that the AI agent securely accesses during desktop action execution. To store both a username and a password, the AIA admin must create two separate Parameter records, one for the username "un_username_group" and one for the password "un_password_group".
Then, users with the sn_aia.admin or now_assist_panel_user role can create Parameter Value records under the Parameter record to store the values. For example, under the "un_username_group" Parameter record, users can create a Parameter Value record to store usernames and under the "un_password_group" Parameter record, users can create a Parameter Value record to store passwords. Only one Parameter Value record can be created per user for each Parameter record. If multiple users need to trigger the same AI agent, each user must create a Parameter Value record for their own credentials.
You can create Parameter records only for username and password. For any other SSH parameters, provide the values either in the agent instructions or in your instructions in the Now Assist panel.
AI Agent instructions during execution
The following example shows how an AI agent instruction can reference stored parameter names:
Connect to SSH server and retrieve my session info. Here are my details:- IP address: 172.27.50.123
- Port: 22
- Retrieve the user name stored in "un_username_group" and the password stored in "un_password_group" parameter records.
Ensure that you use the exact names of the Parameter records. Parameter record names are case sensitive. For example, "UserName" and "username" are treated as different values.
Create Parameter records for SSH credentials
Create a Parameter record with a name that you can reference in your instructions so the AI agent can securely sign in to the SSH server and execute commands.
Vorbereitungen
Perform this task in the ServiceNow instance.
Ensure that you have an active SSH server.
Role required: sn_aia.admin
Prozedur
Store username and password values in the Parameter Value records
Create Parameter Value records for storing the actual username and password values so that AI agents can securely connect to the SSH server.
Vorbereitungen
Perform this task in the ServiceNow instance.
Role required: sn_aia.admin or now_assist_panel_user
Prozedur
- Navigate to .
- Select a Parameter record from the list.
-
Create a parameter value record.