Tutorial: Creating the Healthcare provider agent on Agent builder
The following step-by-step guides you to create Healthcare provider agent on IBM watsonx Orchestrate Agent builder.
Before you begin
Before you start following this tutorial, you must set up your IBM watsonx Orchestrate ADK environment, where you build agents and tools. It also provides a convenient interface for managing credentials, sending requests, and handling responses from the service’s APIs. See the Installing the watsonx Orchestrate ADK and Installing the watsonx Orchestrate Developer Edition.
Creating the agent and tool files
The following steps guide you to create the agent and tool files in YAML.
-
In your directory, create a folder with the name healthcare_provider.
-
Open a text editor, such as Visual Studio Code.
-
To create the agent, copy the following code:
[YAML] -
Paste the code in the text editor and save the file as
healthcare_agent.yaml
in the healthcare_provider folder. -
To create the tool, copy the following code:
[YAML] -
Paste the code in the text editor and save the file as
get_healthcare_providers.yaml
in the healthcare_provider folder.
Importing the agent and tool files
The following steps guide you to import the agent and tool files to IBM watsonx Orchestrate Agent builder.
- Open the terminal that you commonly use.
- Navigate to the folder. For instance,
cd ~/Desktop/healthcare_provider
. - Run the command
orchestrate tools import -k openapi -f ./get_healthcare_providers.yml
. - Run the command
orchestrate agents import -f healthcare_agent.yaml
.
Testing the agent
Test the agent in the IBM watsonx Orchestrate chat by following the steps:
- Run the command
orchestrate chat start
. - In the chat, enter the question “What are my healthcare providers?”.
You can continue interacting with your agent.