AutomationFlowsData & Sheets › Panel Listar Chats

Panel Listar Chats

Panel Listar Chats. Uses supabase. Webhook trigger; 5 nodes.

Webhook trigger★★★★☆ complexity5 nodesSupabase
Data & Sheets Trigger: Webhook Nodes: 5 Complexity: ★★★★☆ Added:

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 →

Download .json
{
  "name": "Panel Listar Chats",
  "nodes": [
    {
      "parameters": {
        "path": "panel-chats",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "fca7c54d-76e5-4d2e-a015-07d33c0127de",
      "name": "Webhook Listar",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "operation": "getAll",
        "tableId": "conversaciones",
        "options": {
          "limit": 300
        }
      },
      "id": "faeb1349-5d89-43d4-b885-b3a834c8155b",
      "name": "Traer Conversaciones",
      "type": "n8n-nodes-base.supabase",
      "typeVersion": 2,
      "position": [
        224,
        0
      ],
      "credentials": {
        "supabaseApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const sec = (($('Webhook Listar').item.json.query || {}).secret);\nif (sec !== 'jeancrg2026panel') return [{ json: { error: 'no-auth' } }];\nconst rows = $('Traer Conversaciones').all().flatMap(i => i.json).flat(1).filter(x => x && typeof x === 'object');\nconst contactos = $('Traer Contactos').all().flatMap(i => i.json).flat(1).filter(x => x && typeof x === 'object');\nconst cmap = {}; for (const c of contactos) cmap[c.id] = c;\nconst siete = Date.now() - 7*24*3600*1000;\nconst map = {};\nfor (const c of rows) {\n  const t = new Date(c.created_at).getTime();\n  if (isNaN(t) || t < siete) continue;\n  const k = c.contacto_id;\n  if (!map[k]) map[k] = { contacto_id: k, telefono: (cmap[k] && cmap[k].telefono) || '', nombre: (cmap[k] && cmap[k].nombre) || '', mensajes: 0, ultimo: '' };\n  map[k].mensajes++;\n  if (!map[k].ultimo || c.created_at > map[k].ultimo) map[k].ultimo = c.created_at;\n}\nconst chats = Object.values(map).map(c => ({ ...c, ultimo: (c.ultimo || '').slice(0, 16) }));\nreturn [{ json: { chats } }];"
      },
      "id": "2ef9223f-9ecd-4689-ac4b-c9cd2857751a",
      "name": "Agrupar",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        464,
        0
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ $json }}",
        "options": {}
      },
      "id": "6c87f1a7-2428-4000-865e-0e066c9888ca",
      "name": "Responder JSON",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.2,
      "position": [
        704,
        0
      ]
    },
    {
      "parameters": {
        "operation": "getAll",
        "tableId": "contactos",
        "options": {
          "limit": 300
        }
      },
      "id": "4f9aa4e3-8acf-43d2-b673-00eaf8d39c2b",
      "name": "Traer Contactos",
      "type": "n8n-nodes-base.supabase",
      "typeVersion": 2,
      "position": [
        672,
        0
      ],
      "credentials": {
        "supabaseApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Webhook Listar": {
      "main": [
        [
          {
            "node": "Traer Conversaciones",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Traer Conversaciones": {
      "main": [
        [
          {
            "node": "Traer Contactos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Traer Contactos": {
      "main": [
        [
          {
            "node": "Agrupar",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Agrupar": {
      "main": [
        [
          {
            "node": "Responder JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "availableInMCP": false
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Panel Listar Chats. Uses supabase. Webhook trigger; 5 nodes.

Source: https://github.com/JeanCardozo/chatAI/blob/main/workflows/panel/panel-chats.json — original creator credit. Request a take-down →

More Data & Sheets workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Data & Sheets

webhook - simulador PDV (fluxo). Uses supabase. Webhook trigger; 55 nodes.

Supabase
Data & Sheets

This workflow automates raw materials inventory management for businesses, eliminating manual stock updates, delayed material issue approvals, and missed low stock alerts. It ensures real-time stock t

Google Sheets, Gmail, Supabase +1
Data & Sheets

booking no duplicate. Uses httpRequest, supabase. Webhook trigger; 38 nodes.

HTTP Request, Supabase
Data & Sheets

Backend Erick. Uses supabase, n8n-nodes-evolution-api. Webhook trigger; 36 nodes.

Supabase, N8N Nodes Evolution Api
Data & Sheets

01-intake-storage. Uses airtable, supabase, stopAndError, httpRequest. Webhook trigger; 33 nodes.

Airtable, Supabase, Stop And Error +2