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": "ClawLoop Customer Support Demo",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "support",
"responseMode": "responseNode",
"options": {}
},
"id": "webhook-1",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
240,
300
]
},
{
"parameters": {
"url": "={{ $env.CLAWLOOP_BASE_URL || 'http://host.docker.internal:8400' }}/state",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "={{ $env.CLAWLOOP_SERVER_API_KEY ? 'Bearer ' + $env.CLAWLOOP_SERVER_API_KEY : '' }}"
}
]
},
"options": {}
},
"id": "get-state",
"name": "Get ClawLoop State",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
460,
300
]
},
{
"parameters": {
"method": "POST",
"url": "={{ $env.LLM_API_URL || 'https://api.openai.com/v1/chat/completions' }}",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "={{ 'Bearer ' + ($env.LLM_API_KEY || '') }}"
},
{
"name": "Content-Type",
"value": "application/json"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"model\": \"{{ $env.LLM_MODEL || 'gpt-4o-mini' }}\",\n \"temperature\": 0.2,\n \"messages\": [\n {\"role\": \"system\", \"content\": {{ JSON.stringify($('Get ClawLoop State').item.json.system_prompt) }}},\n {\"role\": \"user\", \"content\": {{ JSON.stringify($('Webhook').item.json.body.message) }}}\n ]\n}",
"options": {}
},
"id": "call-llm",
"name": "Call LLM",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
680,
300
]
},
{
"parameters": {
"method": "POST",
"url": "={{ $env.CLAWLOOP_BASE_URL || 'http://host.docker.internal:8400' }}/ingest",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "={{ $env.CLAWLOOP_SERVER_API_KEY ? 'Bearer ' + $env.CLAWLOOP_SERVER_API_KEY : '' }}"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"messages\": [\n {\"role\": \"system\", \"content\": {{ JSON.stringify($('Get ClawLoop State').item.json.system_prompt) }}},\n {\"role\": \"user\", \"content\": {{ JSON.stringify($('Webhook').item.json.body.message) }}},\n {\"role\": \"assistant\", \"content\": {{ JSON.stringify($json.choices[0].message.content) }}}\n ],\n \"metadata\": {\n \"conversation_id\": {{ JSON.stringify($execution.id) }},\n \"model\": \"{{ $env.LLM_MODEL || 'gpt-4o-mini' }}\"\n }\n}",
"options": {}
},
"id": "ingest-clawloop",
"name": "Ingest to ClawLoop",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
900,
300
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ JSON.stringify({ response: $('Call LLM').item.json.choices[0].message.content, episode_id: $json.episode_id }) }}"
},
"id": "respond-1",
"name": "Respond to Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
1120,
300
]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Get ClawLoop State",
"type": "main",
"index": 0
}
]
]
},
"Get ClawLoop State": {
"main": [
[
{
"node": "Call LLM",
"type": "main",
"index": 0
}
]
]
},
"Call LLM": {
"main": [
[
{
"node": "Ingest to ClawLoop",
"type": "main",
"index": 0
}
]
]
},
"Ingest to ClawLoop": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"meta": {
"templateCredsSetupCompleted": true
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
ClawLoop Customer Support Demo. Uses httpRequest. Webhook trigger; 5 nodes.
Source: https://github.com/aganthos/clawloop/blob/1abf8510fd0486bbc592734585f4e2918ad4c62d/examples/n8n/customer-support.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