{
  "name": "Create a Lookio RAG assistant from a CSV text corpus",
  "nodes": [
    {
      "id": "b7fa47a6-76cb-4aab-93d0-83a68004453e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1104,
        -240
      ],
      "parameters": {
        "width": 496,
        "height": 800,
        "content": "# Create a Lookio RAG Assistant from a CSV Text Corpus\n\nThis advanced workflow ingests a corpus of text from a CSV file, uploads each row as a separate resource to [Lookio](https://www.lookio.app), an"
      }
    },
    {
      "id": "6ab43461-7e57-4e22-8aa2-0810e1683bf4",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        480
      ],
      "parameters": {
        "width": 256,
        "height": 320,
        "content": "## Action required\n\nMake sure to set your Lookio API key and workspace ID in here."
      }
    },
    {
      "id": "3c75f7cd-2208-4ca8-a815-f30797885c81",
      "name": "Convert to txt",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        176,
        416
      ]
    },
    {
      "id": "500e2a33-403d-4fe6-a178-f8b8dc6a82c2",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        400,
        416
      ]
    },
    {
      "id": "5d67d456-f302-4bf2-b8fe-a924117699d5",
      "name": "Convert CSV to JSON",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -48,
        416
      ]
    },
    {
      "id": "20e9fd7e-dd10-4c6f-bf15-01ff742dc25a",
      "name": "Upload a CSV",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -384,
        416
      ]
    },
    {
      "id": "9135b6b3-a2ea-4cf5-8c10-2fcb0ed6cc16",
      "name": "Aggregate success messages",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        624,
        272
      ]
    },
    {
      "id": "9173f114-3be2-453d-97c3-25fcba6cffdb",
      "name": "Convert IDs into an Array",
      "type": "n8n-nodes-base.set",
      "position": [
        848,
        272
      ]
    },
    {
      "id": "a91503f2-6a84-44ef-b8d8-661157502cff",
      "name": "Success message form ending",
      "type": "n8n-nodes-base.form",
      "position": [
        1344,
        272
      ]
    },
    {
      "id": "805a94d8-1085-4acb-b6f9-d3622b3eed5e",
      "name": "Create Lookio assistant",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1088,
        272
      ]
    },
    {
      "id": "d3d01a00-af81-4532-b8c9-677999557006",
      "name": "Import resource to Lookio",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        608
      ]
    },
    {
      "id": "2fe20497-a22c-4248-8611-2c68a3a582ff",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        -96
      ],
      "parameters": {
        "width": 368,
        "height": 656,
        "content": "## Form Input Helper\n\nThis form configures the Assistant and maps your CSV data.\n\n**Assistant Settings:**\n\n* **Name:** The display name (e.g., \"HR Bot\").\n* **Context:** The system instructions (e.g., "
      }
    },
    {
      "id": "c744fbaf-a4e9-42f8-8969-f1c5f00c1aab",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        112
      ],
      "parameters": {
        "width": 256,
        "height": 320,
        "content": "## Action required\n\nMake sure to set your Lookio API key and workspace ID in here."
      }
    }
  ],
  "connections": {
    "Upload a CSV": {
      "main": [
        [
          {
            "node": "Convert CSV to JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to txt": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Aggregate success messages",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Import resource to Lookio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert CSV to JSON": {
      "main": [
        [
          {
            "node": "Convert to txt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Lookio assistant": {
      "main": [
        [
          {
            "node": "Success message form ending",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert IDs into an Array": {
      "main": [
        [
          {
            "node": "Create Lookio assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Import resource to Lookio": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate success messages": {
      "main": [
        [
          {
            "node": "Convert IDs into an Array",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}