Integrating AI agents
An AI agent in the designer is used to call an AI agent built in IBM® watsonx™ Orchestrate®. watsonx Orchestrate AI agents provide powerful AI capabilities that you can integrate directly into your workflow automations. The designer provides a discovery mechanism to find the AI agent in watsonx Orchestrate that you want, and to generate an AI agent artifact in the designer.
In the designer, you can discover AI agents from watsonx Orchestrate. As the result of the discovery, an AI agent artifact is created in the designer.
The AI agent editor shows you relevant information about the AI agent and allows you to specify an API key that is used for invocation at runtime. In the runtime, this API key can be overwritten by an administrator by using the Operations REST API.
To call an AI agent, you use an AI agent activity in a service flow.
To discover an AI agent from watsonx Orchestrate and generate an AI agent artifact in the designer that you can use in a service flow, complete the following steps.
Before you begin
Before you can use this feature, you need to configure the AI agents integration. You need watsonx Orchestrate on Amazon Web Services (AWS).
- Apply the following watsonx Orchestrate endpoint configurations:
token-url: Used for authentication. For more information on how to obtain the token-url, see IBM watsonx Orchestrate API
. service-instance-url: Used to access the watsonx Orchestrate instance during discovery. For more information on how to obtain theservice-instance-url, see Getting the API endpoint.
Add the following configuration to your 100Custom.xml file.
<server> <wxo merge="mergeChildren"> <token-url>https://iam.platform.saas.ibm.com/siusermgr/api/1.0/apikeys/token</token-url> <discovery> <service-instance-url>https://api.<hostname>/instances/<tenant_id></service-instance-url> </discovery> </wxo> </server>Replace
<hostname>and<tenant_id>with your specific environment values. - (Cloud Pak for Business Automation) Depending on your environment, use one of the following custom resource parameters to
enable the 100Custom.xml snippet.
- For Workflow Authoring, use
bastudio_custom_xml. For more information, see IBM Business Automation Workflow Authoring parameters. - For Workflow Process Service
Authoring, use
lombardi_custom_xml_secret_name. For more information, see IBM Workflow Process Service Authoring parameters. - For Workflow Runtime, use
lombardi_custom_xml_secret_name. For more information, see IBM Business Automation Workflow Runtime and Workstream Services parameters. - For Workflow Process Service
Runtime, use
lombardiXML. For more information, see CP4BA Workflow Process Service Runtime parameters.
- For Workflow Authoring, use
- (Business Automation Workflow on
containers) Use the
lombardi_custom_xml_secret_namecustom resource parameter to enable the 100Custom.xml snippet. For more information, see Business Automation Workflow on containers authoring parameters
and Business Automation Workflow
on containers runtime parameters
. - Make sure your Cloud Pak for Business Automation instance can access the watsonx Orchestrate instance.
- Build or identify the AI agents in watsonx Orchestrate that you want to use in your workflows. For more information on creating AI agents, see Building agents.
Procedure
Discovering an AI agent
Viewing and configuring the discovered AI agent
Using the AI agent in a service flow
What to do next
- Install your workflow automation to a workflow server for production use. For more information, see Installing workflow automations and automation services.
- Manage the API as needed. Administrators can override API keys by using the Operations REST API. For more information, see Operations REST APIs.