Tutorial: Employee Onboarding: governed¶
All tutorials · Getting started · Probabilistic network (Agent Network 1.0, LLM broker) · Technical · governed
HR, IT and facilities agents plus directory and learning tools prepare a new hire for day one. Adds built-in policies: rate-limiting, mcp-pii-detector, mcp-schema-validation, header-injection, a-two-a-pii-detector, a-two-a-prompt-decorator.
| Agents | MCP servers | A2A | Policies | Template id |
|---|---|---|---|---|
| 3 | 2 | 0.3.0 | 6 | v1-employee-onboarding-governed |
There are three ways to use this template:
- Just use it: create the project, deploy it and chat with it in about 10 minutes.
- Learn step by step: the same steps, with what each part of the network does and how Octoloom shows it.
- Build it from scratch: start from a blank project and build the same network yourself, no code, one screenshot per step.
Before you start¶
- VS Code with Octoloom for Agent Fabric installed (Marketplace), version 0.9.25 or later.
- An Anypoint organization with Agent Fabric, a connected app (client ID and secret), an environment and a Flex gateway.
- An OpenAI API key (or an OpenAI-compatible LLM gateway).
- Nothing else: all agents and MCP servers are public A²D mocks, so the network runs without any other system.
Path 1: Just use it¶
- Home → Start → New Probabilistic Network. In the dialog pick Technical, then the card Employee Onboarding (the one with the policies chip). Choose a folder and click Create.
- Deploy. In
exchange.json, fill iningressgw.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: openai.apiKey: OpenAI API key (secret, injected at deploy time)- Chat. When the status light is green, click Open chat and paste:
Onboard employee E-1001 who starts Monday as a Sales EngineerAssign the onboarding training to E-1001What is still open for the onboarding of E-1002?My email is jane.doe@example.com and my phone is +41 79 123 45 67. Onboard employee E-1001 who starts Monday as a Sales EngineerSend the first prompt more than 30 times within a minute
Done. The rest of this page explains what you just ran.
Path 2: Learn step by step¶
Step 1. Connect Octoloom¶
Open Setup & Connect (Octoloom side bar) and connect Agent Fabric: the connected app client ID and secret and the organization. Pick the environment. A²D isn't needed: the mock URLs are already the defaults in exchange.json. The Tooling list shows Node.js, Java and anypoint-cli-v4 with its agent-network plugin. Use Install or Repair on any red row.
Step 2. Create the project from the template¶
On Home, click New Probabilistic Network. In 2 Start from, choose Technical and click Employee Onboarding. The right side shows the template README: what it contains, Deploy in 3 steps and Try it. Keep the suggested name employee-onboarding-governed or type your own, pick the folder and click Create.

Octoloom writes agent-network.yaml, exchange.json, README.md, and opens the canvas. Every id gets the template prefix octo_eo1g_, so several templates can be deployed into one org side by side.
Step 3. Read the network on the canvas¶

