NLU Brain — Intelligent Routing

Natural language understanding that routes your requests to the right Bootspring capability

Bootspring's NLU Brain is a unified natural language router that understands what you're trying to do and dispatches to the right skill, workflow, agent, or pipeline — automatically.

How It Works

The Brain uses a 3-stage cascade to find the best match:

  1. Exact Match — Direct command name lookup (fastest, 100% confidence)
  2. Semantic Match — TF-IDF vectorization + cosine similarity over 200+ trained phrases
  3. Keyword Fallback — Weighted keyword scoring when semantic match is inconclusive

Example Usage

CLI

Loading code block...

MCP Tool

The bootspring_brain MCP tool integrates directly with AI coding assistants:

Input: "I need to check if this is ready to deploy" → Target: deploy-readiness (skill) → Confidence: 0.88 → Command: bootspring deploy check

Supported Targets

TypeTargetsExamples
Skills9build-loop, seed, quality-gates, geo-seo, ai-marketing, deploy-readiness, cost-optimizer, observer, memory
Workflows5code-review, test-generation, refactoring, documentation, security-scan
Agents5file-analyzer, dependency-mapper, code-searcher, task-summarizer, git-insight
Pipeline2full-pipeline, fast-analysis

Configuration

SettingDefaultDescription
minConfidence0.3Below this, ask user to clarify
autoDispatchThreshold0.85Above this, auto-invoke the action
maxAlternatives3Number of alternative matches shown
enableLearningtrueLog corrections for self-improvement

Self-Improvement

The Brain tracks routing accuracy and learns from corrections:

  • Every routing decision is logged with input, target, and confidence
  • User corrections are recorded and used to adjust future rankings
  • Analytics dashboard shows accuracy rate, method breakdown, and top targets