Skip to main content

Build an AI chat agent for your Zendesk knowledge base with GPT-4.1 and InfraNodus GraphRAG

Workflow preview

Workflow preview
100%
Build an AI chat agent for your Zendesk knowledge base with GPT-4.1 and InfraNodus GraphRAG preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Build a Better AI Chatbot for Your Zendesk Knowledge Portal Simple setup, no vector database needed. Uses GraphRAG to enhance user's prompts and provide high quality and relevant up to date respons...

Best for

  • Support Chatbot automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.webhook, n8n-nodes-base.respondtowebhook, @n8n/n8n-nodes-langchain.agent, n8n-nodes-infranodus.infranodustool, n8n-nodes-base.httprequesttool, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by InfraNodus.

Original n8n.io source

1.1 Workflow description

Title
Build an AI chat agent for your Zendesk knowledge base with GPT-4.1 and InfraNodus GraphRAG
Workflow name
Build an AI chat agent for your Zendesk knowledge base with GPT-4.1 and InfraNodus GraphRAG

Build a Better AI Chatbot for Your Zendesk Knowledge Portal

Simple setup, no vector database needed. Uses GraphRAG to enhance user's prompts and provide high-quality and relevant up-to-date responses from your Zendesk knowledge base.

Can be embedded on your Zendesk portal, also accesible via a URL. Can be customized and branded in your style.

See example at support.noduslabs.com or a screenshot below:

Also, compare it to the original Zendesk AI chatbot available at our other website https://infranodus.com — you will see that the quality of responses in this custom chatbot is much better than in the native Zendesk one, plus you save subscription because you won't need to activate their chat option, which is $25 per agent.


Workflow Overview

In this workflow, we use the n8n AI Agent Node with a custom prompt that:

  1. First consults an "expert" graph from the InfraNodus GraphRAG system using the official InfraNodus GraphRAG node that will extract a reasoning ontology and a general context about your product from the graph that you create manually or automatically as described on our support portal.
  2. The augmented user prompt is converted by AI agent node in a Zendesk search query that retrieves the most relevant content using their search API via n8n HTTP node.
  1. Both the results from the graph and the search results are combined and shown to the user

How it works

  1. Receives a request from a user via a webhook that connects to the custom n8n chat widget.
  2. The request goes to the AI Agent node from n8n with a custom prompt (provided in the workflow) that orchestrates the following procedure:
  3. Sends the request to the knowledge graph in your InfraNodus account using the official InfraNodus GraphRAG node that contains a reasoning ontology represented as a knowledge graph based on your Zendesk knowledge support portal. Read more on how to generate this ontology here.
  4. Based on the results from InfraNodus, it reformulates the original prompt to include the reasoning logic as well as provide a fuller context to the model.
  5. Sends the request to the Zendesk search API using the n8n custom HTTP node with an enhanced search query to retrieve high-quality results.
  6. Combines Zendesk search results with InfraNodus ontology to generate a final response to the user.
  7. Sends the response back to the webhook, which is then picked up by the n8n chat widget that is shown to the user wherever the widget is embedded (e.g. on your own support portal).

How to use

• Get an InfraNodus API key and add it into InfraNodus GraphRAG node.

• Edit the InfraNodus Graph node to provide the name of the graph that you will be using as ontology (you need to create it in InfraNodus first.

• Edit the AI Agent (Support Agent) prompt to modify our custom instructions for your particular use case (do not change it too much as it works quite well and tells the agent what it should do and in what sequence).

• Add the API key for your Zendesk account. In order to get it, go to your support portal Admin > Apps & Integrations > API Tokens. Usually it's located at https://noduslabs.zendesk.com/admin/apps-integrations/apis/api-tokens where instead of noduslabs you need to put the name of your support portal.

Note: the official n8n Zendesk node does not have an endpoint to search and extract articles from support portal, so we use the custom HTTP node, but you can still connect to it via the Zendesk API key you have installed in your n8n.

Support & Tutorials

If you wan to create your own reasoning ontology graphs, please, refer to this article on generating your own knowledge graph ontologies.

Specifically for this use case: Building ontology for your n8n AI chat bot.

You may also be interested to watch this video that explains the logic of this approach in detail:

Our support article for this workflow with real-life example: Building an embeddable AI chatbot agent for your Zendesk knowledge portal.

To get support and help, contact us via support.noduslabs.com

Learn more about InfraNodus at www.infranodus.com

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 2 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 3 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 4 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 5 - Support Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 6 - Get a response from knowledge base in InfraNodus Graph RAG

Type / Role
n8n-nodes-infranodus.infranodusTool - infranodusTool
Config choices
Version 1

Block 7 - Zendek Search

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 8 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Build an AI chat agent for your Zendesk knowledge base with GPT-4.1 and InfraNodus GraphRAG
Complexity advanced
Nodes 16
Categories Support Chatbot, AI RAG
Author InfraNodus
Published 06 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11571/11571.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Build an AI chat agent for your Zendesk knowledge base with GPT-4.1 and InfraNodus GraphRAG do?

Build a Better AI Chatbot for Your Zendesk Knowledge Portal Simple setup, no vector database needed. Uses GraphRAG to enhance user's prompts and provide high quality and relevant up to date respons...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI RAG use case.