Skip to main content

Part 1: Build your Tooling

1. Build a Web Service Listener

The Web Service Listener will be used as a mock endpoint for the API Tool that will be created in Section 2 and later used within the Agent. This API will offer sample product information for the agent.

Create new folder for Integration processes

  1. Navigate to the Integration service and click on the Build tab.

    Integration Build tab

  2. Create a folder named Agentstudio.

    Create Agentstudio folder dialog

    • The new folder will appear:

      Agentstudio folder in folder tree

Install pre-built process bundle

This lab walks you through building multiple Boomi Integration processes. Some of the processes have been pre-built and will be installed as part of a bundle. Follow the steps below to install the pre-built process bundle.

  1. Click on the following link to access the bundle that contains the pre-built processes: https://boomi.to/5174.

  2. Click the Install button, then choose where to install the process:

    1. Set Install Location to: Install asset in a specific Integration folder

    2. Choose the Agentstudio folder where your processes will be saved for this workshop.

    3. Click Install, then Done.

      Install Component dialog with folder selection

  3. Return to Services → Integration.

    1. Expand the Agentstudio → Processes folder to see the newly installed processes. Open the Agentstudio Product GET process to review the process and how it includes an API endpoint that returns mock product data.

    Agentstudio Product GET process in folder structure

Package and Deploy

With the Agentstudio Product GET process open, you will create a Packaged Component and Deploy it to your test environment created in the prerequisites section.

  1. Select Create Packaged Component Next: Add Details Create Package Component Deploy → Deployment Environment: Test Env (from prerequisites) Next: Select Versions Next: Review Deploy Close.

  2. Navigate to Manage → Runtime Management.

  3. Select the Test runtime → Shared Web Server.

    1. Copy the Base URL for API Requests to your text editor.

      Shared Web Server configuration showing API settings

      Reminder

      Remember to save your Base URL to a notepad for later use.

    2. Ensure API Type is Intermediate and Authentication Type is Basic. If not, set both and select Save.

      danger

      Changing Authentication Type on an existing runtime might cause breaking changes to existing processes. Proceed with caution, or create a new runtime for testing purposes.

  4. Select User Management tab → the default username.

    1. If you see the Show Token button, click it to reveal your token. If not, click Generate Token Save.

    2. Copy and paste the Username and Token to your text editor.

      note

      This API authentication token is different from the Account API Token created at the beginning of this lab.

      User Management showing username and token

      Reminder

      Remember to save your Username and Token to a notepad for later use.

  5. At this point you should have saved a Platform API token, Account ID, Base URL, Username, and Token to your text editor.

2. Build API Tool in Agentstudio

The API Tool will be created within Agentstudio and will execute the process created in the previous section in order to retrieve product data based on a given product code. This tool will be used by the agent you will create in the next section.

  1. Navigate to Agentstudio by selecting the Agentstudio logo at the top right of the screen.

    AI Logo in top navigation

    tip

    You can also access Agentstudio by selecting Services → Agentstudio.

  2. In Agent Garden, select Tools in the left menu.

    Agent Garden Tools menu

  3. Select Create New Tool to build the following API Tool:

    1. Add Tool type: API Tool

    2. Tool name: Get Product Info by Code

    3. Description: Get Product Info by Product Code

    4. Add Input Parameter:

      • Name: Product Code

      • Description: The Product Code

      • Type: String

      • Required: On

        Input Parameter configuration

    5. Select Save & Continue to move to the Configuration section:

      • Select Add Manually.

      • Endpoint Base URL: {Base URL from Section 1}

      • Method: GET

      • Endpoint Path: /ws/simple/getProduct

        Where did this endpoint path come from?

        This path was configured in the pre-built Agentstudio Product GET process API operation.

        API operation path configuration

      • Add Query Parameter:

        • Name: productCode

        • Value: Click the Text Box and Select the {{Product Code}} input parameter already defined.

          Query parameter configuration with Product Code variable

      • Authentication: Basic Authentication

        • Username: {Username from Section 1}
        • Password: {Token from Section 1}
      • Request Type: None

    Complete API Tool configuration form

    1. Select Save & Continue.

    2. Select Deploy Tool Deploy.

    Deploy Tool confirmation dialog