Skip to content

HR Leave Requests

Employees ask for time off; the broker checks balance, policy and team calendar before submitting the request.

Style Probabilistic (Agent Network 1.0)
Kind Use case
Agents / MCP servers 2 / 2
A2A protocol 0.3.0
Policies none
Asset prefix octo_hl1
Tutorial HR Leave Requests: tutorial
Files templates/v1-hr-leave

The network canvas The network canvas

Chat with the deployed broker Chat with the deployed broker

Employees ask for time off; the broker checks balance, policy and team calendar before submitting the request.

  • Style: Probabilistic (Agent Network 1.0): the LLM broker picks agents and tools from its instructions.
  • Agents: Leave Policy Agent (A2A 0.3.0, AgentForce), Payroll Agent (A2A 0.3.0, Azure)
  • MCP servers: HRIS MCP (get_leave_balance, submit_leave_request); Team Calendar MCP (check_team_calendar)

All agents and MCP servers are public A2D mocks, so the network runs without any other system. No credentials are stored in this template.

Deploy in 3 steps

  1. Setup & Connect: connect Agent Fabric (connected app client ID and secret, organization). A²D is not needed: the mock URLs are already the defaults in exchange.json.
  2. In exchange.json, fill in ingressgw.url (ingress gateway base url). In Projects & Deploy, click Deploy on this project (or Build & Deploy in the editor) and pick your gateway. Octoloom asks for each secret variable; nothing you type is stored:
  3. openai.apiKey: your OpenAI API key (required)
  4. When the status light turns green (Deployed and running), click Open chat and paste a prompt below. The Tracer icon under a reply opens the task in the Agent Network Tracer, with each agent and tool call.

Try it

  • E-3001 wants vacation from 2026-12-21 to 2026-12-31
  • You should see: HRIS get_leave_balance: Mia Keller has 14 days left. Team Calendar check_team_calendar (team M-410): Noah Weber is away 2026-12-22 to 2027-01-02. Leave Policy: allowed, outside the year-end freeze. submit_leave_request creates LR-7701, pending approval by M-410.
  • Can E-3002 take 3 days of unpaid leave next week?
  • You should see: Luca Rossi has 1 vacation day left and used 2 unpaid days. Leave Policy: up to 5 unpaid days a year with manager approval. Payroll: the next payslip drops by 742.50 CHF gross. A request creates LR-7702.
  • Who in team M-410 is away over Christmas?
  • You should see: Team Calendar: Noah Weber, 2026-12-22 to 2027-01-02.

The broker is probabilistic: the LLM picks the agents and tools, so the wording and the order of the calls can change between runs. The ids and numbers come from the mocks and stay the same.