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

推荐订阅源

N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
人人都是产品经理
人人都是产品经理
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
LangChain Blog
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
IT之家
IT之家
V
V2EX
C
Check Point Blog
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI
B
Blog
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网

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
6 n8n Workflow Patterns for AI Automation (Lead Gen, Enri...
BLNCraft · 2026-05-18 · via DEV Community

BLNCraft

6 n8n workflow patterns for AI automation (with real examples)

After building n8n automations for over a year across different use cases, I started recognizing the same core patterns appearing in every serious AI automation setup. Here are the six that show up in every production workflow I have built.


Pattern 1: Webhook → LLM classify → route

The classic intake pattern. An inbound webhook (from email, form, Slack, API call) triggers an LLM to classify the payload, then routes it to the right downstream workflow.

Webhook trigger
  → HTTP Request (normalize payload)
  → Claude/GPT-4o node (classify: type, urgency, intent)
  → Switch node (route by classification)
    → Branch A: create Linear ticket
    → Branch B: send Slack alert
    → Branch C: log and discard

Enter fullscreen mode Exit fullscreen mode

Use case: Customer support triage, inbound lead routing, webhook fan-out


Pattern 2: Cron → scrape → summarize → Slack

The daily briefing pattern. Fires every morning, scrapes target sources, runs an LLM summarizer, posts to Slack.

Schedule trigger (every day 07:00)
  → HTTP Request nodes (scrape sources)
  → Merge node
  → Claude node (summarize + extract key signals)
  → Slack node (post to #briefings)

Enter fullscreen mode Exit fullscreen mode

Use case: Competitor monitoring, keyword alerts, market intelligence, news briefings


Pattern 3: CRM event → AI enrich → update

Fires when a new lead enters HubSpot/Pipedrive. Enriches with public data, generates an AI-written lead summary, writes it back to the CRM.

HubSpot trigger (new contact)
  → HTTP Request (fetch enrichment data: LinkedIn, Clearbit, Apollo)
  → Claude node (synthesize: company context, fit score, outreach angle)
  → HubSpot node (update contact with AI summary)
  → Slack node (notify sales rep)

Enter fullscreen mode Exit fullscreen mode

Use case: Sales automation, lead enrichment, SDR assist


Pattern 4: Document → chunk → embed → vector store

Local RAG without a managed service. Process documents into a searchable vector store.

File trigger (new upload to folder)
  → Code node (read + chunk into ~512 token segments)
  → Embeddings node (OpenAI/Cohere)
  → Vector store node (Qdrant, Pinecone, Supabase pgvector)
  → Response: "Document indexed, 42 chunks stored"

Enter fullscreen mode Exit fullscreen mode

Use case: Internal knowledge base, contract analysis, support doc search


Pattern 5: Error → LLM diagnose → create ticket

Self-healing workflows. When a critical workflow errors, an LLM diagnoses the error and creates a Linear/GitHub ticket automatically.

Error trigger (workflow failed)
  → Code node (format error: workflow, node, message, context)
  → Claude node (diagnose: likely cause + suggested fix)
  → Linear node (create issue with LLM diagnosis)
  → Slack node (alert #on-call)

Enter fullscreen mode Exit fullscreen mode

Use case: Monitoring, incident response, workflow reliability


Pattern 6: Trigger → AI draft → human approve → send

Best of both worlds: AI writes, human approves. The approval step can be Slack, email, or a custom web form.

Schedule trigger
  → Claude node (draft: email / social post / report)
  → Wait node (pause for human review)
    → Slack node ("Draft ready — approve or edit?")
  → If approved: send via Gmail / Postmark / Resend
  → If rejected: loop back to Claude with feedback

Enter fullscreen mode Exit fullscreen mode

Use case: Outbound email sequences, social media, weekly reports


What makes these work in production

A few things separate toy demos from workflows that run reliably for months:

Error handling at every HTTP node. Set "Continue on fail" and add an error branch. Unhandled HTTP failures will silently break your workflow.

Declare your LLM model explicitly. Do not use defaults — specify the exact model (claude-sonnet-4-6, gpt-4o, etc.) so updates do not surprise you.

Use credential variables, not hardcoded values. n8n's built-in credentials manager handles rotation gracefully.

Separate triggering from processing. Webhook receivers should be thin — just validate and hand off. Do the heavy processing in a second workflow called via n8n's API.


The part that is tedious

Building these patterns from scratch is not hard — it is just slow. I spent most of my first six months recreating the same structural patterns across different clients and use cases.

I packaged up 350 of these into a production workflow library: 12 integration lanes, all LLMs pre-configured and swappable with one node edit.

350 n8n AI Workflow Templates on Gumroad — use BLNCRAFT20 for 20% off launch week.


What patterns are you using in your n8n automations? Always curious what combinations people find most useful.