Each card is a part of agent-network.yaml. Click one to open it in the inspector on the right. Each change in the inspector is a change to the text, so the YAML stays the source of truth (Code view shows it).
- Broker octo_eo1g_onboarding-broker (
octo_eo1g_onboarding-broker): the LLM decides which agent or tool to call from its instructions. - Instructions:
- You coordinate employee onboarding for new hires.
- Always look up the employee in the identity directory first, using the employee id from the request (for example E-1001).
- Use the HR Records agent for contracts and personal data, the IT Provisioning agent for laptops and accounts, and the Facilities agent for desks and badges.
- Assign role-based training through the learning tools once accounts exist.
- Finish with a short checklist of what was done and what is still open.
- Agent HR Records Agent: Maintains employee records, contracts and personal data for new hires.
- Agent IT Provisioning Agent: Orders laptops and provisions email, SSO and collaboration accounts.
- Agent Facilities Agent: Assigns desks, parking and building badges.
- MCP server Identity Directory MCP: Employee directory: look up new hires and create system accounts. Tools:
lookup_employee,create_account. - MCP server Learning MCP: Learning platform: role curricula and training assignments. Tools:
list_courses,assign_training.
Try this on the canvas: use the zoom bar and the minimap, drag a card, or Auto layout. The layout is saved per file. Minimize all turns the cards into icon tiles. Click a connection line to see which broker uses which agent or tool.
Step 4. See the policies¶
This variant adds Agent Fabric policies. Open a broker or connection and look at its Policies section. Each policy folds open to show its configuration:
- rate-limiting
- mcp-pii-detector
- mcp-schema-validation
- header-injection
- a-two-a-pii-detector
- a-two-a-prompt-decorator
Run Governance (shield icon in the canvas toolbar) to check the project against the Agent Fabric rulesets. It runs locally, and findings show on the cards with Fix where one exists.
Step 5. Validate and build¶
In the canvas toolbar, open the CLI menu: Validate does a dry run of build, publish and deploy and lists problems in the Problems panel (click one to jump to the card). Build repairs and packages the project locally with anypoint-cli-v4.
The variables of this template (in exchange.json, open it for the no-code form):
| Variable | What | Default |
|---|---|---|
ingressgw.url |
Ingress gateway base URL (the broker is served under it) | (fill in) |
identityDirectoryMcp.url |
Identity Directory MCP (A2D mock) base URL | https://www.a2d-ai.com/api/platform/d0608b5d-b24a-462c-9e10-6e6c536eb215/ |
learningMcp.url |
Learning MCP (A2D mock) base URL | https://www.a2d-ai.com/api/platform/b5a630ea-1d3d-474a-91b1-951f46627398/ |
hrRecordsAgent.url |
HR Records Agent (A2D mock, A2A 0.3.0) URL | https://www.a2d-ai.com/api/platform/6d627753-51a7-4f80-9ac0-00707da79726/a2a |
itProvisioningAgent.url |
IT Provisioning Agent (A2D mock, A2A 0.3.0) URL | https://www.a2d-ai.com/api/platform/d71282de-bfde-428c-a8a4-97c6a5da3dc6/a2a |
facilitiesAgent.url |
Facilities Agent (A2D mock, A2A 0.3.0) URL | https://www.a2d-ai.com/api/platform/1f45271b-07ad-42c3-b429-57d0cf223abf/a2a |
Step 6. Deploy¶
Open Projects & Deploy and click Deploy on the project (or Deploy… on the canvas). Pick your gateway (the chips show its status and space), keep Tracing, Wait until the network is ready and Publish before deploy on, then enter the secrets. Nothing you type is stored:
openai.apiKey: OpenAI API key (secret, injected at deploy time)
For a probabilistic network, also fill ingressgw.url in exchange.json (your ingress gateway base URL) before you deploy.
The square status light goes from blue (deploying) to green (Deployed and running). The deployment box lists every broker URL; click one to copy it.
Step 7. Chat with the broker¶
Click Open chat on the deployment box. On the left is the network (the cards light up as they are called), and on the right is the conversation with its task states. Paste the prompts one at a time:

The reply in the screenshot is an illustration: it shows what the broker answers. The real wording changes from run to run.
| Prompt | You should see |
|---|---|
Onboard employee E-1001 who starts Monday as a Sales Engineer |
Identity Directory lookup_employee finds Jane Rivera (Sales Engineer, Lausanne, starts 2026-11-16). HR Records sends contract CT-2026-118, IT Provisioning orders laptop LT-5531 and create_account creates the account, Facilities books desk LS-3-14 and badge B-77812. |
Assign the onboarding training to E-1001 |
Learning MCP list_courses and assign_training: 3 courses assigned, due 2026-12-15. |
What is still open for the onboarding of E-1002? |
Omar Haddad (Data Analyst, Remote). The broker asks the agents for the open items (contract, laptop, account, badge) and lists them. |
My email is jane.doe@example.com and my phone is +41 79 123 45 67. Onboard employee E-1001 who starts Monday as a Sales Engineer |
Same answer as the first prompt. The PII detector policies log the email and phone number; on the MCP connections with the MCP PII detector they are masked before the tool sees them. Check the policy logs in Anypoint Monitoring. |
Send the first prompt more than 30 times within a minute |
The broker answers HTTP 429 (Too Many Requests) once the rate limit of 60 requests per minute is reached. |
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.
Step 8. Trace a reply¶
Under each reply, the Tracer icon opens the task in the Agent Network Tracer: a waterfall of every call the broker made (gateway, broker, LLM, A2A agents, MCP tools) on one time axis, coloured like the cards. Errors are red. Click a span to see its request and response. The Network view shows the same reply as a sequence of calls.
Step 9. Share it (optional)¶
The Share icon in the chat header opens the Share dialog. A²D sessions invites people by email to chat with this deployed broker and brings their passed / failed marks and comments back. Local portal generates a small web chat you can run or host anywhere.
Path 3: Build it from scratch¶
Here you build the same network yourself, starting from a blank project. Every step uses a form, a menu or a button. You never import the template, and you never type YAML. The names below are the template's names without the octo_eo1g_ prefix. You can use your own names, but keep them consistent.
The text fields take plain values. Where a value looks like
${group.name}, type it as shown: it is a variable thatexchange.jsondeclares and that deploy fills in.
Step 3.1. Create a blank project with a starter broker¶
Connect Octoloom first, as in Path 2, Step 1. Then, on Home, click New Probabilistic Network. In 2 Start from, choose Blank and turn on Add a starter broker.
- Broker name:
onboarding-broker - Name:
employee-onboarding-governed-scratch(the Exchange asset id; a different name from the template, so both can live in one org) - Parent folder: pick a folder, then click Create blank project.

