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.
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.
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
- 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)
The custom mode is defined in custom_modes.yaml. To import it:
- Open Bob settings (gear icon โ๏ธ in upper right)
- Select Modes from left panel
- Click Import button
- Select
custom_modes.yaml - The ๐ฏ ODM Rule Designer mode is now available! โ
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 -->- Open Bob settings (gear icon โ๏ธ in upper right)
- Select Editor from left panel
- Select Git Notes for LLM attribution
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:
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/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.
-
Select ๐ฏ ODM Rule Designer mode from the mode selector at the bottom of Bob
-
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.txtOption B: Natural Language Description
Generate a fraud validation ODM rule project based on geo location transactionSample Policy: See
Cross-Border-Transaction-Fraud-Detection-Compliance-Policy.txt -
Click โจ Enhance prompt for richer context (optional but recommended)
-
Watch Bob generate your complete ODM project in real-time!
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
- Open ODM Rule Designer
- Switch to Rule Perspective:
Window > Perspective > Rule > Open - Import projects:
File > Import > Existing Projects into Workspace - Select both the Rule Project and XOM Project
- Layout ruleflow: Select
.rflfile โ Layout all nodes โ Save
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! ๐
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
- Bob Documentation - Official IBM Bob documentation
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.
| 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 |
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
ยฉ Copyright IBM Corporation 2026.
Built with โค๏ธ by the ODM Team



