{
  "openruna_format": "flow-graph-v1",
  "title": "Telegram Chat with Buffering",
  "slug": "telegram-chat-with-buffering",
  "source_filename": "1411_Telegram_Wait_Automation_Triggered.json",
  "nodes": [
    {
      "id": "Reply",
      "name": "Reply",
      "integration": "telegram",
      "kind": "action"
    },
    {
      "id": "Receive Message",
      "name": "Receive Message",
      "integration": "telegram",
      "kind": "trigger"
    },
    {
      "id": "Wait 10 Seconds",
      "name": "Wait 10 Seconds",
      "integration": "wait",
      "kind": "logic"
    },
    {
      "id": "Add to Queued Messages",
      "name": "Add to Queued Messages",
      "integration": "supabase",
      "kind": "action"
    },
    {
      "id": "No Operation, do nothing",
      "name": "No Operation, do nothing",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Aggregate",
      "name": "Aggregate",
      "integration": "aggregate",
      "kind": "logic"
    },
    {
      "id": "Delete Queued Messages",
      "name": "Delete Queued Messages",
      "integration": "supabase",
      "kind": "action"
    },
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Sort by Message ID",
      "name": "Sort by Message ID",
      "integration": "sort",
      "kind": "action"
    },
    {
      "id": "Get Queued Messages",
      "name": "Get Queued Messages",
      "integration": "supabase",
      "kind": "action"
    },
    {
      "id": "Check Most Recent Message",
      "name": "Check Most Recent Message",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Postgres Chat Memory",
      "name": "Postgres Chat Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryPostgresChat",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "AI Agent",
      "to": "Reply"
    },
    {
      "from": "Aggregate",
      "to": "AI Agent"
    },
    {
      "from": "Receive Message",
      "to": "Add to Queued Messages"
    },
    {
      "from": "Wait 10 Seconds",
      "to": "Get Queued Messages"
    },
    {
      "from": "Sort by Message ID",
      "to": "Check Most Recent Message"
    },
    {
      "from": "Get Queued Messages",
      "to": "Sort by Message ID"
    },
    {
      "from": "Add to Queued Messages",
      "to": "Wait 10 Seconds"
    },
    {
      "from": "Delete Queued Messages",
      "to": "Aggregate"
    },
    {
      "from": "Check Most Recent Message",
      "to": "Delete Queued Messages"
    },
    {
      "from": "Check Most Recent Message",
      "to": "No Operation, do nothing"
    }
  ]
}