{
  "openruna_format": "flow-graph-v1",
  "title": "All-in-One Telegram/Baserow AI Assistant 🤖🧠 Voice/Photo/Save Notes/Long Term Mem",
  "slug": "all-in-one-telegrambaserow-ai-assistant-voicephotosave-noteslong-term-mem",
  "source_filename": "1305_Telegram_Splitout_Export_Webhook.json",
  "nodes": [
    {
      "id": "gpt-4o-mini",
      "name": "gpt-4o-mini",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Chat Response",
      "name": "Chat Response",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Telegram Response",
      "name": "Telegram Response",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "AI Tools Agent",
      "name": "AI Tools Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Aggregate",
      "name": "Aggregate",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Merge",
      "name": "Merge",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Get Audio File",
      "name": "Get Audio File",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Analyze Image",
      "name": "Analyze Image",
      "integration": "@n8n/n8n-nodes-langchain.openAi",
      "kind": "action"
    },
    {
      "id": "Transcribe Recording",
      "name": "Transcribe Recording",
      "integration": "@n8n/n8n-nodes-langchain.openAi",
      "kind": "action"
    },
    {
      "id": "Edit Fields",
      "name": "Edit Fields",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Convert to Image File",
      "name": "Convert to Image File",
      "integration": "convertToFile",
      "kind": "action"
    },
    {
      "id": "Extract from File to Base64",
      "name": "Extract from File to Base64",
      "integration": "extractFromFile",
      "kind": "action"
    },
    {
      "id": "Message Router",
      "name": "Message Router",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Image Schema1",
      "name": "Image Schema1",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "caption",
      "name": "caption",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "Merge1",
      "name": "Merge1",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Get Image",
      "name": "Get Image",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Edit Fields1",
      "name": "Edit Fields1",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Postgres Chat Memory",
      "name": "Postgres Chat Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryPostgresChat",
      "kind": "action"
    },
    {
      "id": "Save Note Tool",
      "name": "Save Note Tool",
      "integration": "baserowTool",
      "kind": "action"
    },
    {
      "id": "Save Memory",
      "name": "Save Memory",
      "integration": "baserowTool",
      "kind": "action"
    },
    {
      "id": "Listen for Telegram Events",
      "name": "Listen for Telegram Events",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "Validation",
      "name": "Validation",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Check User & Chat ID",
      "name": "Check User & Chat ID",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Error message",
      "name": "Error message",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Baserow Retrieve Memories",
      "name": "Baserow Retrieve Memories",
      "integration": "baserow",
      "kind": "action"
    },
    {
      "id": "Baserow Retrieve Notes",
      "name": "Baserow Retrieve Notes",
      "integration": "baserow",
      "kind": "action"
    },
    {
      "id": "Window Memory (Easy Mode)",
      "name": "Window Memory (Easy Mode)",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Merge",
      "to": "Aggregate"
    },
    {
      "from": "Merge1",
      "to": "Edit Fields1"
    },
    {
      "from": "caption",
      "to": "Merge1"
    },
    {
      "from": "Aggregate",
      "to": "AI Tools Agent"
    },
    {
      "from": "Get Image",
      "to": "Extract from File to Base64"
    },
    {
      "from": "Validation",
      "to": "Check User & Chat ID"
    },
    {
      "from": "Edit Fields",
      "to": "Baserow Retrieve Memories"
    },
    {
      "from": "Edit Fields",
      "to": "Baserow Retrieve Notes"
    },
    {
      "from": "Edit Fields1",
      "to": "Baserow Retrieve Memories"
    },
    {
      "from": "Edit Fields1",
      "to": "Baserow Retrieve Notes"
    },
    {
      "from": "Analyze Image",
      "to": "Merge1"
    },
    {
      "from": "Image Schema1",
      "to": "Get Image"
    },
    {
      "from": "Image Schema1",
      "to": "caption"
    },
    {
      "from": "AI Tools Agent",
      "to": "Telegram Response"
    },
    {
      "from": "AI Tools Agent",
      "to": "Chat Response"
    },
    {
      "from": "Get Audio File",
      "to": "Transcribe Recording"
    },
    {
      "from": "Message Router",
      "to": "Get Audio File"
    },
    {
      "from": "Message Router",
      "to": "Edit Fields"
    },
    {
      "from": "Message Router",
      "to": "Image Schema1"
    },
    {
      "from": "Message Router",
      "to": "Error message"
    },
    {
      "from": "Check User & Chat ID",
      "to": "Message Router"
    },
    {
      "from": "Check User & Chat ID",
      "to": "Error message"
    },
    {
      "from": "Transcribe Recording",
      "to": "Baserow Retrieve Memories"
    },
    {
      "from": "Transcribe Recording",
      "to": "Baserow Retrieve Notes"
    },
    {
      "from": "Convert to Image File",
      "to": "Analyze Image"
    },
    {
      "from": "Baserow Retrieve Notes",
      "to": "Merge"
    },
    {
      "from": "Baserow Retrieve Memories",
      "to": "Merge"
    },
    {
      "from": "Listen for Telegram Events",
      "to": "Validation"
    },
    {
      "from": "Extract from File to Base64",
      "to": "Convert to Image File"
    }
  ]
}