{
  "name": "fluidX THE EYE — Create & invite via SMS for live camera session",
  "nodes": [
    {
      "id": "0d2978ac-0459-47fd-9b99-9851852cad04",
      "name": "📝 Setup & Instructions",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 688,
        "height": 540,
        "content": "### Setup — Create a fluidX revXR THE EYE session\n\n**Goal:** Invite the customer via SMS and the service agent via email so both join the fluidX THE EYE session and share their cameras live.\n\n1. Sign "
      }
    },
    {
      "id": "f3421d4b-5e6a-4dd8-890e-c9023d262599",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        288,
        960
      ]
    },
    {
      "id": "cdd96102-c2b5-471a-aeaf-a6da0bee2f40",
      "name": "Set Config",
      "type": "n8n-nodes-base.set",
      "position": [
        512,
        960
      ]
    },
    {
      "id": "bece2d3b-3465-4cab-8483-f49136e1778c",
      "name": "Set Session Vars",
      "type": "n8n-nodes-base.set",
      "position": [
        960,
        960
      ]
    },
    {
      "id": "e77f231d-a7ba-4be8-87a7-b6f97e9aa3cc",
      "name": "Create Session Folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1184,
        960
      ]
    },
    {
      "id": "f9d45461-ef0b-4724-a771-96abd835c6b7",
      "name": "Send email to Agent",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1632,
        960
      ]
    },
    {
      "id": "78c8ce11-4a68-4f4a-af66-deb61212bffc",
      "name": "ℹ️ Viewer Tips",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2495,
        400
      ],
      "parameters": {
        "width": 835,
        "height": 364,
        "content": "### If the Session is closed: Get the media summary\nfluidX API GET /api/fx/ext/media/summary\nUpload the final Summary to the Google Drive\n\n"
      }
    },
    {
      "id": "18bfe57d-a072-4886-b99e-2f9e3fbc9773",
      "name": "Split photoRefs (Item Lists)",
      "type": "n8n-nodes-base.itemLists",
      "position": [
        2976,
        912
      ]
    },
    {
      "id": "5f6ee9ef-966a-411e-beee-c2d5f0406c44",
      "name": "fluidX API - Media Info HTTP Request GET",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3424,
        944
      ]
    },
    {
      "id": "18f9e934-a057-4327-b806-67f33c710dab",
      "name": "Upload file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        6112,
        528
      ]
    },
    {
      "id": "68726804-080e-4eaa-868a-6f18012165d0",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        6560,
        1184
      ]
    },
    {
      "id": "3a119e17-c12c-4a95-978a-1dcfdef0acc1",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        1856,
        960
      ]
    },
    {
      "id": "4f4c0803-fd98-450a-adcc-185f904f4346",
      "name": "Analyze image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        4768,
        704
      ]
    },
    {
      "id": "354b4dca-18e9-42ce-b489-95d2b8cab6c6",
      "name": "Merge Analyze + URL",
      "type": "n8n-nodes-base.merge",
      "position": [
        4992,
        768
      ]
    },
    {
      "id": "6656b843-0c83-4301-a834-c1a0da326b92",
      "name": "Build MediaInfo",
      "type": "n8n-nodes-base.set",
      "position": [
        5216,
        768
      ]
    },
    {
      "id": "aa94f2dd-756a-46f2-9210-91be6ee3b883",
      "name": "fluidX API - Create Session",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        736,
        960
      ]
    },
    {
      "id": "58f80aca-625f-44bb-9f3b-0c726d9e3a20",
      "name": "fluidX API - Send SMS User",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1408,
        960
      ]
    },
    {
      "id": "d54991a8-c71f-49d2-b3d0-a8b4a42ebaa8",
      "name": "fluidX API - Get Session Info",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2080,
        960
      ]
    },
    {
      "id": "09d29311-35df-4666-b3ed-69d350ee23ef",
      "name": "fluidX API - Download Photo THEEYE Session",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4320,
        768
      ]
    },
    {
      "id": "3dce58d2-3599-4cfe-8270-86eaed04f5bd",
      "name": "fluidX API - Media Info HTTP Request POST",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5440,
        768
      ]
    },
    {
      "id": "9a9c03a1-4c76-4cc9-b99c-1402870c57d4",
      "name": "If new Image",
      "type": "n8n-nodes-base.if",
      "position": [
        3872,
        848
      ]
    },
    {
      "id": "d5961c10-19fe-4cf3-8c29-e7bd0394238f",
      "name": "If Media Id",
      "type": "n8n-nodes-base.if",
      "position": [
        3200,
        1040
      ]
    },
    {
      "id": "78d49f55-9671-4868-b617-f5f9b29be27c",
      "name": "If Session Active",
      "type": "n8n-nodes-base.if",
      "position": [
        2304,
        896
      ]
    },
    {
      "id": "2de45ed6-e553-4e9b-b0e7-c270f22b4df5",
      "name": "The End",
      "type": "n8n-nodes-base.noOp",
      "position": [
        3648,
        600
      ]
    },
    {
      "id": "55247c08-471c-46b4-97be-ef17c50a3445",
      "name": "Generate Photo Summary",
      "type": "n8n-nodes-base.code",
      "position": [
        5664,
        768
      ]
    },
    {
      "id": "33faddeb-94fe-42e9-9293-2b576f810159",
      "name": "Upload Photo Summary",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        6112,
        768
      ]
    },
    {
      "id": "ead00873-f003-4565-a0d5-2ce82697d2fa",
      "name": "Convert Text to Binary",
      "type": "n8n-nodes-base.code",
      "position": [
        5888,
        768
      ]
    },
    {
      "id": "eb3e2f03-92e5-4bf4-8cbe-06d505ddc038",
      "name": "fluidX API - Media Summary",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2528,
        600
      ]
    },
    {
      "id": "b10c3d6a-bb00-4d4a-b3f3-4b2814525b2d",
      "name": "Carry URL and Id",
      "type": "n8n-nodes-base.set",
      "position": [
        4544,
        768
      ]
    },
    {
      "id": "cf9f62ec-6c67-4e0d-b62f-cfe3ca5b566f",
      "name": "If photos",
      "type": "n8n-nodes-base.if",
      "position": [
        2752,
        992
      ]
    },
    {
      "id": "703663ab-56b1-4837-bfbe-fa6bc4d86a5f",
      "name": "Extract Media Refs photos",
      "type": "n8n-nodes-base.set",
      "position": [
        2528,
        992
      ]
    },
    {
      "id": "2ea8fec6-05db-4c6f-9790-b4f72c3ed42a",
      "name": "Check Already Uploaded",
      "type": "n8n-nodes-base.code",
      "position": [
        4096,
        768
      ]
    },
    {
      "id": "42b490c0-d66d-41bb-8ec4-16ba19ea10e5",
      "name": "Merge photoRefs",
      "type": "n8n-nodes-base.merge",
      "position": [
        3648,
        848
      ]
    },
    {
      "id": "5aa40281-8a45-434f-beae-b131f8decb96",
      "name": "Clear Uploaded Photo Store",
      "type": "n8n-nodes-base.code",
      "position": [
        3424,
        600
      ]
    },
    {
      "id": "a71d0b5a-6076-41c2-8d71-0b738ed14485",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        6336,
        752
      ]
    },
    {
      "id": "adf7b7e5-2f9a-4c4d-8f00-1fec2c7315c3",
      "name": "Convert Summary Text to Binary",
      "type": "n8n-nodes-base.code",
      "position": [
        2752,
        600
      ]
    },
    {
      "id": "c0c73a6c-ea0e-44b5-9cd4-133d45e3fa80",
      "name": "Upload Session Summary",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2976,
        600
      ]
    },
    {
      "id": "727998b9-3c8e-4764-9cf1-3d683ab91670",
      "name": "ℹ️ Viewer Tips1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1924,
        784
      ],
      "parameters": {
        "width": 740,
        "height": 400,
        "content": "### Get session information\nfluidX API GET /api/revxr/ext/session\n"
      }
    },
    {
      "id": "3fe62bc4-ae18-4632-8d41-41f29442b8cc",
      "name": "## Create THE EYE Session",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        784
      ],
      "parameters": {
        "width": 1840,
        "height": 400,
        "content": "### Create THE EYE session\nInvite the user via SMS and the agent via email.\n\n"
      }
    },
    {
      "id": "964e64a8-7b21-4cb4-837d-c1aab865590b",
      "name": "ℹ️ Viewer Tips2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3252,
        784
      ],
      "parameters": {
        "width": 590,
        "height": 400,
        "content": "### Retrieve the media information\nfluidX API GET /api/revxr/ext/media/info\n\n"
      }
    },
    {
      "id": "a7c957dd-8d95-484b-b104-61f44550c669",
      "name": "ℹ️ Viewer Tips3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4000,
        600
      ],
      "parameters": {
        "width": 600,
        "height": 343,
        "content": "### Download the image via photoRefs\nUse the photoRefs download URL. If there is no MediaInfo, it is a new image captured on the customer's device.\n\n"
      }
    },
    {
      "id": "ffafc7ec-4972-41fe-9c20-51e5982be325",
      "name": "ℹ️ Viewer Tips4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4600,
        600
      ],
      "parameters": {
        "width": 580,
        "height": 343,
        "content": "### Analyze the image\nUse the `Analyze Image` node (or your preferred vision model) to extract insights.\n\n"
      }
    },
    {
      "id": "536dd4c3-2c3c-49ec-a509-ce9759fb22f6",
      "name": "ℹ️ Viewer Tips5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5200,
        300
      ],
      "parameters": {
        "width": 660,
        "height": 636,
        "content": "### Create Media Info\nfluidX API POST /api/revxr/ext/media/info\nDocument the AI findings back into the session payload.\n\n"
      }
    },
    {
      "id": "bb49376f-7d0f-4528-b255-54f49f577a25",
      "name": "ℹ️ Viewer Tips6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5875,
        300
      ],
      "parameters": {
        "width": 660,
        "height": 636,
        "content": "### Upload image and MediaInfo\nStore both assets in your Google Drive THEEYE folder.\n\n"
      }
    },
    {
      "id": "db283dae-d28f-4c4d-af92-557df597d384",
      "name": "ℹ️ Viewer Tips7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2680,
        784
      ],
      "parameters": {
        "width": 564,
        "height": 400,
        "content": "### Prepare image information\nExtract the image references: download URL and ID.\n\n"
      }
    },
    {
      "id": "8cf50456-15d7-410f-9e63-f0f167e18171",
      "name": "ℹ️ Viewer Tips9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3334,
        400
      ],
      "parameters": {
        "width": 510,
        "height": 364,
        "content": "### The end\nClean up remaining assets and wrap up the session.\n\n"
      }
    },
    {
      "id": "remember-summary-file-12345678",
      "name": "Remember Session Summary File",
      "type": "n8n-nodes-base.code",
      "position": [
        3200,
        600
      ]
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "fluidX API - Get Session Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "fluidX API - Get Session Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "The End": {
      "main": []
    },
    "If photos": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Split photoRefs (Item Lists)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Config": {
      "main": [
        [
          {
            "node": "fluidX API - Create Session",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Media Id": {
      "main": [
        [
          {
            "node": "fluidX API - Media Info HTTP Request GET",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If new Image": {
      "main": [
        [
          {
            "node": "Check Already Uploaded",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze image": {
      "main": [
        [
          {
            "node": "Merge Analyze + URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build MediaInfo": {
      "main": [
        [
          {
            "node": "fluidX API - Media Info HTTP Request POST",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge photoRefs": {
      "main": [
        [
          {
            "node": "If new Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Carry URL and Id": {
      "main": [
        [
          {
            "node": "Analyze image",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Analyze + URL",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Set Session Vars": {
      "main": [
        [
          {
            "node": "Create Session Folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Session Active": {
      "main": [
        [
          {
            "node": "Extract Media Refs photos",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "fluidX API - Media Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Set Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Analyze + URL": {
      "main": [
        [
          {
            "node": "Build MediaInfo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send email to Agent": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Photo Summary": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Create Session Folder": {
      "main": [
        [
          {
            "node": "fluidX API - Send SMS User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Already Uploaded": {
      "main": [
        [
          {
            "node": "fluidX API - Download Photo THEEYE Session",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Text to Binary": {
      "main": [
        [
          {
            "node": "Upload Photo Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Photo Summary": {
      "main": [
        [
          {
            "node": "Convert Text to Binary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Session Summary": {
      "main": [
        [
          {
            "node": "Remember Session Summary File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Media Refs photos": {
      "main": [
        [
          {
            "node": "If photos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clear Uploaded Photo Store": {
      "main": [
        [
          {
            "node": "The End",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fluidX API - Media Summary": {
      "main": [
        [
          {
            "node": "Convert Summary Text to Binary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fluidX API - Send SMS User": {
      "main": [
        [
          {
            "node": "Send email to Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fluidX API - Create Session": {
      "main": [
        [
          {
            "node": "Set Session Vars",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split photoRefs (Item Lists)": {
      "main": [
        [
          {
            "node": "If Media Id",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge photoRefs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remember Session Summary File": {
      "main": [
        [
          {
            "node": "Clear Uploaded Photo Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fluidX API - Get Session Info": {
      "main": [
        [
          {
            "node": "If Session Active",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Summary Text to Binary": {
      "main": [
        [
          {
            "node": "Upload Session Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fluidX API - Media Info HTTP Request GET": {
      "main": [
        [
          {
            "node": "Merge photoRefs",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "fluidX API - Media Info HTTP Request POST": {
      "main": [
        [
          {
            "node": "Generate Photo Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fluidX API - Download Photo THEEYE Session": {
      "main": [
        [
          {
            "node": "Carry URL and Id",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}