{
  "name": "OpenAI Assistant workflow: upload file, create an Assistant, chat with it!",
  "nodes": [
    {
      "id": "fc64b8c8-3457-4a96-8321-094accb71c56",
      "name": "When clicking \"Test workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        980,
        280
      ]
    },
    {
      "id": "356299ae-155b-40cf-a3a4-2ae38819f998",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1140,
        0
      ],
      "parameters": {
        "width": 513,
        "height": 350.4434384638342,
        "content": "## STEP 1. Get a Google Drive file and upload to OpenAI \n\n[Music Festival example document](https://docs.google.com/document/d/1_miLvjUQJ-E9bWgEBK87nHZre26-4Fz0RpfSfO548H0/edit?usp=sharing\n)\n\n[OpenAI "
      }
    },
    {
      "id": "48b39a32-e0b0-4c04-b99f-07ed040d743d",
      "name": "Get File",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1200,
        180
      ]
    },
    {
      "id": "6362daf7-e162-4f79-b98f-b17f24ae73db",
      "name": "Chat Trigger",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        1720,
        60
      ]
    },
    {
      "id": "6f000307-b98f-46fc-9bed-d74fd6a3525e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1140,
        370.9521440652671
      ],
      "parameters": {
        "width": 513,
        "height": 354.86524723908076,
        "content": "## STEP 2. Setup a new Assistant\n\n* Select a name\n* Provide a description\n* Enter the system prompt\n* Attach tools: knowledge retrieval from the uploaded documents"
      }
    },
    {
      "id": "faa021b5-2a52-4e14-aaf2-faa4514808ee",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1860,
        0
      ],
      "parameters": {
        "width": 513,
        "height": 221.47607203263362,
        "content": "## STEP 3. Chat with the Assistant\n"
      }
    },
    {
      "id": "3df6699d-71cf-47ac-b936-3be28c9e8441",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1860,
        240
      ],
      "parameters": {
        "width": 508,
        "height": 487.17391304347825,
        "content": "### STEP 4. Expand the Assistant. Check the tutorials:\n\n[Create a WhatsApp bot](https://blog.n8n.io/whatsapp-bot/)\n[Create simple Telegram bot](https://blog.n8n.io/telegram-bots/)\n[![Create a Telegram"
      }
    },
    {
      "id": "26588191-aee2-41dd-acb6-4f9a76be9caa",
      "name": "OpenAI Assistant",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1980,
        60
      ]
    },
    {
      "id": "02ad2602-037d-4e3d-8045-ec646d2d301c",
      "name": "Upload File to OpenAI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1480,
        180
      ]
    },
    {
      "id": "e056592c-b89e-4106-9151-078d0ede2e92",
      "name": "Create new Assistant",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1340,
        560
      ]
    }
  ],
  "connections": {
    "Get File": {
      "main": [
        [
          {
            "node": "Upload File to OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chat Trigger": {
      "main": [
        [
          {
            "node": "OpenAI Assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}