惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
博客园_首页
博客园 - 【当耐特】
量子位
S
SegmentFault 最新的问题
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Visual Studio Blog
T
Tailwind CSS Blog
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
Y
Y Combinator Blog
博客园 - 聂微东
The Cloudflare Blog
小众软件
小众软件
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
H
Help Net Security
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
宝玉的分享
宝玉的分享

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
ClawFlow — The Deterministic Execution Backend OpenClaw A...
Dickson Kany · 2026-04-24 · via DEV Community

(OpenClaw = brain, ClawFlow = muscle)

The problem: AI agents are great at reasoning, but when you need something done reliably and instantly, they fall apart.

The solution: ClawFlow is a fast, deterministic execution layer that OpenClaw agents call for structured data transformation — parsing, validation, and workflow orchestration in milliseconds.

Submission for the OpenClaw Challenge

The Real-World Problem I Solved

Last week, I was building a startup idea tracker. I wanted to go from a messy voice memo to a structured product roadmap in seconds — without waiting 3-5 seconds for an LLM to "think" and possibly hallucinate.

Traditional approach: GPT-4 call → unpredictable output → retry logic → more latency → $0.02 per run.

My approach with ClawFlow: Voice memo → OpenClaw agent (decides intent) → ClawFlow deterministic pipeline → structured roadmap in < 5ms, 100% predictable, $0 cost.

This isn't about replacing AI. It's about giving AI agents a reliable execution layer for tasks that need precision, not creativity.


What I Built

ClawFlow is a production-ready execution backend that acts as the "muscle" to OpenClaw's "brain." While OpenClaw agents handle intent recognition and orchestration decisions, ClawFlow handles the deterministic work: parsing, transforming, validating, and structuring data.

Core Architecture

┌─────────────────┐     intent recognition       ┌──────────────────┐
│  OpenClaw Agent │ ───────────────────────────→ │  ClawFlow Engine │
│  (The Brain)    │  "Parse this task list"      │  (The Muscle)    │
└─────────────────┘                              └──────────────────┘
         │                                              │
         │    POST /api/webhook/openclaw                │
         │    { flow: "task", input: "..." }            │
         │←─────────────────────────────────────────────┘
         │         structured result (3-5ms)
         ▼
   ┌─────────────┐
   │   Action    │  ← agent makes next decision
   └─────────────┘

Enter fullscreen mode Exit fullscreen mode

The 3 Killer Workflows

Here are the workflows that demonstrate ClawFlow's power:

  1. Voice Memo → Structured Roadmap

    Input: "Build landing page, setup auth urgently, deploy by Friday"

    Pipeline: Clean-Claw → Task-Claw → Brain-Claw

    Output: Structured product plan with prioritized phases

  2. Error Log → Actionable Tasks

    Input: Raw server logs

    Flow: Debug-Claw

    Output: Severity-classified issues with fix suggestions

  3. Messy Data → Clean Structure

    Input: Unformatted CSV, JSON, or text

    Flow: CSV-Claw, JSON-Claw, or Clean-Claw

    Output: Validated, normalized structured data

All 14 skills:

Flow Icon Description
Task-Claw 📋 Breaks input into actionable tasks with priority detection
Debug-Claw 🔍 Scans for error patterns with severity classification
Brain-Claw 🧠 Converts raw ideas into structured product plans
Clean-Claw Normalizes messy text with stats extraction
Summary-Claw 📝 Extracts key points using positional scoring
Calendar-Claw 📅 Extracts event details from natural language
Git-Claw 🐙 Parses git diffs and suggests commit messages
CSV-Claw 📊 Parses messy CSV to clean JSON
Email-Claw 📧 Drafts professional emails from bullet points
Note-Claw 📓 Formats markdown notes with keyword tagging
JSON-Claw {} Validates and formats JSON strings
Diff-Claw ↔️ Word-level text comparison
Sentiment-Claw 😊 Extracts emotional tone and sentiment score
Pipeline-Claw Multi-stage workflow orchestration

Key Features (v2.1):

Feature Description
OpenClaw Webhook Bridge Native integration via /api/webhook/openclaw — agents send {trigger_id, flow, input}, receive structured results
14 Built-in Skills Parsing, validation, and transformation without LLM unpredictability
Visual Claw Creator Create custom claws in seconds — no coding required
11 Pre-built Templates Task extraction, link parsing, JSON formatting, text transformation, and more
Visual Pipeline Builder Chain skills into complex workflows at /pipeline
SQLite Persistence Full execution history for agent memory and traceability
22-Test Suite Production-ready reliability
Sub-5ms Execution Fast enough for real-time agent loops

How I Integrated with OpenClaw

📖 Full Integration Guide: OPENCLAW_INTEGRATION.md — architecture diagrams, 3 concrete examples, routing strategies, and delegation rules.

1. The Webhook Bridge (Real Integration)

ClawFlow exposes an authenticated webhook endpoint that accepts standard OpenClaw task payloads:

# OpenClaw sends this to ClawFlow
POST /api/webhook/openclaw
Headers: { "x-api-key": "clawflow_prod_key" }
Body: {
  "trigger_id": "oc-999",
  "flow": "task",
  "input": "urgent: fix auth bug, deploy patch"
}

