Follow the Money - Medium

Resource Page Link

This is the challenge page where you will review the alerts assigned to you and see the results of the agent in action.

https://pathfinder.automationanywhere.com/challenges/training/TrustworthyBank/RedFlags.html

Control Room Link

This is the link to the control room you will be performing all hands on activities within.

https://aa-community.cloud.automationanywhere.digital/

API Documentation Page Link

The resource below has all the API Documentation for this process.

View API Documentation (YAML)

1. Update the Human Review Form

Steps:

  1. Navigate to Bots/BAA/FollowTheMoney/Medium/Tools/AMLHumanReview and click the name to open it.
  2. In the sidebar, locate Table in the elements portion and drag a table into the form.
  3. In the table properties section on the right, rename the table in element label:
    Transaction Details
  4. Lower in the properties section, find and rename the 4 columns from top to bottom:
    • Transaction Date
    • Transaction Amount
    • Transaction Type
    • Reason for Inclusion
  5. Click Make table uneditable.
  6. Drag a Hyperlink in below the table. In the properties section, update the display text to:
    Review and complete investigation in assigned alerts
    Update the URL to:
    https://pathfinder.automationanywhere.com/challenges/training/TrustworthyBank/RedFlags.html
  7. Drag a Text box in below the hyperlink. In properties, update the element label to:
    Work Item ID Number
  8. Drag another text box to the right. If you hover over the existing one, you can place them in the same space. Name this box:
    Subject name
  9. Make both of the text boxes uneditable using the 'Mark field uneditable' check box.
  10. If you dragged them into the same space, click the space to update its properties and click Make cells width equal.
  11. Press Save and close the form.

2. Update GetNextAvailableAlert API Task

Steps:

  1. Navigate to Bots/BAA/FollowTheMoney/Medium/Tools/GetNextAvailableAlert and click the name to open it. Take note of the 4 variables already created in the Variables sidebar.
  2. Open the API Documentation page in a new tab and find the API call for this action. Here you can see the exact structure of the response.
  3. Back in your API Task tool, open the Actions pane on the left and find JSON Utilities. Find the Start session and End session actions and drag them in one at a time below the REST Webservices action.
  4. Find the Get node value action and drag two in between the start and end sessions.
  5. Click the Start session action and update the properties. Click Payload and add the variable below. You can copy and paste it or use the variable mapping tools: typing $ brings up the available variables, and clicking the (x) lets you browse all of them.
    $NewAlertDetails$
  6. Click the first Get node value action and enter:
    work_id_number
    In the Assign output to a variable drop-down, choose AlertNumber.
  7. Click the second Get node value action and enter:
    subject.full_name
    Assign this output to SubjectName.
  8. Save and close the task.

3. Build the GetBusinessDetails API Task

Steps:

  1. Navigate to Bots/BAA/FollowTheMoney/Medium/Tools/GetBusinessDetails and click the name to open it. Notice it is completely blank.
  2. At the top, hover over the name of the task and click the pencil that appears. Update the description to:
    This tool searches the BizPro source for news and information about a specific business.
  3. Open the Variables sidebar and click the plus sign to create a new variable.
    • Name:
      APIKey
    • Description:
      This is the API Key that allows access to the system of record.
    • Check Use as input.
  4. Repeat for a second variable:
    • Name:
      BusinessName
    • Description:
      This is the name of the business you want to get details for.
    • Check Use as input.
  5. Create a third variable, this time set as an output:
    • Name:
      BusinessDetails
    • Description:
      This is the detailed business profile for the requested business.
    • Check Use as output.
  6. Back in the Actions sidebar, scroll down to find Rest Web Services. Find the Get method and drag it in.
  7. Configure the Get request:
    1. Click the Get method to ensure the properties tab is open.
    2. Enter the following in the URI field:
      https://fuxjyedytrihhdolobrz.supabase.co/functions/v1/api-business-profile/lookup?name=$BusinessName$
    3. Below, in Custom headers, click Add Header.
      • Name:
        X-API-Key
      • Under Value, click Insecure string and map in the APIKey variable you created. To paste it in:
        $APIKey$
      • Click Add.
    4. In Advanced options, check Capture failure response.
    5. Scroll down to Assign the output to a variable. Make sure Multiple variables is selected and click Add variable mapping.
      • For Key, enter:
        Body
      • In Map to variable, select BusinessDetails. Click Add.
    6. Save and close the API Task.

4. Add the New Tool to the Agent

Steps:

  1. Navigate to Medium/FollowtheMoneyAgent and click to open it.
  2. Click the Tools tab at the top. In the tools pane, click Add tool and select API Task.
  3. In the new sidebar for that tool, click Choose. In the pop-up, click Browse and locate the GetBusinessDetails API task you just created.
  4. Take note that the description, variables, and variable information have populated exactly as you entered them inside the API task.

5. Add Your Form and Run the Process

Steps:

  1. Navigate back to Bots/BAA/FollowTheMoney/Medium and open FollowtheMoneyProcess.
  2. In the left bar, in the elements pane, drag in a Form element right in front of the End node. In the right properties window, scroll down to find Form and click Choose. Browse to the form you created in step 1, located in BAA/FollowtTheMoney/Medium/Tools/AMLHumanReview
  3. In the Input variables section, map the output from the Structure Transactions step. Paste the following into the input variables section for the Table Table0:
    $&"Structure Transactions"{output}{TransactionTable}$
  4. Continue mapping the form's input variables:
    • In TextBox0 - Work Item ID Number, paste:
      $&GetNextAlert{output}{AlertNumber}$
    • In TextBox1 - Subject name, paste:
      $&GetNextAlert{output}{SubjectName}$
  5. Hyperlink0 will remain with no input value.
  6. Save the process.
  7. Open the Red Flags resource link, navigate to My Profile, and copy your API Key.
  8. Back in the process, in the top right, click Run. When prompted for the input variables, paste your API Key and click Confirm.
  9. The agent will run against the first item in the work queue, update the system of record, and provide you all the relevant transactions for review.