The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"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
]
},
{
"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.) \u2014 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
},
"staticData": null
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
[n8n Template] Claude AI LINE Chatbot. Uses httpRequest. Webhook trigger; 5 nodes.
Source: https://github.com/eightask01-design/claude-powered-n8n-templates/blob/main/workflows/01-claude-line-chatbot/workflow.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This n8n template provides enterprise-level version control for your workflows using GitHub integration. Stop losing hours to broken workflows and manual exports – get proper commit history, visual di
This flow creates dummy files for every item added in your *Arrs (Radarr/Sonarr) with the tag .
eek-Go v2 (Batch-Then-Review). Uses httpRequest. Webhook trigger; 75 nodes.
This workflow receives webhook requests from a content calendar and uses the X API v2 to publish text posts, threads, image/video posts, and polls, as well as delete existing posts and run a credentia
This workflow acts as a central API gateway for all technical indicator agents in the Binance Spot Market Quant AI system. It listens for incoming webhook requests and dynamically routes them to the c