The starter broker is an LLM broker with an OpenAI LLM (openai provider, openai-connection) and default instructions. The LLM is already done.
Step 3.2. Add the agents¶
On the canvas, click + (Add to the network) → Agent → Empty. The new agent opens in the inspector on the right. Fill it in, then repeat for each agent:

- HR Records Agent
- Identity → Key:
hr-records-agent - Label: HR Records Agent · Description: Maintains employee records, contracts and personal data for new hires.
- Metadata → Platform:
AgentForce(or click its icon under Agent framework) - Agent card: Name HR Records Agent, Description as above, URL
${hrRecordsAgent.url}, Protocol version0.3.0 - IT Provisioning Agent
- Identity → Key:
it-provisioning-agent - Label: IT Provisioning Agent · Description: Orders laptops and provisions email, SSO and collaboration accounts.
- Metadata → Platform:
Azure(or click its icon under Agent framework) - Agent card: Name IT Provisioning Agent, Description as above, URL
${itProvisioningAgent.url}, Protocol version0.3.0 - Facilities Agent
- Identity → Key:
facilities-agent - Label: Facilities Agent · Description: Assigns desks, parking and building badges.
- Metadata → Platform:
MuleSoft(or click its icon under Agent framework) - Agent card: Name Facilities Agent, Description as above, URL
${facilitiesAgent.url}, Protocol version0.3.0

The card skills are optional. Once the agent has a connection (two steps on), the inspector offers Read skills from the live agent, which fills them from the running agent.
Step 3.3. Add the MCP servers¶
Click + → MCP server → Empty, then fill in:
- Identity Directory MCP: Key
identity-directory-mcp, Label Identity Directory MCP, Description Employee directory: look up new hires and create system accounts. The transport is already Streamable HTTP on/mcp. - Learning MCP: Key
learning-mcp, Label Learning MCP, Description Learning platform: role curricula and training assignments. The transport is already Streamable HTTP on/mcp.
Step 3.4. Add the connections¶
A connection is the URL (and authentication) Agent Fabric uses to reach an agent or an MCP server. Click + → Connection → Empty once per agent and MCP server, and fill in:
| Key | Kind | Target → Name | URL |
|---|---|---|---|
identity-directory-mcp-connection |
mcp |
identity-directory-mcp |
${identityDirectoryMcp.url} |
learning-mcp-connection |
mcp |
learning-mcp |
${learningMcp.url} |
hr-records-agent-connection |
agent |
hr-records-agent |
${hrRecordsAgent.url} |
it-provisioning-agent-connection |
agent |
it-provisioning-agent |
${itProvisioningAgent.url} |
facilities-agent-connection |
agent |
facilities-agent |
${facilitiesAgent.url} |

Step 3.5. Declare the variables¶
The Problems bar now shows Variable ${…} is not declared in exchange.json for each new variable. Click Add to exchange.json on each one.
Then open exchange.json (it opens as a form) and, under Variables, set the defaults:
| Variable | Default |
|---|---|
ingressgw.url |
(your ingress gateway URL) |
identityDirectoryMcp.url |
https://www.a2d-ai.com/api/platform/d0608b5d-b24a-462c-9e10-6e6c536eb215/ |
learningMcp.url |
https://www.a2d-ai.com/api/platform/b5a630ea-1d3d-474a-91b1-951f46627398/ |
hrRecordsAgent.url |
https://www.a2d-ai.com/api/platform/6d627753-51a7-4f80-9ac0-00707da79726/a2a |
itProvisioningAgent.url |
https://www.a2d-ai.com/api/platform/d71282de-bfde-428c-a8a4-97c6a5da3dc6/a2a |
facilitiesAgent.url |
https://www.a2d-ai.com/api/platform/1f45271b-07ad-42c3-b429-57d0cf223abf/a2a |
Leave the secret variables (openai.apiKey) empty: deploy asks for them and never stores them.

