Create an external AI agent with manual integration
Create an external AI agent by manually integrating a third-party agent in AI Agent Studio to use in agentic workflows.
시작하기 전에
If you don’t see the option to create an external agent, confirm that your administrator has selected Allow ServiceNow to access External AI Agents. This option is available on the Settings page in AI Agent Studio, under External AI Agents > Discoverability.
Your instance must be at least on Zurich patch 4.
Role required: sn_aia.admin
프로시저
- Navigate to All > AI Agent Studio > Create and manage > AI agents.
- Select New > External.
- Select the Manual integration method.
-
In the Connect a provider step, complete the form fields to connect to your AI agent.
-
In the Enter details about the provider section, select the alias and subflow for your external AI agent.
Your alias should point to the agentic AI provider and include an authentication token. You can create an alias by selecting Create new alias. After the record is created, you can refresh or start the guided setup again to see the new option.
The API type is Subflow. Select a subflow that matches the provider. You can create your own by selecting Create a new subflow.
-
In the Enter initial details about the external AI agent section, complete the fields.
표 1. Enter initial details about the external AI agent section form fields Name
Description
Agent ID
Unique identifier for your agent according to your agentic AI provider.
Metadata
Structured JSON that includes the required fields for your AI agent to function, for example, the model that the AI agent uses.
Communication mode
Either Synchronous (real-time) or Asynchronous (allows for delay).
Analyze response
Either true or false.
Select Save and continue to navigate to the next step.
-
In the Enter details about the provider section, select the alias and subflow for your external AI agent.
-
In the Define the specialty step, add details about the AI agent to give the AI Agent Orchestrator context for how to use the agent in agentic workflows.
These fields provide context for the AI Agent Orchestrator to help understand the functions and steps required for the AI agent to have served its purpose within the workflow. Detailed role and instruction information create more effective AI agents. For suggestions for writing AI agent roles and instructions, see General guidelines for creating AI agents and agentic workflows.
-
In the Describe the AI agent section, add a name and description for your external AI Agent.
The name and description field are used by the AI Agent Orchestrator to help determine when to use your AI agent. The more thorough your description, the more likely the AI agent is to be used correctly within the agentic workflow.
You can select Use Now Assist to help generate the content for the name, description, AI agent role, and instructions fields. You can still change these fields are generated.
- In the Instruct the AI agent section, add the AI agent role and instructions.
-
Configure access control lists (ACLs) for the AI agent.
주:The ACLs determine who has access to discover and execute the AI agent. To learn more about the ACLs you can create in AI Agent Studio and how to add more advanced security configurations, see Implement access control in Now Assist AI agents.
This is a required step. If you have previously configured an AI agent without creating an ACL, you must generate an ACL before you can make other modifications.
표 2. Define who can access the AI agent Field Description User access The type of users whose access for the AI agent is defined by the following options: - Any authenticated user: Any user who is logged in can access the AI agent.
- Users with specific roles: Users that have at least one of the roles assigned to them can access the AI agent. This is the default option.주:If a user doesn't have access to an AI agent or if the user doesn't have access to at least one of the AI agents in the respective agentic workflow execution, then the whole execution aborts before the first AI agent is initiated.
- Public: Any user can access the AI agent even without logging in. Use this option only when you want guests to be able to access the AI agent.
Role Assign one or more specific roles from the drop-down menu. 주:Selecting the role is possible only when you chose the Users with specific roles user access.
-
In the Describe the AI agent section, add a name and description for your external AI Agent.
-
In the Select a display step, choose where you want the AI agent to appear and what message users see when the AI agent is running.
-
Select your AI agent's availability.
Set the Status to active if you want the AI agent to be available to users with the correct role.
-
Select a display channel.
You can choose to use a Virtual Agent and specify which assistant you want to access the AI agent. if you want to test the AI agent first, you don’t need to select a display channel yet.
-
Choose processing messages to display to the user when the AI agent is executing.
For example, Initiating AI agent or Processing record details, or An AI agent is looking into the request.
-
Activate the AI agent.
Select the toggle to activate the AI agent if you want the AI agent to be discoverable. If you want to test your AI agent first, wait until after you have tested it before activating it.
If you don't see this option, you may need to scroll.
-
Select your AI agent's availability.
- Select Save and test to save the AI agent details and go to the Testing page of AI Agent Studio.
결과
Your external AI agent is connected to the ServiceNow AI Platform.
다음에 수행할 작업
You can test an execution of your AI agent or its data access. You can also add it to a new or existing agentic workflow. See Create an agentic workflow for the steps to create or configure an agentic workflow.