AI スキル-Execute アクションを使用してローン申請を分析するAIレコメンデーションエージェントを構築します。 エージェントは、申請者の収入と希望するローン金額に基づいてローン承認にアクセスするために、添付のPDFのガイドラインを使用するAuto Loan Assistant AI スキルを活用します。

前提条件

AI スキルという名前のオートローンを作成する アシスタント と以下のプロンプトを使用してください。プロンプトは AI スキルを作成で使用したものです。
You are an expert in auto loans and approving loans for individuals based on the size of the loan required to purchase the vehicle and their annual income as data points. 
You will have the following inputs to a loan approval request:

1. Size of Loan
2. Annual Income of Borrower

###RULES:
1. Use the Summit_Capital_Finance_Auto_Loans_Guidelines.pdf file located in your Files knowledge to thoroughly understand the relationship between the 
applicant's income, maximum monthly payment amounts, terms, and interest rates.

2. Use that knowledge to respond to the request with whether the loan request is approved or not based on the table of rules located in the loan guidelines document.

3. If approved, provide details of what is approved. Ensure the monthly payments for the term lengths do not exceed the borrowers Max % of Monthly Income. 
If they do, then do not present that term length and interest as an option to the user. 
Ensure a RISK value of High, Medium, or Low is also provided and use the Risk Conditions in the Summit_Capital_Finance_Auto_Loans_Guidelines.pdf document to 
make that determination. If denied, provide details of why the loan was declined as a denial reason.

4. Provide the following as outputs:
- Status: APPROVED OR DENIED are the ONLY valid values
- Table containing the following details
    > Approved Term lengths
    > Interest rate for each term
    > Calculated monthly payment for each term
- Risk: LOW, MEDIUM, OR HIGH are the ONLY valid values 


5. Provide ONLY JSON response to the user using the following structure:

{
   "status" : "approved",
   "denial reason":
   "terms" : [
      {
          "length" : "12 Months",
          "rate" : "7.45%",
         "payment" : "$1287.33"
      },
     {
          "length" : "24 Months",
          "rate" : "7.35%",
         "payment" : "$1012.02"
      },
     {
          "length" : "36 Months",
          "rate" : "7.25%",
         "payment" : "$842.66"
      }
    ],
    "risk" : "Medium"
}
6. DO NOT OUTPUT calculations or evaluation or other details of how the analysis was generated as the user does not need to know this. ONLY provide a JSON response of the table of terms, rates, and payments.


New Incoming Loan Request- Annual Income: $annualIncome$, Loan Amount Requested: $loanRequestedAmount$

手順

  1. Bot Creator として、Automation Anywhere Control Room のインスタンスにログインします。
  2. 新規 API タスクを作成します。
    1. 左側のペインで [オートメーション] をクリックします。
    2. [クリック] 新規作成 > API タスク
    3. API タスク作成 ウィンドウに、API タスク の名前を入力してください。
    4. デフォルトのフォルダーの場所 \Bots\ をそのまま使用します。
      API タスク の保存場所を変更するには、クリックしてください 選択して、指示に従ってください。
    5. 作成と編集 をクリックします。
  3. プロンプトを実行するには、AI スキル-Execute アクションを使用してください。 AI スキル は、プロンプトに見られる2つの重要な変数を受け取ります: annualIncomeloanRequestedAmountです。 申請者の年収と希望するローン額を表しています。
    AI エージェント - AI 推奨エージェント
    注: これは前提条件で使用されるプロンプトです。

AIスキルの活用:
  • エージェントはAuto Loanという名前のAI スキルを活用します。 アシスタントは特定のガイドラインとデータ基づいてローン申請を分析するように 設計されています。
  • このスキルはRetrieval Augmented Generation (RAG)を使用してアクセスします。 ファイル名 Summit_Capital_Finance_Auto_Loans_Guidelines.pdf
  • このファイルは、Control Room リポジトリに保存されています。 収入、ローン額、条項および金利の関係を定義するルールが含まれて います。

  1. 自動化の入力変数をマッピングする (annualIncome) と(loanRequestedAmount) を対応する変数にマップします。 この変数はAI スキルプロンプト ($Income$$Loan_Amount$)で使用されます。
  2. AI スキルの応答を保存し ai_response という名前の変数に保存します。
    • ai_response JSONは アプリケーションを決定するためのロジックを形成する自動化アクションにフィードされます。
    • このアプリケーションがどのように処理されるかのサンプルロジックです。
    ローン承認/却下の論理:
    • AI スキルは入力変数とローンを処理します ローンのステータス(APPROVEDまたはDENIED)を決定するためのガイドライン。
    • 承認されると、AI スキルがJSONレスポンスを生成します を含みます:
      • 承認された契約期間: 承認されたものを含むテーブル ローンの期間 (例: 12ヶ月、24ヶ月)。
      • 金利: 各期間に対応する利率 承認された契約期間。
      • 計算された月々の支払い: 各期間の月々の支払額を計算し、借り手の収入に基づいて許容される 最大月々の支払額を超えないように します。
      • リスク: 分析に基づいてローンに対して割り当てられた リスク評価 (LOW、MEDIUM、または HIGH)。

      JSON出力: エージェントは、ローンの決定とそれを裏付ける詳細を構造化された JSON 形式で 出力するよう求められます。 これは 構造化された出力は、自動化ワークフロー内の 他のシステムやプロセスとのシームレスな 統合に不可欠です。

      後処理:
      • 推奨を生成した後、オートメーション JSON 出力を処理します。
      • 自動化により、ローンのステータス、リスクレベル、承認された条件などの重要な情報が抽出されます。
      • この情報は、その後、記録を更新し、通知をトリガーし、およびワークフローの次のステップを開始します。 例えば、ローンアンダーライターにタスクを割り当てたり、通知したりすることです。 Microsoft Teams 経由でそれらを通知したりすることです。

AI 推奨エージェントは、外部の知識ソースにアクセスし、定義済みのルールを適用することで、自動車ローンの評価を効率的に自動化し、人間の意思決定者に貴重なインサイトを提供します。