Step 3.6. Declare the MCP tools¶
On each MCP server card, click the Tools row (or its pencil). Octoloom reads the tool list from the running server: tick the tools below. You can also type a name in Add a tool by name….
- Identity Directory MCP:
lookup_employee,create_account - Learning MCP:
list_courses,assign_training

Step 3.7. Give the broker its agents and tools¶
Select the broker onboarding-broker. In the inspector:
- Click Agents (0). In Add existing agent…, pick each agent and click Add:
hr-records-agent,it-provisioning-agent,facilities-agent. - Click MCP servers (0). Add each server with Add existing MCP server…, then tick its Allowed tools:
identity-directory-mcp:lookup_employee,create_accountlearning-mcp:list_courses,assign_training

Step 3.8. Write the broker instructions¶
Back in the broker inspector, open Instructions and limits. Replace the default instruction with these entries, one per line:
- You coordinate employee onboarding for new hires.
- Always look up the employee in the identity directory first, using the employee id from the request (for example E-1001).
- Use the HR Records agent for contracts and personal data, the IT Provisioning agent for laptops and accounts, and the Facilities agent for desks and badges.
- Assign role-based training through the learning tools once accounts exist.
- Finish with a short checklist of what was done and what is still open.
Set Max number of loops 25, Max consecutive errors 3 and Task timeout (s) 90.
Under Model parameters → OpenAI, set Reasoning effort to MINIMAL. The broker then answers within the gateway timeout.
Optionally, fill the broker's Agent card (A2A 0.3.0) description: HR, IT and facilities agents plus directory and learning tools prepare a new hire for day one.

Step 3.9. Add the policies¶
Select the broker or connection, scroll to Policies and click Add policy. Pick the policy (search by name) and set its Configuration fields. Header Injection has its own header list. Octoloom also adds each policy as an exchange.json dependency.
- Broker
onboarding-broker: Rate Limiting - rateLimits (one entry each, +): maximumRequests
60, timePeriodInMilliseconds60000 - exposeHeaders: on
- Connection
identity-directory-mcp-connection: MCP PII Detector - entities:
Email,US SSN,Credit Card,Phone Number - action:
Log and mask - Connection
learning-mcp-connection: MCP Schema Validation - validateToolSchema: on
- Connection
learning-mcp-connection: Header Injection - inboundHeaders (one entry each, +):
x-octoloom-source=employee-onboarding-governed-v1 - Connection
hr-records-agent-connection: A2A PII Detector - entities:
Email,US SSN,Credit Card - action:
Log - Connection
it-provisioning-agent-connection: Header Injection - inboundHeaders (one entry each, +):
x-correlation-source=onboarding-broker - Connection
it-provisioning-agent-connection: A2A Prompt Decorator - textDecorators (one entry each, +): text
#['Answer concisely and never include personal data.'] - Connection
facilities-agent-connection: A2A PII Detector - entities:
Email,US SSN,Credit Card - action:
Log

Step 3.10. Validate, deploy and chat¶
Run Validate from the canvas CLI menu and fix anything in the Problems bar. Then follow Path 2 from Validate and build onwards: deploy (enter the secrets), wait for the green light, open the chat and send the same prompts. Your network answers like the template, because it is the same network, built by hand.
What you learned¶
- How a probabilistic network is built: an LLM broker with instructions picks agents and MCP tools.
- How the canvas, the inspector and the code view edit the same YAML.
- How to build the same network from a blank project with forms and menus only (Path 3).
- How policies are attached and checked with Governance.
- How to validate, build, deploy, chat and trace with Octoloom.
Next¶
- Previous: Customer Service Broker: governed
- Next: HR Leave Requests: governed
- Same use case, plain variant: Employee Onboarding
- All tutorials
Generated from the v1-employee-onboarding-governed template (Octoloom media/templates/v1-employee-onboarding-governed). Screenshots use fake data.