Skip to main content

AI-powered Zendesk support responses with RAG, OpenAI, and Supabase knowledge base

Workflow preview

Workflow preview
100%
AI-powered Zendesk support responses with RAG, OpenAI, and Supabase knowledge base preview
Open on n8n.io

Important notice

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

1. Workflow Overview

How it works This workflow automates first responses to new Zendesk tickets with the help of AI and your internal knowledge base. Webhook trigger fires whenever a new ticket is created in Zendesk...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.vectorstoresupabase, @n8n/n8n-nodes-langchain.memorypostgreschat, @n8n/n8n-nodes-langchain.embeddingsopenai, @n8n/n8n-nodes-langchain.toolvectorstore, @n8n/n8n-nodes-langchain.agent

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
AI-powered Zendesk support responses with RAG, OpenAI, and Supabase knowledge base
Workflow name
AI-powered Zendesk support responses with RAG, OpenAI, and Supabase knowledge base

⚑ How it works

This workflow automates first responses to new Zendesk tickets with the help of AI and your internal knowledge base.

Webhook trigger fires whenever a new ticket is created in Zendesk.

Ticket details (subject, description, requester info) are extracted.

Knowledge base retrieval – the workflow searches a Supabase vector store (with OpenAI embeddings) for the most relevant KB articles.

AI assistant (RAG agent) drafts a professional reply using the retrieved KB and conversation memory stored in Postgres.

Decision logic:

If no relevant KB info is found (or if it’s a sensitive query like KYC, refunds, or account deletion), the workflow sends a fallback response and tags the ticket for human review.

Otherwise, it posts the AI-generated reply and tags the ticket with ai_reply.

Logging & context memory ensure future ticket updates are aware of past interactions.


πŸ”§ Set up steps

This workflow takes about 15–30 minutes to set up.

Connect credentials for Zendesk, OpenAI, Supabase, and Postgres.

Prepare your knowledge base: store support content in Supabase (documents table) and embed it using the provided Embeddings node.

Set up Postgres memory table (zendesk_ticket_histories) to store conversation history.

Update your Zendesk domain in the HTTP Request nodes (<YOUR_ZENDESK_DOMAIN>).

Deploy the webhook URL in Zendesk triggers so new tickets flow into n8n.

Test by creating a sample ticket and verifying:

AI replies appear in Zendesk

Correct tags (ai_reply or human_requested) are applied

Logs are written to Postgres

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 - Note - Webhook Setup

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

Block 2 - Get New Tickets

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

Block 3 - Extract New Ticket

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - Note - Supabase Setup

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

Block 5 - Supabase Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStoreSupabase - vectorStoreSupabase
Config choices
Version 1

Block 6 - Note - Postgres Memory

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

Block 7 - Postgres Ticket Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryPostgresChat - memoryPostgresChat
Config choices
Version 1

Block 8 - Note - OpenAI Setup

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

Block 9 - Embeddings OpenAI

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1

Block 10 - Retrieve Knowledge Base

Type / Role
@n8n/n8n-nodes-langchain.toolVectorStore - toolVectorStore
Config choices
Version 1

Block 11 - RAG AI Agent

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

Block 12 - If No Relevant KB Found

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 13 - Note - Zendesk Domain

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

Block 14 - Add Tags (ai_reply)

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

Block 15 - Note - Testing

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

3. Summary Table

Workflow AI-powered Zendesk support responses with RAG, OpenAI, and Supabase knowledge base
Complexity advanced
Nodes 15
Categories AI RAG, Multimodal AI
Author Md Sagor Khan
Published 27 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7937/7937.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 AI-powered Zendesk support responses with RAG, OpenAI, and Supabase knowledge base do?

How it works This workflow automates first responses to new Zendesk tickets with the help of AI and your internal knowledge base. Webhook trigger fires whenever a new ticket is created in Zendesk...

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 AI RAG, Multimodal AI use case.