AutomationFlowsAI & RAG › AI Chatbot Call Center: Demo Call Center (production-ready, Part 2)

AI Chatbot Call Center: Demo Call Center (production-ready, Part 2)

ByChatPayLabs @chatpaylabs on n8n.io

Template was created in n8n v1.90.2 Execute Sub-workflow Trigger node Chat Trigger node Redis node Postgres node AI Agent node If node, Switch node, Code node, Edit Fields (Set) Execute Sub-workflow Trigger: Telegram Call In Workflow (or your own node) Sub-workflow: Taxi Service…

Chat trigger trigger★★★★★ complexityAI-powered38 nodesRedisChat TriggerExecute Workflow TriggerAgentLm Chat Xai GrokMemory Postgres ChatPostgres ToolTool Workflow
AI & RAG Trigger: Chat trigger Nodes: 38 Complexity: ★★★★★ AI nodes: yes Added:
AI Chatbot Call Center: Demo Call Center (production-ready, Part 2) — n8n workflow card showing Redis, Chat Trigger, Execute Workflow Trigger integration

This workflow corresponds to n8n.io template #4045 — we link there as the canonical source.

This workflow follows the Agent → Chat Trigger recipe pattern — see all workflows that pair these two integrations.

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
{
  "id": "Oe2Qnkb1PoMSaxKw",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "\u260e\ufe0f Demo Call Center",
  "tags": [
    {
      "id": "no8Mb078mvRgw7PS",
      "name": "DEMO",
      "createdAt": "2025-04-30T05:34:10.330Z",
      "updatedAt": "2025-04-30T05:34:10.330Z"
    }
  ],
  "nodes": [
    {
      "id": "66c50a25-19b6-43fc-8131-8bd2ee980cb2",
      "name": "Session",
      "type": "n8n-nodes-base.redis",
      "notes": "{session_id}:session",
      "onError": "continueRegularOutput",
      "position": [
        -1460,
        580
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1
    },
    {
      "id": "c94d1cda-a5ad-4f7b-a12b-310c1203d5b9",
      "name": "Input",
      "type": "n8n-nodes-base.set",
      "position": [
        -2140,
        340
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "864a0b6e-0b01-4ad3-b7a9-d3007a82c788",
      "name": "Test Trigger",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -2320,
        540
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "08d3f83c-bc49-4f0e-abb5-809763558b8c",
      "name": "Test Fields",
      "type": "n8n-nodes-base.set",
      "notes": "\u9999\u6e2f\u7e41\u9ad4\u4e2d\u6587",
      "position": [
        -2140,
        540
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 3.4
    },
    {
      "id": "55998238-1744-42af-ac9a-2c563bed01f3",
      "name": "Flow Trigger",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -2320,
        340
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "c90c1520-e0a2-4a7c-b26f-e343d54605a8",
      "name": "Rate Limit",
      "type": "n8n-nodes-base.redis",
      "notes": "TTL 90s\n{session_id}:hits",
      "onError": "continueRegularOutput",
      "position": [
        -1800,
        340
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1
    },
    {
      "id": "c34deb24-4124-4ed7-83f3-4a96ad81616c",
      "name": "If Rated",
      "type": "n8n-nodes-base.if",
      "notes": "30 CHATS",
      "position": [
        -1800,
        560
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 2.2
    },
    {
      "id": "9efe673e-6935-4567-814f-c2d781af5eab",
      "name": "Rated Output",
      "type": "n8n-nodes-base.set",
      "notes": "Please wait...",
      "position": [
        -1800,
        1340
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 3.4
    },
    {
      "id": "e58e8ad3-6d5c-4feb-9d21-cdd91cadf862",
      "name": "Chat Memory",
      "type": "n8n-nodes-base.set",
      "notes": "Recall/Create {timestamp}",
      "position": [
        -1260,
        580
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 3.4
    },
    {
      "id": "d6b0be18-a95d-4b18-9a3d-49a4e4acf7b9",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2620,
        280
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b84bb1ee-3298-48bd-8212-f4a6358330a5",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1920,
        240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2066d93a-6158-4066-94f7-2fad8fe1f37a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1560,
        460
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e2e70473-60ad-4b53-a36a-8498e89a0c6a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1940,
        1220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bf41212f-31e3-4c15-9b70-8cdd34bc4ed7",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "407df80b-6b3c-4327-a744-3500a1366455",
      "name": "Channel Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -940,
        580
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "935465c9-2578-48c8-82cc-320b77beccf5",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c7bdd165-da05-4fcd-b94e-c42098442e1d",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "onError": "continueErrorOutput",
      "position": [
        -580,
        500
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "a02e65e7-65bb-498c-9377-ce3ea81d9a8e",
      "name": "xAI @grok-2-1212",
      "type": "@n8n/n8n-nodes-langchain.lmChatXAiGrok",
      "position": [
        -640,
        700
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6d9f3ace-c0ed-4d53-8bf3-bdf81756aa5c",
      "name": "Postgres Chat Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryPostgresChat",
      "notes": "n8n_chat_memory\n{session_id}:{timestamp}\n30 CHAT, EXPIRY 60m",
      "position": [
        -480,
        700
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.3
    },
    {
      "id": "7b524e33-baaf-4bfa-b5f6-b2a95d657490",
      "name": "Load User Memory",
      "type": "n8n-nodes-base.postgresTool",
      "notes": "n8n_user_memory",
      "position": [
        -480,
        980
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 2.6
    },
    {
      "id": "5091a915-f689-4a42-be68-3348095a7a8f",
      "name": "Save User Memory",
      "type": "n8n-nodes-base.postgresTool",
      "position": [
        -320,
        980
      ],
      "parameters": {},
      "typeVersion": 2.6
    },
    {
      "id": "3d4ba794-f43b-4293-ad40-4b08cddfd26a",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -660,
        880
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ed6bd7e5-15aa-4b68-8664-73476cb86ea0",
      "name": "Taxi Service",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "notes": "Demo Taxi Service",
      "position": [
        -260,
        720
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 2.2
    },
    {
      "id": "000738a8-1449-494c-915e-c90c905ac898",
      "name": "Provider",
      "type": "n8n-nodes-base.redis",
      "notes": "{session_id}:service:providers",
      "onError": "continueRegularOutput",
      "position": [
        -640,
        240
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "62afafe0-f3a0-47ae-9f6e-85d53407a3e7",
      "name": "New Session",
      "type": "n8n-nodes-base.redis",
      "notes": "{session_id}:session",
      "onError": "continueRegularOutput",
      "position": [
        20,
        480
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1
    },
    {
      "id": "0f3472f1-4a88-47df-bc59-40898b41d98e",
      "name": "Output",
      "type": "n8n-nodes-base.set",
      "position": [
        440,
        480
      ],
      "parameters": {},
      "notesInFlow": false,
      "typeVersion": 3.4
    },
    {
      "id": "cc82dbc1-71b4-4696-ae5a-fd5e6dbea5b4",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        -420,
        240
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "9552eed5-d597-446c-9e40-a29157d06441",
      "name": "Test Output",
      "type": "n8n-nodes-base.set",
      "position": [
        200,
        1000
      ],
      "parameters": {},
      "notesInFlow": false,
      "typeVersion": 3.4
    },
    {
      "id": "2a8d673d-0e23-4685-b4c8-c163d9b75afb",
      "name": "Chat Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        200,
        480
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "96a6b050-f392-4aaa-a3ab-0c62644ddde7",
      "name": "Provider Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -220,
        240
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "8275c11d-d09c-4271-a4b1-bff18dda1680",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        640
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d1779d3c-835c-44f3-b24d-b04f60b36e87",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        460
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9508ff99-720e-44f4-8a75-f554a008ad63",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        880
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f1451ac8-a4ae-4938-9952-c982b7322e60",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7030e654-d39b-4342-84ae-90da37d5f513",
      "name": "Error Output",
      "type": "n8n-nodes-base.set",
      "notes": "Please retry.",
      "position": [
        60,
        1320
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 3.4
    },
    {
      "id": "9a5ac53e-5297-4f20-ac62-a5c54ab1c89f",
      "name": "Taxi Service Redirect",
      "type": "n8n-nodes-base.executeWorkflow",
      "notes": "Demo Taxi Service",
      "position": [
        240,
        260
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.2
    },
    {
      "id": "32b1e6ae-f4a1-4b82-aa92-bdb35fb6cabb",
      "name": "Call Back",
      "type": "n8n-nodes-base.executeWorkflow",
      "notes": "Demo Call Back",
      "position": [
        440,
        1340
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.2
    },
    {
      "id": "bcccdc7a-8d95-498c-9f45-6b5dcc5a45bb",
      "name": "Taxi Booking Worker",
      "type": "n8n-nodes-base.executeWorkflow",
      "notes": "Test Taxi Booking Worker",
      "position": [
        760,
        220
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "settings": {
    "timezone": "Etc/UTC",
    "callerPolicy": "workflowsFromSameOwner",
    "errorWorkflow": "vuso7W8t402BPcT2",
    "executionOrder": "v1"
  },
  "versionId": "d56863e7-49c5-4265-b819-71806ab5146e",
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Provider Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Input": {
      "main": [
        [
          {
            "node": "Rate Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Output": {
      "main": [
        [
          {
            "node": "Call Back",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Session": {
      "main": [
        [
          {
            "node": "Chat Memory",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "New Session",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Rated": {
      "main": [
        [
          {
            "node": "Rated Output",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Session",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Provider": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rate Limit": {
      "main": [
        [
          {
            "node": "If Rated",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chat Memory": {
      "main": [
        [
          {
            "node": "Channel Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chat Switch": {
      "main": [
        [
          {
            "node": "Output",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Output",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Test Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New Session": {
      "main": [
        [
          {
            "node": "Chat Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Test Fields": {
      "main": [
        [
          {
            "node": "Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Error Output": {
      "main": [
        [
          {
            "node": "Call Back",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Flow Trigger": {
      "main": [
        [
          {
            "node": "Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rated Output": {
      "main": [
        [
          {
            "node": "Call Back",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Taxi Service": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Test Trigger": {
      "main": [
        [
          {
            "node": "Test Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Channel Switch": {
      "main": [
        [
          {
            "node": "Provider",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Provider Switch": {
      "main": [
        [
          {
            "node": "Taxi Booking Worker",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Taxi Service Redirect",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Load User Memory": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Save User Memory": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "xAI @grok-2-1212": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Postgres Chat Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

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

About this workflow

Template was created in n8n v1.90.2 Execute Sub-workflow Trigger node Chat Trigger node Redis node Postgres node AI Agent node If node, Switch node, Code node, Edit Fields (Set) Execute Sub-workflow Trigger: Telegram Call In Workflow (or your own node) Sub-workflow: Taxi Service…

Source: https://n8n.io/workflows/4045/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

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

AI & RAG

✨📊Multi-AI Agent Chatbot for Postgres/Supabase DB and QuickCharts + Tool Router. Uses chatTrigger, postgresTool, executeWorkflowTrigger, toolWorkflow. Chat trigger; 40 nodes.

Chat Trigger, Postgres Tool, Execute Workflow Trigger +6
AI & RAG

This workflow is ideal for data analysts, developers, and business intelligence teams who need an AI-powered chatbot to query Postgres/Supabase databases and generate dynamic charts for data visualiza

Chat Trigger, Postgres Tool, Execute Workflow Trigger +6
AI & RAG

Template was created in n8n v1.90.2 Execute Sub-workflow Trigger node Chat Trigger node Redis node Postgres node AI Agent node If node, Switch node, Code node, Edit Fields (Set) Execute Sub-workflow T

Execute Workflow Trigger, Chat Trigger, Agent +7
AI & RAG

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Google Gemini Chat, HTTP Request Tool, Chat Trigger +8
AI & RAG

Template was created in n8n v1.90.2 Execute Sub-workflow Trigger node Chat Trigger node Redis node Postgres node AI Agent node Calculator node If node, Switch node, Code node, Edit Fields (Set) Execut

Execute Workflow Trigger, Chat Trigger, Agent +5