{
  "name": "AI-powered customer feedback analysis & routing for Gmail, Zendesk, Slack & Pipedrive",
  "nodes": [
    {
      "id": "60256706-eabb-4ff1-abf0-78b5a9ca0869",
      "name": "Manual Trigger: Start VOC Analysis",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        48,
        368
      ]
    },
    {
      "id": "be859333-a941-4a71-951f-eeb6adcd0e4f",
      "name": "Set: Initial Parameters",
      "type": "n8n-nodes-base.set",
      "position": [
        320,
        368
      ]
    },
    {
      "id": "c263ec19-9bdb-46fb-afde-4a17da961d3c",
      "name": "Config: Set LLM for Agents",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1552,
        928
      ]
    },
    {
      "id": "bf4488bd-0e20-4827-b370-77396415f7c8",
      "name": "Config: Set Agent Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        432,
        592
      ]
    },
    {
      "id": "8f128774-c198-4a13-8d19-8cf5ac19c8b8",
      "name": "AI Agent: Gather Customer Feedback",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        736,
        368
      ]
    },
    {
      "id": "6b70f528-bd39-4758-9d04-6b3ff93af6ff",
      "name": "AI: Structure Feedback Data",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1184,
        592
      ]
    },
    {
      "id": "7c5791aa-2842-47af-818b-004af9685455",
      "name": "Tool: Get Gmail Messages",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        576,
        592
      ]
    },
    {
      "id": "fbca39a8-6593-4cdb-a582-3bb81d18cb3a",
      "name": "Tool: Get Pipedrive Notes",
      "type": "n8n-nodes-base.pipedriveTool",
      "position": [
        736,
        592
      ]
    },
    {
      "id": "a833e7b4-6510-44a5-934a-9d3b46289717",
      "name": "Tool: Get Zendesk Tickets",
      "type": "n8n-nodes-base.zendeskTool",
      "position": [
        880,
        592
      ]
    },
    {
      "id": "28a49bba-62fa-4896-8604-098903b84450",
      "name": "Tool: Search Slack Messages  Export to Sheets",
      "type": "n8n-nodes-base.slackTool",
      "position": [
        1024,
        592
      ]
    },
    {
      "id": "b9212f35-c028-481e-908b-12aa3324ac25",
      "name": "AI Chain: Extract Key Signals",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1552,
        368
      ]
    },
    {
      "id": "7ec417ac-bc65-4c9e-a1f7-dc3d295403e0",
      "name": "AI: Structure Key Signals",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1696,
        592
      ]
    },
    {
      "id": "09797f66-2ce6-4392-afb4-a646ba733799",
      "name": "AI Chain: Cluster Signals into Topics",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1904,
        368
      ]
    },
    {
      "id": "d31b8993-f7c4-496f-9515-ae2e39e84f17",
      "name": "AI: Structure Clustered Topics  Export to Sheets",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2048,
        592
      ]
    },
    {
      "id": "b26017dd-99f0-4033-9fb4-cfcf3be03c14",
      "name": "AI Agent: Route Topics to Actions",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2320,
        368
      ]
    },
    {
      "id": "ebefbd63-8ea6-49e3-be48-4aaf1b4f7011",
      "name": "Tool: Create Zendesk Ticket",
      "type": "n8n-nodes-base.zendeskTool",
      "position": [
        2320,
        592
      ]
    },
    {
      "id": "2b0c3dc2-cf60-4d2b-8127-4141d34e7bee",
      "name": "Tool: Send Email Alert",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        2464,
        592
      ]
    },
    {
      "id": "b47fc28d-72f5-42f9-a661-254a392ae443",
      "name": "Tool: Create Notion Page",
      "type": "n8n-nodes-base.notionTool",
      "position": [
        2608,
        592
      ]
    },
    {
      "id": "fdac92b0-5b36-4fdc-a384-93c2d6c20cc6",
      "name": "Note: Data Gathering",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        176
      ],
      "parameters": {
        "width": 380,
        "height": 128,
        "content": "### Data Gathering Agent\nThis AI Agent's job is to collect all recent customer interactions.\nIt uses its tools (Gmail, Pipedrive, Zendesk, Slack) to fetch the raw data based on the initial prompt."
      }
    },
    {
      "id": "ab1edac7-c359-433a-bad5-70c876d9cfb1",
      "name": "Note: Analysis Chain",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1616,
        160
      ],
      "parameters": {
        "width": 476,
        "height": 152,
        "content": "### AI Analysis Chain\nThis chain processes the raw data in two steps:\n1.  **Signal Extraction:** The first LLM Chain reads all the raw text and compresses it into concise 'signals'.\n2.  **Clustering:*"
      }
    },
    {
      "id": "0e500b93-135e-4a03-91e8-2159cc58718b",
      "name": "Note: Action Agent",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2224,
        160
      ],
      "parameters": {
        "width": 412,
        "height": 152,
        "content": "### Action & Routing Agent\nThis final AI Agent acts as a dispatcher. It analyzes the clustered topics and follows a set of 'Routing Rules' in its prompt to decide which action to take.\nIt then uses it"
      }
    },
    {
      "id": "0642f4ae-f111-4446-9e9a-c9bb0c1e609c",
      "name": "Workflow Documentation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16,
        -320
      ],
      "parameters": {
        "width": 980,
        "height": 392,
        "content": "### **Voice of Customer AI Analysis & Routing**\nThis workflow automates the process of gathering customer feedback from multiple sources, using a chain of AI agents to analyze, summarize, and categori"
      }
    },
    {
      "id": "eff608be-8f8d-4379-a9f0-5ab1beb26b3d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        960
      ],
      "parameters": {
        "width": 432,
        "height": 176,
        "content": "## Contact me\n- If you need any modification to this workflow\n- if you need some help with this workflow\n- Or if you need any workflow in n8n, Make, or Langchain / Langgraph\n\nWrite to me: [thomas@poll"
      }
    }
  ],
  "connections": {
    "Tool: Send Email Alert": {
      "ai_tool": [
        [
          {
            "node": "AI Agent: Route Topics to Actions",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Set: Initial Parameters": {
      "main": [
        [
          {
            "node": "AI Agent: Gather Customer Feedback",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Config: Set Agent Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent: Gather Customer Feedback",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Tool: Create Notion Page": {
      "ai_tool": [
        [
          {
            "node": "AI Agent: Route Topics to Actions",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Tool: Get Gmail Messages": {
      "ai_tool": [
        [
          {
            "node": "AI Agent: Gather Customer Feedback",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "AI: Structure Key Signals": {
      "ai_outputParser": [
        [
          {
            "node": "AI Chain: Extract Key Signals",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Tool: Get Pipedrive Notes": {
      "ai_tool": [
        [
          {
            "node": "AI Agent: Gather Customer Feedback",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Tool: Get Zendesk Tickets": {
      "ai_tool": [
        [
          {
            "node": "AI Agent: Gather Customer Feedback",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Config: Set LLM for Agents": {
      "ai_languageModel": [
        [
          {
            "node": "AI: Structure Feedback Data",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "AI Agent: Gather Customer Feedback",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "AI Chain: Extract Key Signals",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "AI Chain: Cluster Signals into Topics",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "AI Agent: Route Topics to Actions",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI: Structure Feedback Data": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent: Gather Customer Feedback",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Tool: Create Zendesk Ticket": {
      "ai_tool": [
        [
          {
            "node": "AI Agent: Route Topics to Actions",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "AI Chain: Extract Key Signals": {
      "main": [
        [
          {
            "node": "AI Chain: Cluster Signals into Topics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent: Gather Customer Feedback": {
      "main": [
        [
          {
            "node": "AI Chain: Extract Key Signals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual Trigger: Start VOC Analysis": {
      "main": [
        [
          {
            "node": "Set: Initial Parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Chain: Cluster Signals into Topics": {
      "main": [
        [
          {
            "node": "AI Agent: Route Topics to Actions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tool: Search Slack Messages  Export to Sheets": {
      "ai_tool": [
        [
          {
            "node": "AI Agent: Gather Customer Feedback",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "AI: Structure Clustered Topics  Export to Sheets": {
      "ai_outputParser": [
        [
          {
            "node": "AI Chain: Cluster Signals into Topics",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}