heidloff.net - Building is my Passion
Post
Cancel

Getting started with watsonx.ai Agent Lab

IBM launched the beta release of Agent Lab, a low-code tool for building and deploying agents on watsonx.ai. This post describes a simple example.

Here are the official resources:

Example Scenario

Let’s look at an example customer care scenario of a telecommunications company. Human agents talk with customers to solve their issues. The human agents are supported by digital agents to automate as much as possible the necessary fixes.

Here is a transcript of a conversation with a customer who has a Wi-Fi router issue:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
John (Teltop Customer Care Agent): Hello, this is John from Teltop customer care. How 
can I assist you today?

Mary (Disappointed Subscriber): Hi John, it's Mary again. I've been having a nightmare 
with your service. My home Wi-Fi is acting up, and the TV service over fiber is 
terrible.

John: I'm sorry to hear about the troubles you're facing at home, Mary. Let's address 
these issues. Can you please provide me with your account number or the phone number 
associated with your account?

Mary: Sure, it's 123-555-1234.

[...]

John: Mary, it appears there are some issues with your router. We need to update the 
router software. 

In this example, the software of routers can be updated remotely and automatically.

Tools

Agent Lab provides a list of out-of-the-box tools.

image

Additionally, custom tools can be defined, in the example above a “Router Update” tool. The custom tool requires the phone number from the transcript as input and returns a success message.

image

1
2
3
4
5
6
7
{
  "phoneNumber": {
    "title": "Phone number",
    "description": "Phone number of a subscriber, for example '123-456-7890'",
    "type": "string"
  }
}
1
2
3
4
5
6
def update_router(phoneNumber: str) -> dict:
    response = {
        "success": "true",
        "text": "Router has been updated"
    }
    return response

Agents

Agents need to have a name and a description which is an instruction that is passed to the Large Language Model. For the “Router Update” Agent the description is …

1
2
3
4
You are an expert for router updates in customer care scenarios. 
Based on a transcript of a support call you determine whether a 
router update is necessary. If necessary, invoke the Router Update 
tool to fix the router.

For this transcript the agent detects that the router needs to be updated and does it directly.

image

Next Steps

The best feature is that AgentLab can generate code which you can extend and deploy. I’d like to blog about this soon. The generated code uses the following concepts:

Check out the following resources to learn details.

Featured Blog Posts
Disclaimer
The postings on this site are my own and don’t necessarily represent IBM’s positions, strategies or opinions.
Contents
Trending Tags