Stage WXO-1 of 5 ↑ HOME
Stage WXO-1 · Build · 5 min
Bob Builds Agents
From natural language to production-ready agents
💬 TALKING POINT · #1
What you're about to see is IBM Bob working together with watsonx Orchestrate to take you from zero to a fully operational, production-ready agent system — end to end.

The use case we're building is Intelligent Loan Processing. Think about what it takes to evaluate a loan application today — document verification, credit risk analysis, fraud detection, business viability assessment, regulatory compliance. Each of these demands specialized expertise, and they all need to work together seamlessly.

We're going to build a system of six coordinated agents, each bringing its own specialized tools and domain knowledge to deliver a thorough, consistent loan decision. Let's start by walking through the architecture.
⌨️
Prompt to Bob:
Draw a Mermaid architecture diagram for the Loan Processing system. Include all agents, their specialized tools, and how they coordinate based on @/wxo_spec.md in agent_architecture.md. Make the decision logic and relationships between agents visually clear and easy to understand.
💬 TALKING POINT · #2 · Before generating
I'll ask Bob to generate an architecture diagram using Mermaid based on our specification — which is a very detailed document that defines every agent, every tool, their parameters, return formats, decision logic, and how they all coordinate together. Let's see what Bob comes up with.
💡 Why this matters: Starting with an architecture diagram gives the audience a visual mental model before any code is written. It also demonstrates that Bob understands the system holistically — not just individual components.
💬 TALKING POINT · #3 · Walking through the diagram
At the top, we have the Loan Application Input — this is where everything begins. An application comes in and gets handed to the Loan Processing Orchestrator.

The orchestrator is the brain of the system. Its main job is coordination — it sends the application through three specialist agents, each running sequentially with early rejection. If a stage fails, subsequent stages are skipped entirely.

Stage 1: Document & Credit — the document_credit_agent verifies all submitted documents, extracts financial data, pulls the credit report, calculates DTI/DSCR ratios, and assigns a credit risk score. If document score < 50 or credit score < 50, the orchestrator rejects immediately — no need to continue.

Stage 2: Risk & Fraud — if Stage 1 passes, the risk_fraud_agent takes over. It screens for fraud, checks identity against watchlists (OFAC, FBI, FinCEN), validates KYC/AML and regulatory compliance, and checks lending limits. If fraud score < 80 or compliance violations are found, the orchestrator rejects — Stage 3 is skipped.

Stage 3: Business Viability — the business_viability_agent evaluates the business plan, analyzes market conditions and industry trends, and assesses financial projection realism against benchmarks. If viability score < 50, the application is rejected.

Three possible outcomes: Reject if any early rejection is triggered or overall score < 60. Manual Review if overall score is 60–74 or there are conflicting signals. Approve if overall score ≥ 75, all stages passed, and no critical issues.

The orchestrator calculates a weighted overall score (Document & Credit 40%, Risk & Fraud 25%, Business Viability 35%) and delivers a Final Loan Decision — complete with risk rating, recommended terms, conditions, and a full rationale report.

Four agents, eleven tools, one cohesive decision — and Bob built all of it from the spec.
Presenter Note: Search "Mermaid" in VS Code extensions and install the first result. The chart will render in Markdown preview mode.
💬 TALKING POINT · #2
The Power of Specification-Driven Agent Generation:

We provide Bob with a comprehensive specification that defines:
• The complete system architecture (3 specialist agents + orchestrator, sequential workflow with early rejection)
• Each agent's instructions, capabilities, and decision-making logic
• All 11 specialized tools with parameters, return formats, and realistic behaviors
• Early rejection rules and decision thresholds per stage
• Agent weight distribution, decision matrices, and approval criteria
• Sample loan scenarios and expected outcomes

Bob analyzes this specification and generates:
✓ Production-ready YAML configurations for all 4 agents (3 specialist + orchestrator)
✓ Complete Python implementations of all 11 tools with realistic logic
✓ Sequential orchestration with early rejection patterns
✓ Sample data and test scenarios
✓ Documentation and deployment instructions

What would traditionally take weeks of development — multiple agents, complex tool implementations, inter-agent communication patterns — Bob generates in ~10 minutes with full consistency and best practices.
4 Agents
3 + Orchestrator YAML Configs
11 Tools
Python Implementation
Sequential
Orchestration Pattern
Decision Logic
Approve/Review/Reject
Sample Data
Realistic Scenarios
~10 mins
Generation Time