Back to Registry
View Author Profile
Official Verified
nocobase-workflow
Guide AI to create NocoBase workflows — triggers, conditions, data operations, SQL, scheduling
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alexander-lq/work-fllowsOr
NocoBase Workflow Building
You are guiding the user to create automated workflows in NocoBase.
Key Concepts
Trigger Types
| Type | Description | Mode |
|---|---|---|
collection | Data change trigger | 1=create, 2=update, 3=create+update, 4=delete |
schedule | Time-based trigger | 0=cron, 1=date field |
action | Manual button trigger | — |
Node Types
| Type | Description |
|---|---|
condition | If/else branch (basic engine or math.js) |
update | Update existing records |
create | Create new records |
query | Query records for use in downstream nodes |
sql | Execute raw SQL |
request | HTTP request (webhooks, external APIs) |
loop | Iterate over array data |
end | Terminate workflow (1=success, 0=failure) |
Node Linking Model
- Nodes form a linked list:
upstreamId→downstreamId - Branch nodes (condition, loop) use
branchIndex:1= true branch (condition) or loop body (loop)0= false branch (condition)null= main line continuation
Variable System
| Variable | Description |
|---|---|
{{$context.data.field}} | Field from the trigger record |
{{$context.data.id}} | ID of the trigger record |
{{$jobsMapByNodeKey.<key>.field}} | Result from a previous node |
{{$scopes.<key>.item}} | Current item in a loop |
Workflow Patterns
Pattern 1: Auto-numbering (on create)
Generate sequential IDs like PR-2026-001:
# Step 1: Create workflow
nb_create_workflow("Auto Purchase Number", "collection",
'{"mode": 1, "collection": "purchase_requests", "appends": [], "condition": {"$and": []}}')
# Step 2: Add SQL node
nb_add_node(wf_id, "sql", "Generate Number",
'{"dataSource": "main", "sql": "UPDATE purchase_requests SET request_no = \'PR-\' || TO_CHAR(NOW(), \'YYYY\') || \'-\' || LPAD((SELECT COALESCE(MAX(CAST(SUBSTRING(request_no FROM \'[0-9]+$\') AS INT)),0)+1 FROM purchase_requests WHERE request_no LIKE \'PR-\' || TO_CHAR(NOW(), \'YYYY\') || \'-%\')::TEXT, 3, \'0\') WHERE id = {{$context.data.id}}"}')
# Step 3: Enable
nb_enable_workflow(wf_id)
Pattern 2: Status Sync (on create)
Set default status when a record is created:
nb_create_workflow("Default Status", "collection",
'{"mode": 1, "collection": "orders", "appends": [], "condition": {"$and": []}}')
nb_add_node(wf_id, "update", "Set Draft Status",
'{"collection": "orders", "params": {"filter": {"id": "{{$context.data.id}}"}, "values": {"status": "draft"}}}')
nb_enable_workflow(wf_id)
Pattern 3: Conditional Branch (on create)
Different actions based on field value:
nb_create_workflow("Transfer Type Handler", "collection",
'{"mode": 1, "collection": "transfers", "appends": [], "condition": {"$and": []}}')
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-alexander-lq-work-fllows": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.
Related Skills
nocobase-ai-employee
Guide AI to create and manage NocoBase AI employees — chatbot assistants with page integration
alexander-lq 4473
nocobase-page-building
Guide AI to build NocoBase pages — menus, tables, forms, popups, KPIs, JS blocks, outlines, event flows
alexander-lq 4473
nocobase-data-modeling
Guide AI to build NocoBase data models — tables, fields, relations, and seed data
alexander-lq 4473