Intent Engine for Openclaw

Intent Engine is an AI-driven intent recognition and intelligent routing system with a built-in Web management dashboard, providing accurate prompt classification for multi-agent workflows.

bettermen
v2.0.0
Jun 9, 2026
1
384
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install intent-engine

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install intent-engine using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Intent Engine?

Intent Engine is a robust, lightweight Python-based routing system designed to analyze, classify, and redirect user prompts to the correct AI execution path. By utilizing a hybrid scoring algorithm that combines keyword matching, regular expressions, priority weighting, and text-length penalties, it dynamically categorizes inputs into four primary domains: Code (CODE), Knowledge (KNOW), Task (TASK), and Chat (CHAT).

Integrating this tool with Openclaw Skills allows developers to build highly responsive, multi-agent architectures that process queries intelligently. The inclusion of a comprehensive Web UI dashboard provides real-time testing, performance metrics, and hot-reloadable intent management without requiring system restarts.

Intent Engine Use Cases

  • Dynamically routing user requests to specialized AI sub-agents (e.g., forwarding code requests to a developer sub-agent and generic chat to a conversational agent).
  • Running high-throughput query classification pipelines using batch classification APIs.
  • Building a visual playground to test, debug, and fine-tune classification rules, keyword weights, and regex patterns interactively.
  • Optimizing conversational context-switching in intelligent customer service, technical support, and AI developer assistant setups.

How Intent Engine Works

  1. Input Reception: The engine receives a text prompt via the REST API or Web interface.
  2. Multi-Strategy Evaluation: It runs concurrent checks against defined keyword weights and high-precision regular expressions.
  3. Score Computation & Penalty Correction: A scoring algorithm calculates raw values, adjusting for short texts (penalized by 20%) or long texts (boosted by 10%).
  4. Confidence Normalization: Raw scores are mapped to a normalized 0.0 to 1.0 confidence range.
  5. Intelligent Routing: The system maps the final confidence score to the best-matching category and suggests top-K backup strategies, instantly routing to the designated skill.

Intent Engine Setup

To set up and run Intent Engine within your Openclaw Skills ecosystem, follow these simple installation steps:

# Navigate to the intent-engine directory
cd intent-engine

# Install the required dependencies
pip install -r requirements.txt

# Run the server
python run.py

Once running, open your browser and navigate to http://localhost:5700 to access the visual management dashboard.

Intent Engine Data Schema & Taxonomy

Intent Engine manages its data and configuration seamlessly through localized storage.

Directory Structure

Path Description
intent_engine/engine.py Core classification logic and scoring algorithm
intent_engine/storage.py JSON-based persistent storage handler
intent_engine/models.py Structured Python data models for intents
intent_engine/api.py Flask REST API endpoints
static/index.html Frontend UI assets
data/intents.json Hot-reloadable persistent configuration (auto-generated)

Classification Schema (Primary Categories)

  • CODE (Color: Blue #3b82f6): Software engineering, testing, review, refactoring, and debugging tasks.
  • KNOW (Color: Purple #8b5cf6): Information inquiries, tutorials, comparisons, conceptual queries, and suggestions.
  • TASK (Color: Yellow #f59e0b): Automation scripts, file systems operations, shell command executions, and task scheduling.
  • CHAT (Color: Green #10b981): Greeting, conversational dialogue, clarification prompts, and social pleasantries.

Intent Engine Advanced Features

  • Hot-Reloadable Configurations: CRUD operations performed through REST API or the Web UI take effect immediately without needing to restart the backend application.
  • Hybrid Evaluation Math: Blends high-precision regex pattern match boosts (* 4.0) with adjustable weighted keyword scoring (* 2.0 * weight) and static priority offsets (* 0.05).
  • Interactive Web Dashboard: Includes key-value pair metrics, real-time query test modules with circular confidence charts, and bulk JSON import/export utilities.
  • Seamless Multi-Agent Integration: Designed to act as the traffic controller or primary router before handing off execution to complementary Openclaw Skills like skill-creator, workflow-verifier, or mempalace-assistant.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*