{
  "openruna_format": "flow-graph-v1",
  "title": "A/B Split Testing",
  "slug": "ab-split-testing",
  "source_filename": "1680_Supabase_Stickynote_Automation_Triggered.json",
  "nodes": [
    {
      "id": "When chat message received",
      "name": "When chat message received",
      "integration": "@n8n/n8n-nodes-langchain.chat",
      "kind": "trigger"
    },
    {
      "id": "AI Agent",
      "name": "AI Agent",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Check If Session Exists",
      "name": "Check If Session Exists",
      "integration": "supabase",
      "kind": "action"
    },
    {
      "id": "If Session Does Exist",
      "name": "If Session Does Exist",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Assign Path To Session",
      "name": "Assign Path To Session",
      "integration": "supabase",
      "kind": "action"
    },
    {
      "id": "Define Path Values",
      "name": "Define Path Values",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "OpenAI Chat Model",
      "name": "OpenAI Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "kind": "action"
    },
    {
      "id": "Postgres Chat Memory",
      "name": "Postgres Chat Memory",
      "integration": "@n8n/n8n-nodes-langchain.memoryPostgresChat",
      "kind": "action"
    },
    {
      "id": "Get Correct Prompt",
      "name": "Get Correct Prompt",
      "integration": "set",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Define Path Values",
      "to": "Check If Session Exists"
    },
    {
      "from": "Get Correct Prompt",
      "to": "AI Agent"
    },
    {
      "from": "If Session Does Exist",
      "to": "Get Correct Prompt"
    },
    {
      "from": "If Session Does Exist",
      "to": "Assign Path To Session"
    },
    {
      "from": "Assign Path To Session",
      "to": "Get Correct Prompt"
    },
    {
      "from": "Check If Session Exists",
      "to": "If Session Does Exist"
    },
    {
      "from": "When chat message received",
      "to": "Define Path Values"
    }
  ]
}