# ClawFlow returns structured result
{
  "bridge_version": "1.0",
  "trigger_id": "oc-999",
  "status": "completed",
  "execution_data": {
    "success": true,
    "duration": 3,
    "output": {
      "tasks": [
        { "title": "Fix auth bug", "priority": "high" },
        { "title": "Deploy patch", "priority": "normal" }
      ]
    }
  }
}

Enter fullscreen mode Exit fullscreen mode

2. Example OpenClaw Agent Configuration

See openclaw.config.yml in the repo for a complete agent setup:

# OpenClaw agent that delegates parsing to ClawFlow
skills:
  - name: "parse_tasks"
    type: "webhook"
    endpoint: "https://clawflow.vercel.app/api/webhook/openclaw"
    headers:
      x-api-key: "${CLAWFLOW_API_KEY}"
    payload_template: |
      {
        "flow": "task",
        "input": "{{user_input}}"
      }

Enter fullscreen mode Exit fullscreen mode

3. The CLI Trigger (Development Tool)

For local testing, the CLI sends OpenClaw-format payloads:

node trigger.js
# Simulates: POST /api/webhook/openclaw
# Payload: { trigger_id, flow, input }

Enter fullscreen mode Exit fullscreen mode

Demo

Live: https://clawflow-engine.vercel.app/ →

Screenshots

Feature Screenshot
Dashboard Dashboard
Email-Claw EmailClaw
Pipeline Builder Pipeline
Rich Output Output
CLI Trigger CLI
Email-CLI EmailCLI

Quick Demo Flow:

  1. Task-Claw → Input: "urgent: fix auth bug, deploy patch" → Structured tasks with priority
  2. Debug-Claw → Paste error logs → Severity-classified issues with fix suggestions
  3. Pipeline-Claw → Input messy text → Watch 3 stages execute with full trace

Simulated OpenClaw Trigger

The demo simulates an OpenClaw agent calling ClawFlow:

# Simulated webhook call (shown in demo terminal)
POST /api/webhook/openclaw
Content-Type: application/json
X-API-Key: clawflow_prod_key

{
  "trigger_id": "oc-2026-001",
  "flow": "pipeline",
  "input": "build an AI app for farmers..."
}

# Response: 3ms
{
  "status": "completed",
  "execution_data": { "tasks": [...], "plan": {...} }
}

Enter fullscreen mode Exit fullscreen mode


How I Used OpenClaw

ClawFlow is designed as a complementary execution layer for OpenClaw. While OpenClaw orchestrates high-level workflows and agents, ClawFlow handles deterministic, low-latency task execution through modular "Claws."

I implemented a webhook bridge (/api/webhook/openclaw) that allows OpenClaw agents to trigger flows programmatically, effectively separating orchestration (OpenClaw) from execution (ClawFlow).

This architecture lets OpenClaw agents route simple, structured tasks to ClawFlow for fast, predictable execution (< 5ms, zero cost), while reserving LLM calls for tasks requiring reasoning and creativity.


What I Learned

  1. AI agents need deterministic execution partners. OpenClaw agents excel at intent and orchestration, but they need reliable backends for data transformation. ClawFlow fills that gap.

  2. Speed is a feature. At < 5ms execution, ClawFlow can run inside agent decision loops without blocking UX. LLMs take 1-5 seconds — that's unusable for real-time agent workflows.

  3. Persistence unlocks agent memory. With SQLite, every execution is traceable. Agents can query history: "What did I parse yesterday?" → retrieve and continue workflows.

  4. The OpenClaw skills model is elegant. Building a compatible execution engine gave me deep appreciation for the separation of concerns: agents decide what to do, skills determine how to do it.

  5. No-code extensibility matters. By adding a visual Claw Creator with 11 pre-built templates, I made the platform accessible to non-developers while keeping the code-based extension path for power users. This "product-facing" approach makes the platform more compelling — anyone can click, create, and run immediately (from "developer-only" into "anyone can use this immediately").


🛠 QUICK Q&A's

Q: How does this actually integrate with OpenClaw?
A: ClawFlow exposes an authenticated webhook at /api/webhook/openclaw that accepts standard OpenClaw payloads. Agents send {trigger_id, flow, input} and receive structured results. See openclaw.config.yml for a complete agent configuration example.

Q: Why not just use an LLM for parsing?
A: Three reasons: (1) Speed — LLMs take 1-5 seconds, ClawFlow takes < 5ms, usable in real-time agent loops. (2) Reliability — deterministic output means agents can trust the structure. (3) Cost — zero API calls vs $0.02 per LLM invocation. It's about giving agents precision tools, not replacing AI.

Q: How extensible is it?
A: Two ways: (1) Visual Claw Creator — pick from 11 templates, name it, done. Instant, no-code. (2) Code path — create lib/flows/mySkill.ts, register in lib/flows/index.ts. The engine handles validation, timing, persistence, and webhook compatibility automatically. It's designed for both beginners and developers.

Q: Is this really using OpenClaw or just inspired by it?
A: This is a real integration. ClawFlow acts as an execution backend that OpenClaw agents can call via webhook. The CLI trigger demonstrates the exact payload format. The openclaw.config.yml shows how an agent would be configured to use ClawFlow as a skill provider.

Built with Next.js 15, TypeScript, SQLite, Drizzle ORM, and Tailwind CSS.