{
  "openruna_format": "flow-graph-v1",
  "title": "Telegram RAG pdf",
  "slug": "telegram-rag-pdf",
  "source_filename": "1061_Stopanderror_Telegram_Automation_Triggered.json",
  "nodes": [
    {
      "id": "Telegram Trigger",
      "name": "Telegram Trigger",
      "integration": "telegram",
      "kind": "trigger"
    },
    {
      "id": "Embeddings OpenAI",
      "name": "Embeddings OpenAI",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "kind": "action"
    },
    {
      "id": "Default Data Loader",
      "name": "Default Data Loader",
      "integration": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "kind": "action"
    },
    {
      "id": "Recursive Character Text Splitter",
      "name": "Recursive Character Text Splitter",
      "integration": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "kind": "action"
    },
    {
      "id": "Stop and Error",
      "name": "Stop and Error",
      "integration": "stopAndError",
      "kind": "action"
    },
    {
      "id": "Question and Answer Chain",
      "name": "Question and Answer Chain",
      "integration": "@n8n/n8n-nodes-langchain.chainRetrievalQa",
      "kind": "action"
    },
    {
      "id": "Vector Store Retriever",
      "name": "Vector Store Retriever",
      "integration": "@n8n/n8n-nodes-langchain.retrieverVectorStore",
      "kind": "action"
    },
    {
      "id": "Pinecone Vector Store1",
      "name": "Pinecone Vector Store1",
      "integration": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "kind": "action"
    },
    {
      "id": "Groq Chat Model",
      "name": "Groq Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "kind": "action"
    },
    {
      "id": "Check If is a document",
      "name": "Check If is a document",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Change to application/pdf",
      "name": "Change to application/pdf",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Telegram get File",
      "name": "Telegram get File",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Embeddings",
      "name": "Embeddings",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "kind": "action"
    },
    {
      "id": "Telegram Response",
      "name": "Telegram Response",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Telegram Response about Database",
      "name": "Telegram Response about Database",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Stop and Error1",
      "name": "Stop and Error1",
      "integration": "stopAndError",
      "kind": "action"
    },
    {
      "id": "Pinecone Vector Store",
      "name": "Pinecone Vector Store",
      "integration": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "kind": "action"
    },
    {
      "id": "Limit to 1",
      "name": "Limit to 1",
      "integration": "limit",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Limit to 1",
      "to": "Telegram Response about Database"
    },
    {
      "from": "Telegram Trigger",
      "to": "Check If is a document"
    },
    {
      "from": "Telegram Response",
      "to": "Stop and Error"
    },
    {
      "from": "Telegram get File",
      "to": "Change to application/pdf"
    },
    {
      "from": "Pinecone Vector Store",
      "to": "Limit to 1"
    },
    {
      "from": "Check If is a document",
      "to": "Telegram get File"
    },
    {
      "from": "Check If is a document",
      "to": "Question and Answer Chain"
    },
    {
      "from": "Change to application/pdf",
      "to": "Pinecone Vector Store"
    },
    {
      "from": "Question and Answer Chain",
      "to": "Telegram Response"
    },
    {
      "from": "Telegram Response about Database",
      "to": "Stop and Error1"
    }
  ]
}