Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Task 02: Create a child agent to handle HR inquiries

Introduction

HR data is sensitive and must be accessed through tightly controlled interfaces. Zava’s governance expectations require HR questions to be answered through authenticated tools, with clear separation from other business domains.

Description

In this task, you’ll create HRInquiryAgent as a child agent and connect it to the deployed MCP server using the provided base URL and API key. You’ll then update the parent routing agent so HR requests are delegated to HRInquiryAgent and tested end to end.

Success criteria (single-line, result-only)

  • HRInquiryAgent connects to the HR MCP server and returns correct HR directory results when routed a sample HR prompt by the parent agent.

Key steps


01: Create the agent

  1. In the left pane, select Agents.

    di4k76kz.jpg

  2. Select Marketing-HR-Domain-Router.

  3. On the command bar of the Marketing‑HR‑Domain‑Router agent, select Agents.

    h4j0s57k.jpg

  4. Select Add an agent.

    thjan1yy.jpg

  5. Select New child agent.

    aozvr0mj.jpg

  6. Provide the following details:
    • Agent Name: HRInquiryAgent
    • When will this be used?: The agent chooses - Based on description
    • Agent Description:
     HRInquiryAgent is an internal HR directory assistant that helps employees quickly find HR team members by skill, role, language, or name. It provides clear, concise answers based on the available HR staff data, helping users identify the right HR contact for recruitment, onboarding, performance management, training, employee relations, and other HR needs.
    
  7. Add the following text to the Instructions section.

     You are an HR‑specialized child agent.
     Any inquiry involving HR topics - including but not limited to hiring, recruiting, employee data, skills, languages, onboarding, offboarding, compensation, benefits, training, employee relations, conflict resolution, performance management, workforce planning, HR analytics, or any request referencing HR personnel (such as John Doe, Jane Smith, Alice Johnson, Bob Brown, Emily Davis) - must be handled exclusively by calling the  HRMCPServer Tool.
     You must NOT answer HR questions directly. You must NOT generate your own HR content.
     If the user asks anything outside HR, politely decline and tell them to ask the primary assistant.
     When uncertain, assume the request is HR‑related and use the HRMCPServer Tool.
    
  8. Select Save.

  9. On the command bar for the child agent, select Tools.

    bo35bsuo.jpg

  10. Select + Add a tool.

    wmprz328.jpg

  11. Select Model Context Protocol.

    23f6tkgs.jpg

  12. Provide the following details under Model Context Protocol:
    • Server Name: HRMCPServer

    • Server description:

        This file contains a structured list of HR professionals, each with their name, contact information, spoken languages, key skills, and current HR role.
      

    21luxp3e.jpg

  13. Go to the virtual machine desktop, locate the MCP_Info.txt file, and open it.

    undjfb72.jpg

  14. Copy the MCP Base URL value from the MCP_Info.txt file you just opened.

    l5x2tp05.jpg

  15. Go back to Copilot Studio and paste the URL into the Server URL field.

    b331zeir.jpg

  16. In the Authentication section, select API Key.

  17. In the MCP_Info.txt file, copy the Header Name value.

    c40zwg3a.jpg

  18. Go back to Copilot Studio and paste this value into the Header Name field.

    eq9nthh1.jpg

  19. Select Create. Wait for the confirmation message to appear.

    phicsg1r.jpg

  20. Open the dropdown next to Not connected and then select Create new connection.

    dane1ho6.jpg

  21. In the MCP_Info.txt file, copy the value of the API Key.

    js9rye0a.jpg

  22. Return to Copilot Studio and paste in the key.

    z0af8lna.jpg

  23. Select Create.

    xn7jgyhh.jpg

  24. Wait for the green checkmark to display next to your MCP Server name. This means you’re all set.

  25. Select Add and configure then wait until the process completes. The MCP Server is added as a tool to your child agent.

    gru03k3g.jpg

    clvnugi6.jpg

  26. On the command bar, select Settings and then Connection Settings.

  27. For both HRMCPServer and ZavaOpenAPICall, select Connect and then select Submit.

  28. Wait until the Status is Connected and then close the Settings page.

    dwt22093.jpg


02: Update the parent agent instructions

  1. On the command bar for Marketing-HR-Domain-Router, select Overview.

    efrhrvwx.jpg

  2. In the Instructions tile, select Edit. Search for and select If HR, delegate to HRInquiryAgent.

  3. Highlight and delete HRInquiryAgent and then enter /. Select the HRInquiryAgent agent from the list.

    xontghn9.jpg

  4. On the Instructions pane, select Save. Then, on the command bar, select Publish.

  5. Start a new test session and submit the following prompts. Review the responses.

    • MCP HR Test prompt 1:

        Who should I contact for employee relations?
      

    qfmrfe8u.jpg

    • MCP HR Test prompt 2:
        Who can assist me with the onboarding and training process and also speak French?
      

    mkyfqs26.jpg

    • Marketing Test prompt 1:
        Which category generated the highest revenue in Nov-Dec 2025, and what percentage of total net revenue did it represent? Also compare its average ticket to the overall AOV.
      
    • Marketing Test prompt 2:
        Which promotion was most efficient (lowest discount‑to‑revenue ratio), and what was its average discount per order and share of total orders?
      

    tx0smrtv.jpg