backup: Chat Activity Feed (dashboard) [2026-11-05]

This commit is contained in:
moonside committed 2026-11-05 05:00:14 +00:00
1 parent 7a9492af9f
commit dbfb3c74f9
1 file changed
+43 -42
@@ -4,17 +4,12 @@
"active": true,
"activeVersionId": "e51c1afc-9de6-44d0-938a-1f3033debd87",
"createdAt": "2026-10-09T18:00:52.517Z",
"updatedAt": "2026-10-09T18:09:04.336Z",
"updatedAt": "2026-11-04T15:48:28.788Z",
"isArchived": false,
"versionId": "e51c1afc-9de6-44d0-938a-1f3033debd87",
"triggerCount": 1,
"nodes": [
{
"parameters": {
"path": "chat-activity",
"responseMode": "responseNode",
"options": {}
},
"id": "f5712063-6fdb-4d87-a9a0-a0abfbddef54",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
@@ -23,9 +18,22 @@
-512,
16
],
"parameters": {
"path": "chat-activity",
"responseMode": "responseNode",
"options": {}
},
"webhookId": "chat-activity-feed"
},
{
"id": "d0259af0-e7a4-407c-9a0a-b2a2ef86273f",
"name": "Check token",
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
-288,
16
],
"parameters": {
"conditions": {
"options": {
@@ -48,24 +56,9 @@
"combinator": "and"
},
"options": {}
},
"id": "d0259af0-e7a4-407c-9a0a-b2a2ef86273f",
"name": "Check token",
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
-288,
16
]
}
},
{
"parameters": {
"operation": "executeQuery",
"query": "SELECT id, created_at, session_id,\n message::jsonb->>'type' AS type,\n message::jsonb->>'name' AS name,\n CASE WHEN jsonb_typeof(message::jsonb->'content') = 'string'\n THEN LEFT(message::jsonb->>'content', 4000) END AS content\nFROM n8n_chat_histories\nWHERE id > $1::bigint\nORDER BY id\nLIMIT 50000",
"options": {
"queryReplacement": "={{ Number($('Webhook').item.json.query.since_id) || 0 }}"
}
},
"id": "3e502559-074a-4f37-abe5-1da9acd6a8d2",
"name": "Read new rows",
"type": "n8n-nodes-base.postgres",
@@ -74,15 +67,30 @@
-64,
-64
],
"alwaysOutputData": true,
"parameters": {
"operation": "executeQuery",
"query": "SELECT id, created_at, session_id,\n message::jsonb->>'type' AS type,\n message::jsonb->>'name' AS name,\n CASE WHEN jsonb_typeof(message::jsonb->'content') = 'string'\n THEN LEFT(message::jsonb->>'content', 4000) END AS content\nFROM n8n_chat_histories\nWHERE id > $1::bigint\nORDER BY id\nLIMIT 50000",
"options": {
"queryReplacement": "={{ Number($('Webhook').item.json.query.since_id) || 0 }}"
}
},
"credentials": {
"postgres": {
"id": "NoPrLWbqySMMmIaI",
"name": "Postgres n8n-quickbooks"
}
}
},
"alwaysOutputData": true
},
{
"id": "52b9d1fe-627c-44a6-8b82-81f78f56b39b",
"name": "Respond rows",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
160,
-64
],
"parameters": {
"respondWith": "allIncomingItems",
"options": {
@@ -95,17 +103,17 @@
]
}
}
},
"id": "52b9d1fe-627c-44a6-8b82-81f78f56b39b",
"name": "Respond rows",
}
},
{
"id": "aff2549b-d357-49bb-98ce-4ede7c2bf0a7",
"name": "Respond 401",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
160,
-64
]
},
{
-64,
128
],
"parameters": {
"respondWith": "text",
"responseBody": "Unauthorized",
@@ -120,15 +128,7 @@
]
}
}
},
"id": "aff2549b-d357-49bb-98ce-4ede7c2bf0a7",
"name": "Respond 401",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [
-64,
128
]
}
}
],
"connections": {
@@ -176,7 +176,8 @@
"nodeGroups": [],
"settings": {
"executionOrder": "v1",
"binaryMode": "separate"
"binaryMode": "separate",
"errorWorkflow": "tJSgL4iy63ys2NCA"
},
"staticData": null,
"pinData": {},