Skip to content

Supply Chain Disruption: secured

A late or short shipment is assessed against stock; severe delays are rerouted and customers told, other cases get a mitigation plan. Secured: authenticated connections (Basic, Client ID enforcement) with secret variables, the LLM behind a gateway URL, outbound message logging.

Style Deterministic (Agent Network 2.0, AgentScript)
Kind Secured
Agents / MCP servers 4 / 3
A2A protocol 1.0, 0.3.0
Policies message-logging-outbound, rate-limiting
Asset prefix octo_sc2s
Tutorial Supply Chain Disruption: secured: tutorial
Files templates/v2-supply-chain-secured

The network canvas The network canvas

The broker flow (AgentScript) The broker flow (AgentScript)

Chat with the deployed broker Chat with the deployed broker

A late or short shipment is assessed against stock; severe delays are rerouted and customers told, other cases get a mitigation plan.

  • Style: Deterministic (Agent Network 2.0): an AgentScript flow in brokers/ decides each step.
  • Agents: Supplier Risk Agent (A2A 1.0, Snowflake), Logistics Agent (A2A 0.3.0, MuleSoft), Procurement Buyer Agent (A2A 1.0, AgentForce), Customer Communications Agent (A2A 0.3.0, Vertex)
  • MCP servers: Shipments MCP (get_shipment, reroute_shipment); Inventory MCP (get_stock); Supplier MCP (find_alternative_supplier)
  • Secured: every agent and MCP connection authenticates (Basic or Client ID enforcement, alternating). User names and client ids are variables, passwords and client secrets are secret variables asked for at deploy time. The LLM URL is the variable llmGateway.url (api.openai.com by default, or your LLM gateway). Upstream calls are logged with the outbound Message Logging policy. Policies: message-logging-outbound, rate-limiting.

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 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. supplierRiskAgent.password: Password (any value works with the A²D mocks)
  5. logisticsAgent.clientSecret: Client secret (any value works with the A²D mocks)
  6. buyerAgent.password: Password (any value works with the A²D mocks)
  7. customerCommsAgent.clientSecret: Client secret (any value works with the A²D mocks)
  8. shipmentsMcp.clientSecret: Client secret (any value works with the A²D mocks)
  9. inventoryMcp.password: Password (any value works with the A²D mocks)
  10. supplierMcp.clientSecret: Client secret (any value works with the A²D mocks)
  11. 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

  • Shipment SHP-4401 with SKU-778 is delayed 9 days at the port
  • You should see: Shipments get_shipment, Inventory get_stock: 4 days of cover, shorter than the delay. Logistics reroute_shipment to rail, ETA 2026-11-21, +2,300 EUR. Customer Communications informs 12 customers.
  • Supplier reports a shortage of SKU-912 for shipment SHP-4402
  • You should see: Inventory: 21 days of cover. Supplier Risk: SUP-12 is high risk; find_alternative_supplier: SUP-31 in 5 days at +4%. Buyer places PO-66120 for 4,000 units, delivery 2026-11-18.
  • Shipment SHP-4401 with SKU-778 is delayed 9 days at the port
  • You should see: Same answer as the plain variant: the A²D mocks accept any credentials. The Tracer shows each authenticated upstream call, and the outbound Message Logging policy writes one log line per call.

The broker is deterministic: the branches are fixed in the flow in brokers/ (open the .agent file to see them). The LLM only reads the ids from your prompt and writes the reply text, so the same input takes the same branch.