← 返回
开发者工具 Key 中文

n8n Workflow Templates

Production-ready n8n workflow templates for AI agents. Deploy pre-built automations for webhooks, RSS monitoring, health checks, social metrics, and data bac...
面向 AI 智能体的生产级 n8n 工作流模板。部署预置自动化,涵盖 Webhook、RSS 监控、健康检查、社交指标及数据备份。
yoder-bawt
开发者工具 clawhub v1.0.0 1 版本 99869.5 Key: 需要
★ 0
Stars
📥 1,531
下载
💾 17
安装
1
版本
#automation#latest#n8n#templates#workflow

概述

n8n Workflow Templates

Deploy production-ready n8n workflows in seconds. Five battle-tested templates plus management scripts for the complete n8n workflow lifecycle.

Quick Start

# Set your n8n credentials
export N8N_HOST="http://localhost:5678"
export N8N_API_KEY="n8n_api_xxxxx"

# List existing workflows
bash list-workflows.sh

# Deploy a template
bash deploy.sh "$N8N_HOST" "$N8N_API_KEY" templates/webhook-to-telegram.json

Templates

TemplateDescriptionUse Case
---------------------------------
webhook-to-telegram.jsonWebhook receiver → Telegram alertsInstant notifications from any service
rss-monitor.jsonRSS feed monitoring with filteringTrack blogs, news, releases
health-check.jsonHTTP health checks with alertsMonitor services, APIs, websites
social-metrics.jsonScheduled social media collectionTrack followers, engagement
data-backup.jsonAutomated backup with notificationsDatabase/file backups

Detailed Usage

Environment Variables

VariableRequiredDefaultDescription
------------------------------------------
N8N_HOSTYes-n8n instance URL
N8N_API_KEYYes-API key from n8n settings

Deployment

bash deploy.sh <n8n-url> <api-key> <template-file> [workflow-name]

Arguments:

  • n8n-url - Full URL to n8n instance (e.g., http://10.0.0.120:5678)
  • api-key - n8n API key
  • template-file - Path to workflow JSON file
  • workflow-name (optional) - Override the workflow name

Example:

bash deploy.sh "http://10.0.0.120:5678" "n8n_api_abc123" templates/health-check.json "My Health Monitor"

Listing Workflows

bash list-workflows.sh <n8n-url> <api-key>

Lists all active workflows with their IDs, names, and activation status.

Template Details

webhook-to-telegram

Receives HTTP POST requests, processes JSON payload, sends formatted messages to Telegram.

Webhook URL: ${N8N_HOST}/webhook/workflow-id

Expected payload:

{
  "message": "Alert from my service",
  "level": "warning",
  "timestamp": "2026-02-10T22:00:00Z"
}

Required setup: Configure Telegram bot token and chat ID in the workflow.

rss-monitor

Monitors RSS feeds on schedule, filters by keywords, alerts on new items.

Features:

  • Runs every 15 minutes
  • Keyword filtering (include/exclude)
  • Duplicate detection
  • Multi-channel alerts (Telegram, Discord, email)

Required setup: Set RSS feed URL and alert destination.

health-check

Performs HTTP health checks, alerts on failure, tracks response times.

Features:

  • Configurable check interval
  • Response time thresholds
  • Consecutive failure alerts
  • Status history tracking

Required setup: Set target URLs and alert channels.

social-metrics

Collects social media metrics on schedule, stores for trending.

Features:

  • Daily metric collection
  • Multi-platform support (X/Twitter, LinkedIn, etc.)
  • Data storage in n8n or external DB
  • Trend analysis ready

Required setup: Configure API credentials for each platform.

data-backup

Automated backup workflow with pre/post checks and notifications.

Features:

  • Schedule-based execution
  • Pre-backup validation
  • Backup verification
  • Success/failure notifications
  • Retention policy enforcement

Required setup: Configure backup source, destination, and credentials.

API Reference

The scripts use n8n REST API v1:

GET  /api/v1/workflows          # List workflows
POST /api/v1/workflows          # Create workflow
GET  /api/v1/workflows/:id      # Get workflow
PUT  /api/v1/workflows/:id      # Update workflow
POST /api/v1/workflows/:id/activate    # Activate
POST /api/v1/workflows/:id/deactivate  # Deactivate

Full API docs: ${N8N_HOST}/api/v1/docs

Customizing Templates

Templates are standard n8n workflow JSON. Edit in n8n UI or modify the JSON directly:

# Copy and customize
cp templates/health-check.json my-custom-check.json
# Edit my-custom-check.json with your favorite editor
bash deploy.sh "$N8N_HOST" "$N8N_API_KEY" my-custom-check.json

Troubleshooting

"Unauthorized" error

  • Verify API key is correct
  • Check API key hasn't expired in n8n settings

"Connection refused"

  • Verify n8n is running
  • Check N8N_HOST includes correct port
  • Ensure firewall allows connection

Workflow won't activate

  • Check all credentials are configured in the workflow
  • Verify webhook nodes don't conflict with existing webhooks
  • Check n8n execution logs for errors

Template deployment fails

  • Validate JSON: python3 -c "import json; json.load(open('template.json'))"
  • Check n8n version compatibility (templates tested on v1.0+)

Requirements

  • n8n instance v1.0 or later
  • API access enabled in n8n settings
  • curl and bash
  • Network access to n8n instance

See Also

  • n8n Documentation: https://docs.n8n.io/
  • n8n API Reference: https://docs.n8n.io/api/
  • Workflow examples: https://n8n.io/workflows/

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 02:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Qdrant Advanced

yoder-bawt
面向AI代理的高级Qdrant向量数据库操作。包括语义搜索、带分块的上下文文档摄入、集合管理、快照等...
★ 0 📥 1,215
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,831
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,863