🦀 ClawHub
N8n Workflow Automation Litiao
by @litiao1224
Designs and outputs n8n workflow JSON with robust triggers, idempotency, error handling, logging, retries, and human-in-the-loop review queues. Use when you...
TERMINAL
clawhub install n8n-workflow-automation-litiao📖 About This Skill
name: n8n-workflow-automation-litiao description: Designs and outputs n8n workflow JSON with robust triggers, idempotency, error handling, logging, retries, and human-in-the-loop review queues. Use when you need an auditable automation that won’t silently fail.
n8n workflow automation with retries, logging, and review queues
PURPOSE
Designs and outputs n8n workflow JSON with robust triggers, idempotency, error handling, logging, retries, and human-in-the-loop review queues.WHEN TO USE
INPUTS
OUTPUTS
workflow.json (n8n importable JSON) + runbook.md (from template).WORKFLOW
1. Clarify trigger: - Cron/webhook/manual; schedule/timezone; concurrency expectations. 2. Define data contract: - input schema, required fields, and validation rules. 3. Design idempotency: - choose dedup key(s) and storage (DB/Sheet) to prevent duplicates on retries. 4. Add observability: - generaterun_id, log start/end, store status row and error details.
5. Implement error handling:
- per-node error branches, retry with backoff, and final failure notification.
6. Add human-in-the-loop (HITL) review queue:
- write failed items to a queue (Sheet/DB) and require approval to reprocess.
7. “No silent failure” gates:
- if counts/thresholds fail, stop workflow and alert.
8. Output:
- If asked for JSON: produce importable n8n workflow JSON + runbook.
9. STOP AND ASK THE USER if:
- destination systems are unknown,
- no dedup key exists,
- credential strategy (env vars) is not specified,
- the workflow needs privileged access not yet approved.OUTPUT FORMAT
If outputting n8n workflow JSON, conform to:{
"name": "",
"nodes": [ { "name": "Trigger", "type": "n8n-nodes-base.cron", "parameters": {}, "position": [0,0] } ],
"connections": {},
"settings": {},
"active": false
}
Also output runbook.md using assets/runbook-template.md.
SAFETY & EDGE CASES
EXAMPLES
workflow.json with Cron → Fetch → Aggregate → Email, plus error branches to review queue.⚡ When to Use
💡 Examples
workflow.json with Cron → Fetch → Aggregate → Email, plus error branches to review queue.