Agente de soporte al cliente Grok-4 [RAG]

Intermedio

Este es unSupport Chatbot, AI RAGflujo de automatización del dominio deautomatización que contiene 10 nodos.Utiliza principalmente nodos como Telegram, GoogleDocsTool, Agent, TelegramTrigger, LmChatXAiGrok. Construye un agente de soporte al cliente usando Grok-4, Google Docs y Telegram [RAG]

Requisitos previos
  • Bot Token de Telegram
Vista previa del flujo de trabajo
Visualización de las conexiones entre nodos, con soporte para zoom y panorámica
Exportar flujo de trabajo
Copie la siguiente configuración JSON en n8n para importar y usar este flujo de trabajo
{
  "id": "",
  "meta": {},
  "name": "Grok-4 Customer Support Agent [RAG]",
  "tags": [],
  "nodes": [
    {
      "id": "c459cd5e-837e-4f32-aef0-af8fd0e2a1e8",
      "name": "Disparador de Telegram",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -100,
        0
      ],
      "webhookId": "6f8fe019-91ed-4a74-a811-edbc6f9b1c16",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "",
          "name": "YOUR_TELEGRAMAPI_CREDENTIAL"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "b1ce2d6d-766c-44be-ba05-15af7ad25826",
      "name": "xAI Grok Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatXAiGrok",
      "position": [
        140,
        220
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "xAiApi": {
          "id": "",
          "name": "YOUR_XAIAPI_CREDENTIAL"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "034b4be6-f8a0-449f-b4df-6624c0d5419d",
      "name": "Simple Memoria",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        340,
        220
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "a9f303d6-f341-4237-ba4a-b871fd98d0e8",
      "name": "Google Docs",
      "type": "n8n-nodes-base.googleDocsTool",
      "position": [
        500,
        220
      ],
      "parameters": {
        "operation": "get",
        "documentURL": "https://docs.google.com/document/d/YOUR_DOC_ID/edit"
      },
      "credentials": {
        "googleDocsOAuth2Api": {
          "id": "",
          "name": "YOUR_GOOGLEDOCSOAUTH2API_CREDENTIAL"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "4ed55e57-7143-4882-bad7-428e56018d54",
      "name": "Grok 4 Customer Support Agente",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        220,
        0
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 2
    },
    {
      "id": "dc23ec70-fb68-4be0-b9ea-cf84209a607a",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        720,
        0
      ],
      "webhookId": "be0498a1-712c-4efe-af95-c6ed6dc04e60",
      "parameters": {
        "text": "YOUR_RESPONSE_TEXT",
        "chatId": "YOUR_CHAT_ID",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "",
          "name": "YOUR_TELEGRAMAPI_CREDENTIAL"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "e225dc2b-60fb-4892-a752-cd967af3c87d",
      "name": "Nota adhesiva",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        -140
      ],
      "parameters": {
        "color": 2,
        "height": 540,
        "content": "Telegram Trigger"
      },
      "typeVersion": 1
    },
    {
      "id": "5f23ab98-e24c-4298-90ab-066a1510fea0",
      "name": "Nota adhesiva1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        60,
        -140
      ],
      "parameters": {
        "color": 3,
        "width": 580,
        "height": 540,
        "content": "Grok-4 Customer Support Agent with Preloaded Doc"
      },
      "typeVersion": 1
    },
    {
      "id": "febe1849-3b12-4470-b9a0-78ee90b661c3",
      "name": "Nota adhesiva2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        -140
      ],
      "parameters": {
        "color": 5,
        "width": 280,
        "height": 540,
        "content": "Telegram Output"
      },
      "typeVersion": 1
    },
    {
      "id": "9700b7cd-f63e-4573-97de-97f396caa67e",
      "name": "Nota adhesiva3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        -140
      ],
      "parameters": {
        "width": 580,
        "height": 880,
        "content": "🤖 Grok-4 Customer Support Agent with Document-Based Intelligence\nTemplate Description:\nThis workflow creates a smart, AI-powered customer support agent using Grok-4 that can answer questions based on a preloaded Google Doc knowledge base. It listens for incoming customer queries via Telegram, then uses Grok-4’s language reasoning + memory features to generate helpful responses pulled directly from the doc.\n\nWatch the Step-by-Step Tutorial of this Workflow: https://www.youtube.com/watch?v=OXzsh-Ba-8Y&t=2s\n\nIt’s perfect for solopreneurs, startups, or businesses that want to:\nAutomate first-level support\nBuild a Telegram-based knowledge agent\nAnswer FAQs using internal docs (like manuals, policies, product details)\n\n🔍 How It Works:\nTelegram Trigger – Listens for incoming messages from users\n\nGoogle Docs Tool – Retrieves a specified doc to serve as the knowledge base\n\nGrok-4 AI Agent – Uses xAI’s latest LLM with built-in memory and the document as a tool\n\nMemory Buffer – Keeps track of ongoing context in the conversation\n\nTelegram Reply – Sends the final response back to the customer\n\n🧠 Tools & Integrations Used:\nxAI Grok-4 Model (via Langchain-compatible node)\n\nGoogle Docs Tool (as a reference knowledge base)\n\nTelegram Bot API (chat interface)\n\nn8n Agent Framework (for chaining memory, model, and tools)\n\n💡 Use Cases:\nAI-powered FAQ assistant for your product\n\nInternal HR bot answering company policy questions\n\nSupport assistant trained on onboarding documents or technical manuals\n\nPrivate support bot for VIP groups on Telegram\n\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "",
  "connections": {
    "a9f303d6-f341-4237-ba4a-b871fd98d0e8": {
      "ai_tool": [
        [
          {
            "node": "Grok 4 Customer Support Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Grok 4 Customer Support Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Grok 4 Customer Support Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b1ce2d6d-766c-44be-ba05-15af7ad25826": {
      "ai_languageModel": [
        [
          {
            "node": "Grok 4 Customer Support Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Grok 4 Customer Support Agent": {
      "main": [
        [
          {
            "node": "dc23ec70-fb68-4be0-b9ea-cf84209a607a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Preguntas frecuentes

¿Cómo usar este flujo de trabajo?

Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.

¿En qué escenarios es adecuado este flujo de trabajo?

Intermedio - Chatbot de soporte, RAG de IA

¿Es de pago?

Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.

Información del flujo de trabajo
Nivel de dificultad
Intermedio
Número de nodos10
Categoría2
Tipos de nodos7
Descripción de la dificultad

Adecuado para usuarios con experiencia intermedia, flujos de trabajo de complejidad media con 6-15 nodos

Autor
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

Enlaces externos
Ver en n8n.io

Compartir este flujo de trabajo

Categorías

Categorías: 34