GPT-5 RAG カスタマーサポートアジェント

中級

これはSupport Chatbot, Multimodal AI分野の自動化ワークフローで、11個のノードを含みます。主にTelegram, Agent, TelegramTrigger, LmChatOpenAi, EmbeddingsOpenAiなどのノードを使用。 GPT-5、Telegram、Pineconeを使った顧客サポートRAGアジボットの構築

前提条件
  • Telegram Bot Token
  • OpenAI API Key
  • Pinecone API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "GPT-5 RAG Customer Support Agent",
  "tags": [],
  "nodes": [
    {
      "name": "Telegramトリガー",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -340,
        20
      ],
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "typeVersion": 1.2,
      "id": "Telegram--0"
    },
    {
      "name": "OpenAIチャットモデル",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -100,
        240
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5"
        },
        "options": {}
      },
      "typeVersion": 1.2,
      "id": "OpenAI--1"
    },
    {
      "name": "シンプルメモリ",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        80,
        240
      ],
      "parameters": {
        "sessionKey": "={{ $json.message.chat.id }}",
        "sessionIdType": "customKey",
        "contextWindowLength": 15
      },
      "typeVersion": 1.3,
      "id": "--2"
    },
    {
      "name": "Pineconeベクトルストア",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        200,
        220
      ],
      "parameters": {
        "mode": "retrieve-as-tool",
        "options": {},
        "pineconeIndex": {
          "__rl": true,
          "mode": "list",
          "value": "awm-n8n"
        },
        "toolDescription": "Customer FAQ Data & Policies"
      },
      "typeVersion": 1.3,
      "id": "Pinecone--3"
    },
    {
      "name": "OpenAI埋め込み",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        340,
        380
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.2,
      "id": "OpenAI--4"
    },
    {
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        600,
        20
      ],
      "parameters": {
        "text": "={{ $json.output }}",
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "typeVersion": 1.2,
      "id": "Telegram-5"
    },
    {
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -140
      ],
      "parameters": {
        "width": 320,
        "height": 700,
        "content": "Telegram Customer Support Trigger"
      },
      "typeVersion": 1,
      "id": "--6"
    },
    {
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        -140
      ],
      "parameters": {
        "color": 5,
        "width": 660,
        "height": 700,
        "content": "GPT-5 AI RAG Agent with Vector Database (Pinecone) Tool"
      },
      "typeVersion": 1,
      "id": "-1-7"
    },
    {
      "name": "GPT-5カスタマーサポートエージェント",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        20,
        20
      ],
      "parameters": {
        "text": "={{ $json.message.text }}",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 2,
      "id": "GPT-5--8"
    },
    {
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        540,
        -140
      ],
      "parameters": {
        "color": 4,
        "width": 300,
        "height": 700,
        "content": "Telegram Response Output"
      },
      "typeVersion": 1,
      "id": "-2-9"
    },
    {
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1120,
        -140
      ],
      "parameters": {
        "color": 6,
        "width": 600,
        "height": 960,
        "content": "🧠 RAG-Based Customer Support Agent (GPT-5 + Telegram)\nDescription:\n\nThis 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.\n\nWatch Video Tutorial Build on Workflows Like These:\nhttps://www.youtube.com/@Automatewithmarc\n\n💬 Key Features:\n\nTelegram Integration: Listens to customer queries via the Telegram Trigger node and sends back intelligent responses in the same chat.\nGPT-5 Agent (LangChain): A powerful AI agent node orchestrates the conversation using OpenAI's GPT-5 model.\nContextual Memory: A Memory Buffer stores the last 15 interactions per user to provide more personalized and coherent multi-turn conversations.\n\nRAG with Pinecone: Integrates with Pinecone to fetch relevant answers from your “Customer FAQ” vector namespace, enabling grounded and accurate responses.\nEmbeddings Generation: Uses OpenAI’s Embeddings node to process and vectorize documents for retrieval.\nEnd-to-End AI Pipeline: Connects all components from input to output, providing seamless and intelligent customer support.\n\n🔧 Tech Stack:\n\nGPT-5 via OpenAI API\nPinecone vector store (namespace: Customer FAQ)\nTelegram Bot API\nLangChain agent, memory, and embedding tools\nn8n self-hosted or cloud instance\n\n📌 Ideal Use Cases:\n\nAutomated customer support for e-commerce, SaaS, or community support\nFAQ bots with up-to-date product or policy documents\nMultilingual support agents (customizable via GPT-5)\n\n🛠️ Setup Instructions:\n\nSet up your Telegram bot and insert credentials.\nAdd your OpenAI and Pinecone API keys.\nUpload or index your support documents into the Customer FAQ namespace on Pinecone.\nDeploy and test your Telegram bot."
      },
      "typeVersion": 1,
      "id": "-3-10"
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "e5a5d5f7-38de-404d-a33d-4d341dec281b",
  "connections": {
    "--2": {
      "ai_memory": [
        [
          {
            "node": "GPT-5--8",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Telegram--0": {
      "main": [
        [
          {
            "node": "GPT-5--8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI--4": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone--3",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI--1": {
      "ai_languageModel": [
        [
          {
            "node": "GPT-5--8",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone--3": {
      "ai_tool": [
        [
          {
            "node": "GPT-5--8",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "GPT-5--8": {
      "main": [
        [
          {
            "node": "Telegram-5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - サポートチャットボット, マルチモーダルAI

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

関連ワークフロー

ワークフロー情報
難易度
中級
ノード数11
カテゴリー2
ノードタイプ8
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

作成者
Automate With Marc

Automate With Marc

@marconi

Automating Start-Up and Business processes. Helping non-techies understand and leverage Agentic AI with easy to understand step-by-step tutorials. Check out my educational content: https://www.youtube.com/@Automatewithmarc

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34