280+ free n8n automation templates — ready-to-use workflows for Gmail, Telegram, Slack, Discord, WhatsApp, Google Drive, Notion, OpenAI, and more. AI agents, RAG chatbots, email automation, social media, DevOps, and document processing. The largest open-source n8n template collection.
HTML ai-agentsai-automationautomationautomation-templatesawesomeawesome-listintegrationlow-coden8nn8n-automationn8n-templateno-code-aino-code-automationself-hostedtelegram-botworkflow-automation
Add 4 Claude AI n8n templates (Anthropic Claude integration)
八尋清志774dfac8b08d
diff --git a/OpenAI_and_LLMs/Claude AI Content Generator.json b/OpenAI_and_LLMs/Claude AI Content Generator.jsonnew file mode 100644index 0000000..4e56b5f--- /dev/null+++ b/OpenAI_and_LLMs/Claude AI Content Generator.json@@ -0,0 +1,123 @@+{+ "name": "[n8n Template] AI Content Generator",+ "nodes": [+ {+ "parameters": {+ "httpMethod": "POST",+ "path": "generate-content",+ "responseMode": "responseNode",+ "options": {}+ },+ "id": "c3d4e5f6-0001-0001-0001-c3d4e5f60001",+ "name": "Trigger Webhook",+ "type": "n8n-nodes-base.webhook",+ "typeVersion": 2,+ "position": [200, 300],+ "webhookId": "generate-content"+ },+ {+ "parameters": {+ "jsCode": "// Extract topic and content type from request\nconst body = $input.first().json;\n\nconst topic = body.topic || 'AI automation trends';\nconst contentType = body.type || 'blog'; // 'blog', 'newsletter', 'social'\nconst language = body.language || 'English';\nconst tone = body.tone || 'professional but approachable';\n\nconst prompts = {\n blog: `Write a complete blog post about: \"${topic}\"\\n\\nRequirements:\\n- Title (H1)\\n- Introduction (2-3 sentences)\\n- 3 main sections with H2 headers\\n- Practical examples in each section\\n- Conclusion with call to action\\n- Tone: ${tone}\\n- Language: ${language}\\n- Length: ~600 words`,\n \n newsletter: `Write a newsletter issue about: \"${topic}\"\\n\\nRequirements:\\n- Catchy subject line\\n- Opening hook (1-2 sentences)\\n- 3 key insights with brief explanations\\n- One actionable tip\\n- Sign-off\\n- Tone: ${tone}\\n- Language: ${language}\\n- Length: ~300 words`,\n \n social: `Write 3 social media posts about: \"${topic}\"\\n\\nFor each post:\\n- Platform variant (Twitter/X, LinkedIn, Instagram)\\n- Different angle for each\\n- Relevant hashtags\\n- Tone: ${tone}\\n- Language: ${language}`\n};\n\nreturn [{\n json: {\n topic,\n contentType,\n language,\n prompt: prompts[contentType] || prompts.blog\n }\n}];"+ },+ "id": "c3d4e5f6-0002-0002-0002-c3d4e5f60002",+ "name": "Build Prompt",+ "type": "n8n-nodes-base.code",+ "typeVersion": 2,+ "position": [420, 300]+ },+ {+ "parameters": {+ "method": "POST",+ "url": "https://api.anthropic.com/v1/messages",+ "sendHeaders": true,+ "headerParameters": {+ "parameters": [+ {+ "name": "x-api-key",+ "value": "={{ $env.ANTHROPIC_API_KEY }}"+ },+ {+ "name": "anthropic-version",+ "value": "2023-06-01"+ },+ {+ "name": "content-type",+ "value": "application/json"+ }+ ]+ },+ "sendBody": true,+ "specifyBody": "json",+ "jsonBody": "={\n \"model\": \"claude-sonnet-4-6\",\n \"max_tokens\": 2000,\n \"system\": \"You are an expert content writer. Produce high-quality, engaging content that provides real value to readers.\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"{{ $json.prompt }}\"\n }\n ]\n}",+ "options": {}+ },+ "id": "c3d4e5f6-0003-0003-0003-c3d4e5f60003",+ "name": "Generate Content",+ "type": "n8n-nodes-base.httpRequest",+ "typeVersion": 4,+ "position": [640, 300]+ },+ {+ "parameters": {+ "method": "POST",+ "url": "=https://hooks.slack.com/services/{{ $env.SLACK_WEBHOOK_PATH }}",+ "sendBody": true,+ "specifyBody": "json",+ "jsonBody": "={\n \"text\": \"✍️ New content generated for topic: *{{ $('Build Prompt').first().json.topic }}*\",\n \"blocks\": [\n {\n \"type\": \"section\",\n \"text\": {\n \"type\": \"mrkdwn\",\n \"text\": \"✍️ *Content Ready*\\nTopic: {{ $('Build Prompt').first().json.topic }}\\nType: {{ $('Build Prompt').first().json.contentType }}\"\n }\n },\n {\n \"type\": \"section\",\n \"text\": {\n \"type\": \"mrkdwn\",\n \"text\": \"{{ $json.content[0].text.substring(0, 500) }}...\"\n }\n }\n ]\n}",+ "options": {}+ },+ "id": "c3d4e5f6-0004-0004-0004-c3d4e5f60004",+ "name": "Notify via Slack",+ "type": "n8n-nodes-base.httpRequest",+ "typeVersion": 4,+ "position": [860, 200]+ },+ {+ "parameters": {+ "respondWith": "json",+ "responseBody": "={\n \"status\": \"success\",\n \"topic\": \"{{ $('Build Prompt').first().json.topic }}\",\n \"contentType\": \"{{ $('Build Prompt').first().json.contentType }}\",\n \"content\": \"{{ $('Generate Content').first().json.content[0].text }}\"\n}",+ "options": {}+ },+ "id": "c3d4e5f6-0005-0005-0005-c3d4e5f60005",+ "name": "Return Content",+ "type": "n8n-nodes-base.respondToWebhook",+ "typeVersion": 1,+ "position": [860, 400]+ }+ ],+ "connections": {+ "Trigger Webhook": {+ "main": [+ [+ { "node": "Build Prompt", "type": "main", "index": 0 }+ ]+ ]+ },+ "Build Prompt": {+ "main": [+ [+ { "node": "Generate Content", "type": "main", "index": 0 }+ ]+ ]+ },+ "Generate Content": {+ "main": [+ [+ { "node": "Notify via Slack", "type": "main", "index": 0 },+ { "node": "Return Content", "type": "main", "index": 0 }+ ]+ ]+ }+ },+ "active": false,+ "settings": {+ "executionOrder": "v1"+ },+ "versionId": "n8n-claude-template-03",+ "meta": {+ "templateCredsSetupCompleted": false,+ "instanceId": "template"+ },+ "pinData": {},+ "staticData": null+}diff --git a/OpenAI_and_LLMs/Claude AI LINE Chatbot.json b/OpenAI_and_LLMs/Claude AI LINE Chatbot.jsonnew file mode 100644index 0000000..c44d26e--- /dev/null+++ b/OpenAI_and_LLMs/Claude AI LINE Chatbot.json@@ -0,0 +1,136 @@+{+ "name": "[n8n Template] Claude AI LINE Chatbot",+ "nodes": [+ {+ "parameters": {+ "httpMethod": "POST",+ "path": "claude-line-bot",+ "responseMode": "responseNode",+ "options": {}+ },+ "id": "a1b2c3d4-0001-0001-0001-a1b2c3d40001",+ "name": "LINE Webhook",+ "type": "n8n-nodes-base.webhook",+ "typeVersion": 2,+ "position": [200, 300],+ "webhookId": "claude-line-bot"+ },+ {+ "parameters": {+ "jsCode": "// Validate LINE signature and extract message\nconst body = $input.first().json;\nconst events = body.events || [];\n\nconst textEvent = events.find(\n e => e.type === 'message' && e.message?.type === 'text'\n);\n\nif (!textEvent) {\n // Non-text event (sticker, image, etc.) — skip\n return [];\n}\n\nreturn [{\n json: {\n userId: textEvent.source.userId,\n replyToken: textEvent.replyToken,\n userMessage: textEvent.message.text\n }\n}];"+ },+ "id": "a1b2c3d4-0002-0002-0002-a1b2c3d40002",+ "name": "Extract Message",+ "type": "n8n-nodes-base.code",+ "typeVersion": 2,+ "position": [420, 300]+ },+ {+ "parameters": {+ "method": "POST",+ "url": "https://api.anthropic.com/v1/messages",+ "sendHeaders": true,+ "headerParameters": {+ "parameters": [+ {+ "name": "x-api-key",+ "value": "={{ $env.ANTHROPIC_API_KEY }}"+ },+ {+ "name": "anthropic-version",+ "value": "2023-06-01"+ },+ {+ "name": "content-type",+ "value": "application/json"+ }+ ]+ },+ "sendBody": true,+ "specifyBody": "json",+ "jsonBody": "={\n \"model\": \"claude-opus-4-5\",\n \"max_tokens\": 500,\n \"system\": \"You are a helpful assistant. Reply concisely in the same language the user writes in.\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"{{ $json.userMessage }}\"\n }\n ]\n}",+ "options": {}+ },+ "id": "a1b2c3d4-0003-0003-0003-a1b2c3d40003",+ "name": "Ask Claude",+ "type": "n8n-nodes-base.httpRequest",+ "typeVersion": 4,+ "position": [640, 300]+ },+ {+ "parameters": {+ "method": "POST",+ "url": "https://api.line.me/v2/bot/message/reply",+ "sendHeaders": true,+ "headerParameters": {+ "parameters": [+ {+ "name": "Authorization",+ "value": "=Bearer {{ $env.LINE_CHANNEL_ACCESS_TOKEN }}"+ },+ {+ "name": "Content-Type",+ "value": "application/json"+ }+ ]+ },+ "sendBody": true,+ "specifyBody": "json",+ "jsonBody": "={\n \"replyToken\": \"{{ $('Extract Message').first().json.replyToken }}\",\n \"messages\": [\n {\n \"type\": \"text\",\n \"text\": \"{{ $json.content[0].text }}\"\n }\n ]\n}",+ "options": {}+ },+ "id": "a1b2c3d4-0004-0004-0004-a1b2c3d40004",+ "name": "Reply via LINE",+ "type": "n8n-nodes-base.httpRequest",+ "typeVersion": 4,+ "position": [860, 300]+ },+ {+ "parameters": {+ "respondWith": "text",+ "responseBody": "OK",+ "options": {}+ },+ "id": "a1b2c3d4-0005-0005-0005-a1b2c3d40005",+ "name": "Return 200",+ "type": "n8n-nodes-base.respondToWebhook",+ "typeVersion": 1,+ "position": [420, 480]+ }+ ],+ "connections": {+ "LINE Webhook": {+ "main": [+ [+ { "node": "Extract Message", "type": "main", "index": 0 },+ { "node": "Return 200", "type": "main", "index": 0 }+ ]+ ]+ },+ "Extract Message": {+ "main": [+ [+ { "node": "Ask Claude", "type": "main", "index": 0 }+ ]+ ]+ },+ "Ask Claude": {+ "main": [+ [+ { "node": "Reply via LINE", "type": "main", "index": 0 }+ ]+ ]+ }+ },+ "active": false,+ "settings": {+ "executionOrder": "v1"+ },+ "versionId": "n8n-claude-template-01",+ "meta": {+ "templateCredsSetupCompleted": false,+ "instanceId": "template"+ },+ "pinData": {},+ "staticData": null+}diff --git a/OpenAI_and_LLMs/Claude AI Morning Brief.json b/OpenAI_and_LLMs/Claude AI Morning Brief.jsonnew file mode 100644index 0000000..c666ffa--- /dev/null+++ b/OpenAI_and_LLMs/Claude AI Morning Brief.json@@ -0,0 +1,126 @@+{+ "name": "[n8n Template] AI Morning Brief",+ "nodes": [+ {+ "parameters": {+ "rule": {+ "interval": [+ {+ "field": "cronExpression",+ "expression": "0 8 * * *"+ }+ ]+ }+ },+ "id": "b2c3d4e5-0001-0001-0001-b2c3d4e50001",+ "name": "Every Day 8am",+ "type": "n8n-nodes-base.scheduleTrigger",+ "typeVersion": 1,+ "position": [200, 300]+ },+ {+ "parameters": {+ "jsCode": "// Build today's context for Claude\nconst now = new Date();\nconst dateStr = now.toLocaleDateString('en-US', {\n weekday: 'long',\n year: 'numeric',\n month: 'long',\n day: 'numeric'\n});\n\n// Customize: add your tasks/calendar data here\nconst todaysTasks = [\n 'Check emails',\n 'Team standup at 10am',\n 'Review pull requests'\n];\n\nreturn [{\n json: {\n date: dateStr,\n tasks: todaysTasks.join('\\n- '),\n prompt: `Today is ${dateStr}.\\n\\nMy tasks for today:\\n- ${todaysTasks.join('\\n- ')}\\n\\nPlease give me a motivating, concise morning brief (3-5 sentences) that:\\n1. Acknowledges today's date/day\\n2. Highlights the key priorities\\n3. Ends with one actionable focus tip`\n }\n}];"+ },+ "id": "b2c3d4e5-0002-0002-0002-b2c3d4e50002",+ "name": "Build Context",+ "type": "n8n-nodes-base.code",+ "typeVersion": 2,+ "position": [420, 300]+ },+ {+ "parameters": {+ "method": "POST",+ "url": "https://api.anthropic.com/v1/messages",+ "sendHeaders": true,+ "headerParameters": {+ "parameters": [+ {+ "name": "x-api-key",+ "value": "={{ $env.ANTHROPIC_API_KEY }}"+ },+ {+ "name": "anthropic-version",+ "value": "2023-06-01"+ },+ {+ "name": "content-type",+ "value": "application/json"+ }+ ]+ },+ "sendBody": true,+ "specifyBody": "json",+ "jsonBody": "={\n \"model\": \"claude-haiku-4-5\",\n \"max_tokens\": 300,\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"{{ $json.prompt }}\"\n }\n ]\n}",+ "options": {}+ },+ "id": "b2c3d4e5-0003-0003-0003-b2c3d4e50003",+ "name": "Generate Brief",+ "type": "n8n-nodes-base.httpRequest",+ "typeVersion": 4,+ "position": [640, 300]+ },+ {+ "parameters": {+ "method": "POST",+ "url": "https://api.line.me/v2/bot/message/push",+ "sendHeaders": true,+ "headerParameters": {+ "parameters": [+ {+ "name": "Authorization",+ "value": "=Bearer {{ $env.LINE_CHANNEL_ACCESS_TOKEN }}"+ },+ {+ "name": "Content-Type",+ "value": "application/json"+ }+ ]+ },+ "sendBody": true,+ "specifyBody": "json",+ "jsonBody": "={\n \"to\": \"{{ $env.LINE_USER_ID }}\",\n \"messages\": [\n {\n \"type\": \"text\",\n \"text\": \"🌅 Morning Brief\\n\\n{{ $json.content[0].text }}\"\n }\n ]\n}",+ "options": {}+ },+ "id": "b2c3d4e5-0004-0004-0004-b2c3d4e50004",+ "name": "Send via LINE",+ "type": "n8n-nodes-base.httpRequest",+ "typeVersion": 4,+ "position": [860, 300]+ }+ ],+ "connections": {+ "Every Day 8am": {+ "main": [+ [+ { "node": "Build Context", "type": "main", "index": 0 }+ ]+ ]+ },+ "Build Context": {+ "main": [+ [+ { "node": "Generate Brief", "type": "main", "index": 0 }+ ]+ ]+ },+ "Generate Brief": {+ "main": [+ [+ { "node": "Send via LINE", "type": "main", "index": 0 }+ ]+ ]+ }+ },+ "active": false,+ "settings": {+ "executionOrder": "v1"+ },+ "versionId": "n8n-claude-template-02",+ "meta": {+ "templateCredsSetupCompleted": false,+ "instanceId": "template"+ },+ "pinData": {},+ "staticData": null+}diff --git a/OpenAI_and_LLMs/Claude Smart Webhook AI Router.json b/OpenAI_and_LLMs/Claude Smart Webhook AI Router.jsonnew file mode 100644index 0000000..9b1bfdc--- /dev/null+++ b/OpenAI_and_LLMs/Claude Smart Webhook AI Router.json@@ -0,0 +1,164 @@+{+ "name": "[n8n Template] Smart Webhook AI Router",+ "nodes": [+ {+ "parameters": {+ "httpMethod": "POST",+ "path": "ai-router",+ "responseMode": "responseNode",+ "options": {}+ },+ "id": "d4e5f6a7-0001-0001-0001-d4e5f6a70001",+ "name": "Incoming Webhook",+ "type": "n8n-nodes-base.webhook",+ "typeVersion": 2,+ "position": [200, 300],+ "webhookId": "ai-router"+ },+ {+ "parameters": {+ "method": "POST",+ "url": "https://api.anthropic.com/v1/messages",+ "sendHeaders": true,+ "headerParameters": {+ "parameters": [+ {+ "name": "x-api-key",+ "value": "={{ $env.ANTHROPIC_API_KEY }}"+ },+ {+ "name": "anthropic-version",+ "value": "2023-06-01"+ },+ {+ "name": "content-type",+ "value": "application/json"+ }+ ]+ },+ "sendBody": true,+ "specifyBody": "json",+ "jsonBody": "={\n \"model\": \"claude-haiku-4-5\",\n \"max_tokens\": 100,\n \"system\": \"You are a request classifier. Analyze the incoming request and respond with ONLY a JSON object: {\\\"route\\\": \\\"<route_name>\\\", \\\"priority\\\": \\\"high|medium|low\\\", \\\"summary\\\": \\\"<one sentence>\\\"}\\n\\nAvailable routes: support, sales, technical, general\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Classify this request: {{ JSON.stringify($json.body || $json) }}\"\n }\n ]\n}",+ "options": {}+ },+ "id": "d4e5f6a7-0002-0002-0002-d4e5f6a70002",+ "name": "Claude Classifier",+ "type": "n8n-nodes-base.httpRequest",+ "typeVersion": 4,+ "position": [420, 300]+ },+ {+ "parameters": {+ "jsCode": "// Parse Claude's classification response\nconst rawText = $input.first().json.content[0].text;\nlet classification;\n\ntry {\n // Extract JSON from response\n const jsonMatch = rawText.match(/\\{[^}]+\\}/);\n classification = JSON.parse(jsonMatch[0]);\n} catch (e) {\n classification = { route: 'general', priority: 'medium', summary: 'Unable to classify' };\n}\n\nreturn [{\n json: {\n route: classification.route || 'general',\n priority: classification.priority || 'medium',\n summary: classification.summary || '',\n originalPayload: $('Incoming Webhook').first().json\n }\n}];"+ },+ "id": "d4e5f6a7-0003-0003-0003-d4e5f6a70003",+ "name": "Parse Classification",+ "type": "n8n-nodes-base.code",+ "typeVersion": 2,+ "position": [640, 300]+ },+ {+ "parameters": {+ "rules": {+ "values": [+ {+ "conditions": {+ "options": { "caseSensitive": false },+ "conditions": [+ {+ "leftValue": "={{ $json.route }}",+ "rightValue": "support",+ "operator": { "type": "string", "operation": "equals" }+ }+ ]+ },+ "renameOutput": true,+ "outputKey": "support"+ },+ {+ "conditions": {+ "options": { "caseSensitive": false },+ "conditions": [+ {+ "leftValue": "={{ $json.route }}",+ "rightValue": "technical",+ "operator": { "type": "string", "operation": "equals" }+ }+ ]+ },+ "renameOutput": true,+ "outputKey": "technical"+ },+ {+ "conditions": {+ "options": { "caseSensitive": false },+ "conditions": [+ {+ "leftValue": "={{ $json.route }}",+ "rightValue": "sales",+ "operator": { "type": "string", "operation": "equals" }+ }+ ]+ },+ "renameOutput": true,+ "outputKey": "sales"+ }+ ]+ },+ "fallbackOutput": "extra"+ },+ "id": "d4e5f6a7-0004-0004-0004-d4e5f6a70004",+ "name": "Route Switch",+ "type": "n8n-nodes-base.switch",+ "typeVersion": 3,+ "position": [860, 300]+ },+ {+ "parameters": {+ "respondWith": "json",+ "responseBody": "={\n \"received\": true,\n \"route\": \"{{ $('Parse Classification').first().json.route }}\",\n \"priority\": \"{{ $('Parse Classification').first().json.priority }}\",\n \"summary\": \"{{ $('Parse Classification').first().json.summary }}\"\n}",+ "options": {}+ },+ "id": "d4e5f6a7-0005-0005-0005-d4e5f6a70005",+ "name": "Return Route Result",+ "type": "n8n-nodes-base.respondToWebhook",+ "typeVersion": 1,+ "position": [640, 500]+ }+ ],+ "connections": {+ "Incoming Webhook": {+ "main": [+ [+ { "node": "Claude Classifier", "type": "main", "index": 0 },+ { "node": "Return Route Result", "type": "main", "index": 0 }+ ]+ ]+ },+ "Claude Classifier": {+ "main": [+ [+ { "node": "Parse Classification", "type": "main", "index": 0 }+ ]+ ]+ },+ "Parse Classification": {+ "main": [+ [+ { "node": "Route Switch", "type": "main", "index": 0 }+ ]+ ]+ }+ },+ "active": false,+ "settings": {+ "executionOrder": "v1"+ },+ "versionId": "n8n-claude-template-04",+ "meta": {+ "templateCredsSetupCompleted": false,+ "instanceId": "template"+ },+ "pinData": {},+ "staticData": null+}diff --git a/README.md b/README.mdindex c29fb59..d9ce25c 100644--- a/README.md+++ b/README.md@@ -326,6 +326,10 @@ This is the largest category with 17 AI and LLM templates for n8n. Templates inc| AI: Ask questions about any data source (using the n8n workflow retriever) | Allows users to ask questions about various data sources using an n8n workflow retriever. | AI/Data Analysis/Workflow Automation | [Link to Template](OpenAI_and_LLMs/AI_%20Ask%20questions%20about%20any%20data%20source%20(using%20the%20n8n%20workflow%20retriever).json) || AI: Summarize podcast episode and enhance using Wikipedia | Summarizes podcast episodes and enhances the summary with information from Wikipedia using AI. | Content Creation/AI/Data Analysis | [Link to Template](OpenAI_and_LLMs/AI_%20Summarize%20podcast%20episode%20and%20enhance%20using%20Wikipedia.json) || AI Blog Writer Pipeline with Ollama | Uses Ollama local AI to research topics, create outlines, draft full blog posts, and edit them. Runs entirely locally with no API keys needed. | Content Creation/AI | [Link to Template](OpenAI_and_LLMs/AI%20Blog%20Writer%20Pipeline%20with%20Ollama.json) |+| Claude AI Content Generator | HTTP POST with a topic and content type triggers Claude to write a full blog post, newsletter, or social media content draft. Returns content via API and notifies via Slack. | Content Creation/AI/Marketing | [Link to Template](OpenAI_and_LLMs/Claude%20AI%20Content%20Generator.json) |+| Claude AI LINE Chatbot | Connects LINE messaging to Anthropic Claude AI. Receives LINE webhook, generates contextual reply with Claude, and sends response back to LINE user. | AI/Customer Service | [Link to Template](OpenAI_and_LLMs/Claude%20AI%20LINE%20Chatbot.json) |+| Claude AI Morning Brief | Runs daily at 8:00 AM, compiles a personalized briefing with Claude AI, and delivers it via LINE or email. | Productivity/AI/Automation | [Link to Template](OpenAI_and_LLMs/Claude%20AI%20Morning%20Brief.json) |+| Claude Smart Webhook AI Router | Routes incoming webhook requests by Anthropic Claude AI classification. Claude analyzes each payload and routes to support, technical, sales, or general handler. | AI/DevOps/Automation | [Link to Template](OpenAI_and_LLMs/Claude%20Smart%20Webhook%20AI%20Router.json) || SupportFlow Lite - Simple AI Customer Support Chatbot | A lightweight AI chatbot that answers customer questions using company info and OpenAI gpt-4o-mini. Easy single-workflow setup with Google Sheets knowledge base. | Customer Support/AI | [Link to Template](OpenAI_and_LLMs/SupportFlow%20Lite%20-%20Simple%20AI%20Customer%20Support%20Chatbot.json) |> 🚀 **Automate any workflow.** [Create your free n8n account and start building →](https://n8n.partnerlinks.io/h1pwwf5m4toe)