{
  "name": "Build an AI chat agent for your Zendesk knowledge base with GPT-4.1 and InfraNodus GraphRAG",
  "nodes": [
    {
      "id": "8d02d55d-8a04-4cf2-86d2-78d10be04e1a",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -256,
        368
      ]
    },
    {
      "id": "b63808c3-68f9-4aac-bbf6-77d2f9f3d4a8",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        0,
        368
      ]
    },
    {
      "id": "83aa623c-79c0-4f02-8210-45bb9db62a7b",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -400,
        0
      ]
    },
    {
      "id": "0af57fa9-36e7-4bf0-ba64-2f2c4ad12af6",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        560,
        0
      ]
    },
    {
      "id": "4c5b0e77-bbc2-4e9f-af6c-7231296d42c0",
      "name": "Support Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        48,
        0
      ]
    },
    {
      "id": "fc257500-e2f5-4185-8ffb-2d40223a3e94",
      "name": "Get a response from knowledge base in InfraNodus Graph RAG",
      "type": "n8n-nodes-infranodus.infranodusTool",
      "position": [
        320,
        352
      ]
    },
    {
      "id": "28d7576b-5c5d-4cb5-b948-c73d0007a62a",
      "name": "Zendek Search",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        608,
        352
      ]
    },
    {
      "id": "cb70ea7b-c33b-4d75-9a98-74186888761f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -336,
        304
      ],
      "parameters": {
        "width": 224,
        "height": 400,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## 3. LLM Model to Use\n\nConnect it to your favorite LLM and set up API authentication for it."
      }
    },
    {
      "id": "5fde6330-ef1e-4fd1-9fb0-2bcf07edd5f5",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        304
      ],
      "parameters": {
        "width": 224,
        "height": 400,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## 4. Chat Memory Node\n\nThis maintains the context of the conversation."
      }
    },
    {
      "id": "ff3cf0db-cdd6-4ce4-809b-779fda516619",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        304
      ],
      "parameters": {
        "width": 224,
        "height": 400,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## 5. Expert Ontology\n\nUses [InfraNodus GraphRAG node](https://n8n.io/integrations/infranodus-graph-rag/) to extract a relevant response on a query based on prebuilt "
      }
    },
    {
      "id": "39f8c616-d947-47e7-8ccc-444566a51326",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        304
      ],
      "parameters": {
        "width": 320,
        "height": 560,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## 5. Zendesk Knowledge Search\n\nUses [Zendesk search API](https://developer.zendesk.com/api-reference/help_center/help-center-api/search/) to find relevant articles based on the search"
      }
    },
    {
      "id": "fcb0cfc2-b600-4405-8f4f-5f3668263d4a",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        496,
        -288
      ],
      "parameters": {
        "width": 448,
        "height": 464,
        "content": "## 6. Send Response Back to the User\n\nSends the final response, based on the InfraNodus ontology expert graph and on the search results from Zendesk support portal back to the user.\n\n### The message i"
      }
    },
    {
      "id": "f4b8bc81-d0d3-4f13-97e9-c5a331ad8f5a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        -288
      ],
      "parameters": {
        "width": 448,
        "height": 464,
        "content": "## 2. Add AI Agent Node\n\n🚨 Edit the prompt here to be more suitable for your content, but keep the structure — it works pretty well!\n\nThis AI agent is instructed to: \n1) Consult the [InfraNodus GraphR"
      }
    },
    {
      "id": "c16c5868-21e1-4568-ab6f-c9db94fe4e4f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -288
      ],
      "parameters": {
        "width": 304,
        "height": 464,
        "content": "## 1. Create Webhook\nThis will activate your workflow every time a user message arrives to the URL provided.\n\n### You can connect it to the [n8n Chat Widget](https://n8n-chat-widget.com) to trigger it"
      }
    },
    {
      "id": "ac975b0d-a015-4339-9782-00a954b837db",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -144,
        736
      ],
      "parameters": {
        "width": 608,
        "height": 416,
        "content": "### The Ontology is an [InfraNodus](https://infranodus.com) Graph Used to Help Model Rewrite Prompt and Extract Better Results from Zendesk:\n\n![InfraNodus Ontology](https://support.noduslabs.com/hc/ar"
      }
    },
    {
      "id": "9afdf945-4745-47f1-b456-2a0c4e551d98",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1152,
        -288
      ],
      "parameters": {
        "width": 624,
        "height": 1456,
        "content": "# n8n Zendesk Support AI Chat Agent\n\n## Add a widget to your Zendesk support portal or any website that uses n8n and [InfraNodus](https://infranodus.com) expert ontology to provide high-quality GraphR"
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Support Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Support Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Support Agent": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Zendek Search": {
      "ai_tool": [
        [
          {
            "node": "Support Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Support Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get a response from knowledge base in InfraNodus Graph RAG": {
      "ai_tool": [
        [
          {
            "node": "Support Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}