Create and configure an AI agent in the IBM watsonx Orchestrate console before integrating it with OpenPages®.
About this task
An agent in IBM watsonx Orchestrate is an AI-powered
assistant that can interact with users through natural language, execute tasks, and integrate with
various tools and services. When configured for OpenPages, the agent can access contextual
information and perform actions on behalf of users.
Procedure
-
Log in to the IBM watsonx Orchestrate console.
-
Create a new agent and provide a meaningful name and description.
The name and description help users understand the agent's purpose and capabilities.
-
In the Profile section, select an AI model for the agent.
Choose a model that best fits your use case and performance requirements.
-
Customize the welcome message and quick start prompts.
These prompts help users understand how to interact with the agent and what tasks it can
perform.
-
In the Toolset section, add tools to the agent.
-
Click Add tool.
-
In the Add a tool dialog box, choose a sources in the Add
from section. For example, click MCP server and then
Manage MCP servers to import tools from your OpenPages MCP server.
Tools enable the agent to perform specific actions, such as querying data or executing
operations in OpenPages.
-
If you chose MCP server, select the tools from the list that you want to make available to the
agent and then click Add to agent.
-
In the Behavior section, define the agent's behavior by setting
instructions and defining the required context variables.
Instructions guide how the
agent interprets user requests and uses the available tools.
Note: Only variables listed here are available to the agent at runtime.
Here are the context variables exposed by
OpenPages that the agent can leverage:
op_username - User authentication token
op_user_profile_id - User profile ID
op_user_profile_name - User profile name
op_user_locale - User locale
op_base_url - OpenPages
instance URL
op_view_type - Current view type
op_view_name - Current view name
op_object_type_name - Current object type
op_object_id - Current object ID
op_object_name - Current object name
op_workflow_stage - Available workflow stage
Important: When creating custom tools, ensure these same context variables are passed as
parameters to the tools so the agent can share context with the tools during execution.
-
To deploy the agent, click Deploy.
After an agent is deployed, it is ready to be integrated with OpenPages.
- Enable the agent to use context variables at runtime by ensuring that
context_access_enabled: true is specified in the agent specification.
-
In the Channels section, select Embedded Agent,
and then copy the configuration snippet in the Embed on your website
section.
You will use this configuration snippet to integrate the agent with OpenPages.
What to do next
Integrate the agent with OpenPages. For more
information, see Configuring the integration between an agent and OpenPages.
Configuring IBM watsonx Orchestrate agents is an iterative
process. As users interact with the agent, you can refine its instructions, add new tools, and
improve its capabilities based on feedback and usage patterns.