Skip to main content

Build a customer support RAG agent with GPT-5, Telegram & Pinecone

Workflow preview

Workflow preview
100%
Build a customer support RAG agent with GPT-5, Telegram & Pinecone preview
Open on n8n.io

Important notice

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

1. Workflow Overview

RAG Based Customer Support Agent (GPT 5 + Telegram) Description: This workflow builds a powerful Retrieval Augmented Generation (RAG) Customer Support Agent that interacts with users directly th...

Best for

  • Support Chatbot automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.telegramtrigger, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.vectorstorepinecone, @n8n/n8n-nodes-langchain.embeddingsopenai, n8n-nodes-base.telegram, n8n-nodes-base.stickynote, @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 Automate With Marc.

Original n8n.io source

1.1 Workflow description

Title
Build a customer support RAG agent with GPT-5, Telegram & Pinecone
Workflow name
Build a customer support RAG agent with GPT-5, Telegram & Pinecone

🧠 RAG-Based Customer Support Agent (GPT-5 + Telegram) Description:

This workflow builds a powerful Retrieval-Augmented Generation (RAG) Customer Support Agent that interacts with users directly through Telegram using the GPT-5 model. It combines real-time conversational capabilities with context-aware responses by leveraging vector search via Pinecone, making it ideal for automated, intelligent support systems.

Watch Video Tutorial Build on Workflows Like These: https://www.youtube.com/@Automatewithmarc

💬 Key Features:

Telegram Integration: Listens to customer queries via the Telegram Trigger node and sends back intelligent responses in the same chat. GPT-5 Agent (LangChain): A powerful AI agent node orchestrates the conversation using OpenAI's GPT-5 model. Contextual Memory: A Memory Buffer stores the last 15 interactions per user to provide more personalized and coherent multi-turn conversations.

RAG with Pinecone: Integrates with Pinecone to fetch relevant answers from your “Customer FAQ” vector namespace, enabling grounded and accurate responses. Embeddings Generation: Uses OpenAI’s Embeddings node to process and vectorize documents for retrieval. End-to-End AI Pipeline: Connects all components from input to output, providing seamless and intelligent customer support.

🔧 Tech Stack:

GPT-5 via OpenAI API Pinecone vector store (namespace: Customer FAQ) Telegram Bot API LangChain agent, memory, and embedding tools n8n self-hosted or cloud instance

📌 Ideal Use Cases:

Automated customer support for e-commerce, SaaS, or community support FAQ bots with up-to-date product or policy documents Multilingual support agents (customizable via GPT-5)

🛠️ Setup Instructions:

Set up your Telegram bot and insert credentials. Add your OpenAI and Pinecone API keys. Upload or index your support documents into the Customer FAQ namespace on Pinecone. Deploy and test your Telegram bot.

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 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 2 - OpenAI Chat Model

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

Block 3 - Simple Memory

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

Block 4 - Pinecone Vector Store

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

Block 5 - Embeddings OpenAI

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

Block 6 - Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 7 - Sticky Note

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

Block 8 - Sticky Note1

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

Block 9 - GPT-5 Customer Support Agent

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

Block 10 - Sticky Note2

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

Block 11 - Sticky Note3

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

3. Summary Table

Workflow Build a customer support RAG agent with GPT-5, Telegram & Pinecone
Complexity intermediate
Nodes 11
Categories Support Chatbot, Multimodal AI
Author Automate With Marc
Published 08 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7172/7172.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 a customer support RAG agent with GPT-5, Telegram & Pinecone do?

RAG Based Customer Support Agent (GPT 5 + Telegram) Description: This workflow builds a powerful Retrieval Augmented Generation (RAG) Customer Support Agent that interacts with users directly th...

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