Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฏ ODM AI Toolkit

Transform business rules into intelligent decision services with IBM Bob AI

Build production-ready IBM ODM Decision Services in minutes, not days. This toolkit provides a custom IBM Bob Mode that generates complete, deployable ODM rule projects from natural language descriptions.

License ODM Bob


๐Ÿค– What is the ODM Rule Designer Bob Mode?

The ODM Rule Designer Mode is a custom Bob mode that acts as an expert ODM developer. Simply describe your business rules in natural language, and Bob will generate:

  • โœ… Complete XOM (Java domain model)
  • โœ… BOM (Business Object Model) with natural language vocabulary
  • โœ… Business rules in Business Action Language (BAL)
  • โœ… Ruleflow orchestration
  • โœ… Deployment configuration

All generated projects are fully compatible with ODM Rule Designer.


๐Ÿš€ What Can You Build?

The Bob mode can generate complete ODM Decision Services for any business domain:

  • ๐Ÿ’ฐ Financial Services: Fraud detection, loan approval, AML compliance
  • โœˆ๏ธ Aviation: Emissions compliance, baggage rules, safety regulations
  • ๐Ÿฅ Healthcare: Risk assessment, treatment protocols, eligibility rules
  • ๐Ÿญ Manufacturing: Quality control, supply chain optimization
  • ๐Ÿ›’ Retail: Pricing rules, promotion eligibility, inventory management

See it in action:

ODM.Rule.Designer.Mode.mp4

๐ŸŽฌ Quick Start

Prerequisites

  • IBM Bob - Install here (Required)
  • ODM Rule Designer - Install here (Required)
  • Java 21+ - IBM Semeru OpenJ9 recommended (for building projects)
  • Docker - For ODM Build Command (optional, auto-downloaded)

1๏ธโƒฃ Import the ODM Rule Designer Bob Mode

The custom mode is defined in custom_modes.yaml. To import it:

  1. Open Bob settings (gear icon โš™๏ธ in upper right)
  2. Select Modes from left panel
  3. Click Import button
  4. Select custom_modes.yaml
  5. The ๐ŸŽฏ ODM Rule Designer mode is now available! โœ…

Mode Import

Change the LLM attribution mode to avoid the following message at the end of XML generated files as it breaks the ODM build command execution :

<!-- Made with Bob -->
  1. Open Bob settings (gear icon โš™๏ธ in upper right)
  2. Select Editor from left panel
  3. Select Git Notes for LLM attribution

LLM attribution

2๏ธโƒฃ Setup ODM Build Command (One-Time Setup)

Before creating or modifying ODM projects, you need to retrieve the ODM Build Command compiler in your workspace directory. This is required for validating and building Decision Services.

Choose one of the following methods:

Option A: Copy from Local ODM Installation

If you have ODM installed on-premises (e.g., ODM 9.5+):

# Create the buildcommand directory structure
mkdir -p buildcommand/rules-compiler

# Copy the rules compiler from your ODM installation
cp "$ODM_HOME/buildcommand/rules-compiler/rules-compiler.jar" buildcommand/rules-compiler/

Option B: Download via ODM for Developers Docker Image

If you don't have ODM installed locally:

# Start ODM container
docker run -d -e LICENSE=accept -p 9060:9060 -p 9443:9443 -u $(id -u) \
  --name odm-buildcmd icr.io/cpopen/odm-k8s/odm:latest

# Wait ~60 seconds, then download and extract
curl http://localhost:9060/decisioncenter/assets/buildcommand.zip --output buildcommand.zip
unzip -o ../buildcommand.zip -d buildcommand 'rules-compiler/*'

# Verify and cleanup
ls -lh buildcommand/rules-compiler/rules-compiler.jar
docker stop odm-buildcmd && docker rm odm-buildcmd

โœ… Setup Complete! The buildcommand/rules-compiler/rules-compiler.jar is now available in your workspace.

Note: This is a one-time setup per workspace. Once the rules compiler is in place, Bob will automatically use it to validate all generated Decision Services.

