Skip to main content

Part 2: Creating and Attaching Tools

Now that the agent exists, you need to give it tools to interact with your data. In this section, you'll create API tools to retrieve invoice, purchase order, and GRN information.

  1. In Agent Garden, click the Tools icon in the left-hand navigation bar.

    Tools Navigation

Create a New API Tool

  1. Click Create New Tool.

  2. Select API from the Agent Designer modal and click Add Tool.

    API Tool Selection

Define the Tool Signature

  1. Tool Name: [builderInitials] Query Invoices

  2. Description: Retrieve Invoice by Invoice Number from ERP API

  3. Under Input Parameters, click + Add Input Parameter.

    • Name: Invoice Number
    • Description: Invoice Number to use for query
    • Type: Select String from the dropdown.
    • Click Add Input Parameter.
  4. Click Save & Continue.

    Tool Signature

  5. Choose Add Manually under Configuration:

    1. Base URL: https://c04-usa-east.integrate.boomi.com

    2. Method: GET

    3. Endpoint Path: /ws/rest/tools/invoice

    4. Query Parameters:

      • Name: invoice_doc
      • Value: {{Invoice Number}}
    5. Basic Authentication:

      • Username: boomi_joel_davenport-XBUHTV.MOKSAY
      • Password: 7880eeac-4e46-4a03-b7a3-fd421fd5e20b

      Tool Configuration

Review and Deploy the Tool

  1. On the Review screen, verify the tool's configuration and click Deploy Tool.
  2. Confirm by clicking Deploy in the pop-up.

Create two more API tools for PO and GRN retrieval

PO Tool Signature

  1. Tool Type: API Tool
  2. Tool Name: [builderInitials] Query Purchase Orders
  3. Description: Retrieve Purchase Order by PO Number from ERP API
  4. Input Parameter:
    • Name: PO Number
    • Description: PO Number to use for query
    • Type: Select String from the dropdown.

PO Tool Configuration

  1. Choose Add Manually under Configuration:
    1. Base URL: https://c04-usa-east.integrate.boomi.com
    2. Method: GET
    3. Endpoint Path: /ws/rest/tools/purchaseOrder
    4. Query Parameter:
      • Name: po_number
      • Value: {{PO Number}}
    5. Basic Authentication:
      • Username: boomi_joel_davenport-XBUHTV.MOKSAY
      • Password: 7880eeac-4e46-4a03-b7a3-fd421fd5e20b

GRN Tool Signature

  1. Tool Type: API Tool
  2. Tool Name: [builderInitials] Query GRNs
  3. Description: Retrieve GRN by PO Number from ERP API
  4. Input Parameter:
    • Name: PO Number
    • Description: PO Number to use for query
    • Type: Select String from the dropdown.

GRN Tool Configuration

  1. Choose Add Manually under Configuration:
    1. Base URL: https://c04-usa-east.integrate.boomi.com
    2. Method: GET
    3. Endpoint Path: /ws/rest/tools/grn
    4. Query Parameters:
      • Name: po_number
      • Value: {{PO Number}}
    5. Basic Authentication:
      • Username: boomi_joel_davenport-XBUHTV.MOKSAY
      • Password: 7880eeac-4e46-4a03-b7a3-fd421fd5e20b

Attach the New Tools to Your Agent

  1. Navigate back to the Agents screen.

  2. Click on the agent's name ([builderInitials] Invoice Reconciliation Agent) → EditDisable to enter the configuration screen.

    tip

    You must disable an agent before making changes.

  3. On the Tasks tab, find the Collect Procurement Documents task.

  4. Click the Manage Tools button for this task.

  5. Click + Add New Tool.

  6. Search for and check the boxes for the following tools:

    • [builderInitials] Query Invoices
    • [builderInitials] Query Purchase Orders
    • [builderInitials] Query GRNs
  7. Click Add Tool, and then Save.

  8. Click Save to save the agent.