{
  "openruna_format": "flow-graph-v1",
  "title": "AI Document Assistant via Telegram + Supabase",
  "slug": "ai-document-assistant-via-telegram-supabase",
  "source_filename": "1539_Telegram_Splitout_Automation_Triggered.json",
  "nodes": [
    {
      "id": "Google Gemini Chat Model",
      "name": "Google Gemini Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "kind": "action"
    },
    {
      "id": "OpenWeatherMap",
      "name": "OpenWeatherMap",
      "integration": "openWeatherMapTool",
      "kind": "action"
    },
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Telegram Trigger",
      "name": "Telegram Trigger",
      "integration": "telegram",
      "kind": "trigger"
    },
    {
      "id": "Telegram",
      "name": "Telegram",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Think",
      "name": "Think",
      "integration": "@n8n/n8n-nodes-langchain.toolThink",
      "kind": "action"
    },
    {
      "id": "Embeddings Google Gemini",
      "name": "Embeddings Google Gemini",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "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": "Extract from File",
      "name": "Extract from File",
      "integration": "extractFromFile",
      "kind": "action"
    },
    {
      "id": "Answer questions with a vector store",
      "name": "Answer questions with a vector store",
      "integration": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "kind": "action"
    },
    {
      "id": "Supabase Vector Store",
      "name": "Supabase Vector Store",
      "integration": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "kind": "action"
    },
    {
      "id": "Telegram - Embedding Complete",
      "name": "Telegram - Embedding Complete",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Supabase - Save Embeddings",
      "name": "Supabase - Save Embeddings",
      "integration": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "kind": "action"
    },
    {
      "id": "Command Router",
      "name": "Command Router",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Telegram - Download file",
      "name": "Telegram - Download file",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Aggregate",
      "name": "Aggregate",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Fallback- No formatting",
      "name": "Fallback- No formatting",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Split Out",
      "name": "Split Out",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Simple Memory",
      "name": "Simple Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "Handle formatting and split",
      "name": "Handle formatting and split",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Manual Mapping",
      "name": "Manual Mapping",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Unsupported message",
      "name": "Unsupported message",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Send processing document message",
      "name": "Send processing document message",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Send embedding Started message",
      "name": "Send embedding Started message",
      "integration": "telegram",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "AI Agent",
      "to": "Handle formatting and split"
    },
    {
      "from": "Telegram",
      "to": "Fallback- No formatting"
    },
    {
      "from": "Aggregate",
      "to": "Telegram - Embedding Complete"
    },
    {
      "from": "Split Out",
      "to": "Manual Mapping"
    },
    {
      "from": "Command Router",
      "to": "Telegram - Download file"
    },
    {
      "from": "Command Router",
      "to": "AI Agent"
    },
    {
      "from": "Command Router",
      "to": "Unsupported message"
    },
    {
      "from": "Manual Mapping",
      "to": "Telegram"
    },
    {
      "from": "Telegram Trigger",
      "to": "Command Router"
    },
    {
      "from": "Extract from File",
      "to": "Supabase - Save Embeddings"
    },
    {
      "from": "Extract from File",
      "to": "Send embedding Started message"
    },
    {
      "from": "Telegram - Download file",
      "to": "Extract from File"
    },
    {
      "from": "Telegram - Download file",
      "to": "Send processing document message"
    },
    {
      "from": "Supabase - Save Embeddings",
      "to": "Aggregate"
    },
    {
      "from": "Handle formatting and split",
      "to": "Split Out"
    }
  ]
}