3๏ธโƒฃ Generate Your First Decision Service with Bob

  1. Select ๐ŸŽฏ ODM Rule Designer mode from the mode selector at the bottom of Bob

  2. Provide your business requirements using one of these approaches:

    Option A: Use a Policy Document (Recommended)

    Generate an ODM rule project based on the Cross-Border Transaction Fraud Detection policy
    in files/Cross-Border-Transaction-Fraud-Detection-Compliance-Policy.txt
    

    Option B: Natural Language Description

    Generate a fraud validation ODM rule project based on geo location transaction
    

    Sample Policy: See Cross-Border-Transaction-Fraud-Detection-Compliance-Policy.txt

  3. Click โœจ Enhance prompt for richer context (optional but recommended)

  4. Watch Bob generate your complete ODM project in real-time!

Mode Selection

Bob will create:

  • Java XOM classes with proper serialization
  • BOM files in text-based BRL format
  • Vocabulary files for natural language rules
  • Business rules using Business Action Language
  • Ruleflow for rule orchestration
  • Deployment operations for Decision Service
  • Build validation using ODM Build Command

3๏ธโƒฃ Import Generated Project into Rule Designer

  1. Open ODM Rule Designer
  2. Switch to Rule Perspective: Window > Perspective > Rule > Open
  3. Import projects: File > Import > Existing Projects into Workspace
  4. Select both the Rule Project and XOM Project
  5. Layout ruleflow: Select .rfl file โ†’ Layout all nodes โ†’ Save

Rule Designer


๐Ÿ’ก Why Use Policy Documents?

Using structured policy documents (like Cross-Border-Transaction-Fraud-Detection-Compliance-Policy.txt) as input provides:

  • โœ… More comprehensive rule coverage - All business requirements captured
  • โœ… Regulatory compliance - Includes compliance details and thresholds
  • โœ… Better structured output - Organized rule packages and ruleflows
  • โœ… Easier maintenance - Clear traceability from policy to rules
  • โœ… Production-ready - Complete with risk scoring and escalation logic

Result: Bob generates a production-ready decision service in minutes! ๐ŸŽ‰


๐Ÿ—๏ธ Project Structure

ODM-AI-toolkit-for-Bob/
โ”œโ”€โ”€ files/
โ”‚   โ””โ”€โ”€ custom_modes.yaml          # Bob mode definition
โ”œโ”€โ”€ projects/                       # sample Decision Services generated by BOB
โ”œโ”€โ”€ docs/                          # Documentation
โ”œโ”€โ”€ tools/                         # Utilities
โ””โ”€โ”€ images/                        # Screenshots

๐ŸŽ“ Learn More

About Bob Modes


๐Ÿค Contributing

We welcome contributions! Whether it's:

  • ๐Ÿ› Bug reports and fixes
  • ๐Ÿ’ก New sample projects
  • ๐Ÿ“– Documentation improvements
  • โœจ Feature enhancements

Please use the GitHub issue tracker for project-specific issues.

For general ODM questions, visit the ODM Community.


๐Ÿ“Š Why This Toolkit?

Traditional Approach With ODM Bob Mode
โฑ๏ธ Days to weeks โšก Minutes to hours
๐Ÿ“ Manual coding ๐Ÿค– Bob generates everything
๐Ÿ”ง Complex setup ๐ŸŽฏ One-click mode import
๐Ÿ“š Steep learning curve ๐Ÿ’ฌ Natural language prompts
๐Ÿ› Error-prone โœ… Best practices built-in
๐Ÿ‘จโ€๐Ÿ’ป Requires ODM expertise ๐Ÿค– Bob is the expert

๐Ÿ”ฎ Roadmap

Current: Bob Mode for ODM Rule Designer โœ…

Coming Soon:

  • Additional Bob modes (testing, deployment, migration)
  • More sample projects (insurance, logistics, energy)
  • Decision Center integration mode
  • Skills
  • CI/CD pipeline templates

๐Ÿ“„ License

Apache 2.0


๐Ÿ“ข Notice

ยฉ Copyright IBM Corporation 2026.


Built with โค๏ธ by the ODM Team

About

IBM Bob tools that generate complete, deployable IBM ODM Decision Services from natural-language business rules.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages