{
  "openruna_format": "flow-graph-v1",
  "title": "1431_Wait_Redis_Send_Triggered",
  "slug": "1431-wait-redis-send-triggered",
  "source_filename": "1431_Wait_Redis_Send_Triggered.json",
  "nodes": [
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "No Operation, do nothing",
      "name": "No Operation, do nothing",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Add to Messages Stack",
      "name": "Add to Messages Stack",
      "integration": "redis",
      "kind": "action"
    },
    {
      "id": "Should Continue?",
      "name": "Should Continue?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Window Buffer Memory",
      "name": "Window Buffer Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "Twilio Trigger",
      "name": "Twilio Trigger",
      "integration": "twilio",
      "kind": "trigger"
    },
    {
      "id": "Get Latest Message Stack",
      "name": "Get Latest Message Stack",
      "integration": "redis",
      "kind": "action"
    },
    {
      "id": "Send Reply",
      "name": "Send Reply",
      "integration": "twilio",
      "kind": "action"
    },
    {
      "id": "Wait 5 seconds",
      "name": "Wait 5 seconds",
      "integration": "wait",
      "kind": "logic"
    },
    {
      "id": "Get Chat History",
      "name": "Get Chat History",
      "integration": "@n8n/n8n-nodes-langchain.memoryManager",
      "kind": "action"
    },
    {
      "id": "Window Buffer Memory1",
      "name": "Window Buffer Memory1",
      "integration": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "kind": "action"
    },
    {
      "id": "Get Messages Buffer",
      "name": "Get Messages Buffer",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "AI Agent",
      "to": "Send Reply"
    },
    {
      "from": "Twilio Trigger",
      "to": "Add to Messages Stack"
    },
    {
      "from": "Twilio Trigger",
      "to": "Wait 5 seconds"
    },
    {
      "from": "Wait 5 seconds",
      "to": "Get Latest Message Stack"
    },
    {
      "from": "Get Chat History",
      "to": "Get Messages Buffer"
    },
    {
      "from": "Should Continue?",
      "to": "Get Chat History"
    },
    {
      "from": "Should Continue?",
      "to": "No Operation, do nothing"
    },
    {
      "from": "Get Messages Buffer",
      "to": "AI Agent"
    },
    {
      "from": "Get Latest Message Stack",
      "to": "Should Continue?"
    }
  ]
}