Add the Human Approval Tool to the AI Agent

We now have all that's needed to add the human approval tool to the AI agent: the human approval form, human approval workflow, the human approval integration, and agentic AI tool. We can now add the tool to our AI agent.

Prerequisites:
  1. In the navigation pane, select Projects.
  2. Select the project in which you created your AI agent. For this tutorial, select the Simple Expense Approval Project project.

    The project details page is displayed. You should see created connections, and the integrations you created Auto Approve Expense Report as well as Request Human Approval. You also see the system-generated integrations ReAct Pattern Intg and Get Tool Data.


    Simple Expense Approval Project under the Design tab. The main area shows two columns: on the left, four integrations—Auto Approve Expense Report, Request Human Approval, ReAct Pattern Intg, and Get Tool Data. On the right, four connections—REST_TRIGGER_FOR_HUMAN_APPROVAL, LLM_Connection, REST Connection, and REST_TRIGGER_FOR_AUTO_APPROVAL—are listed with their types (Trigger or Invoke) and status as Configured. The header contains project details, a search bar, design tools, and navigation icons. The left sidebar provides project navigation options.

  3. Check that the Request Human Approval integration is Active.
    The integration must be activated to be used as a tool in an AI agent. If the Request Human Approval integration isn't Active, activate it:
    1. Next to the Request Human Approval integration, click Actions Actions icon, and select Activate.
  4. Add the human approval tool to your AI agent.
    1. In the left navigation pane, select AI Agents AI Agents icon.

      You should see the Simple Expense Approval agent, and the tools Auto Approve Expense Report and Request Human Approval.


      Simple Expense Approval Project" under the Design tab. The main area shows two columns: on the left, four integrations—Auto Approve Expense Report, Request Human Approval, ReAct Pattern Intg, and Get Tool Data—each with version 1.0.0, status indicators (Active or Configured), and additional action menus. On the right, four connections—REST_TRIGGER_FOR_HUMAN_APPROVAL, LLM_Connection, REST Connection, and REST_TRIGGER_FOR_AUTO_APPROVAL—are listed with their types (Trigger or Invoke) and status as Configured. The header contains project details, a search bar, design tools, and navigation icons. The left sidebar provides project navigation options.

    2. In the Agents section, select the AI agent Simple Expense Approval Agent.

      The agent details page is displayed.

    3. In Tools, click + to add a new tool, select the Request Human Approval tool you previously created and click Add.

      Agent details page for Simple Expense Approval Agent. The main section displays the agent’s role (“You are an expense approval agent. Your role is to approve or reject expense claims.”) and detailed guidelines for processing expense approvals. On the right, the Tools panel lists "Auto Approve Expense Report." Below, the Prompt templates section is empty. An "Add tool" panel is open on the right, with "Request Human Approval" checked, and buttons at the bottom Create tool, Cancel, Add.

      You should now see the Human Approval tool added to the AI agent.


      Agent details page for Simple Expense Approval Agent. The main section displays the agent’s role (“You are an expense approval agent. Your role is to approve or reject expense claims.”) and detailed guidelines for processing expense approvals. On the right, the Tools panel lists the tools: Auto Approve Expense Report and Request Human Approval. Below, the Prompt templates section is empty.

    4. Click Save.
  5. Change the AI agent guidelines to take into account the human approval tool.
    1. Under Guidelines, update step 3 to indicate that manager's approval is required for expenses more than $50.

      Replace: 3. If the expense is more than $50 USD, reject the expense.

      with:

      3. If the expense is more than $50 USD, get the manager's approval.

      Agent details page for Simple Expense Approval Agent. The main section displays the agent’s role and detailed guidelines for processing expense approvals. Step 3 in the guidelines says

    2. Click Save.
      Your agent is now ready to run.
  6. Click Back Back icon to return to the AI Agents page.
  7. Activate the AI agent.
    1. In the Agents section, find the Simple Expense Approval Agent.
    2. Click Actions Actions icon, and select Activate.