{
  "id": "Hr6YWMMNin3nZbai",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Simple Straker Verify Workflow",
  "tags": [],
  "nodes": [
    {
      "id": "aa3ddf03-3930-4298-9796-50470c03ba75",
      "name": "Sticky: Setup",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -384,
        80
      ],
      "parameters": {
        "width": 544,
        "height": 192,
        "content": "SETUP (do first)\n1) Settings \u2192 Community Nodes \u2192 Install \u2192 \"n8n-nodes-straker-verify\".\n2) Add credentials:\n   \u2022 Google Drive OAuth2 (used by Trigger/Download/Upload)\n   \u2022 Straker Verify API (used by Straker nodes)\n3) Create a /Translations folder for outputs.\n4) Activate workflow when ready to test."
      },
      "typeVersion": 1
    },
    {
      "id": "e4d8affb-0872-4e19-909f-8795d071e5cd",
      "name": "Sticky: Google Trigger",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        80
      ],
      "parameters": {
        "width": 288,
        "height": 272,
        "content": "GOOGLE DRIVE TRIGGER\n\nGoal: fire when a file is CREATED in a specific folder.\n\u2022 Trigger On: Specific folder \u2192 pick folder\n\u2022 Event: File Created\n\u2022 Poll: everyMinute (tune as needed)\n\nTest: upload a small file to the watched folder while workflow is executing."
      },
      "typeVersion": 1
    },
    {
      "id": "5795d2f8-271e-4eab-992c-720e32e60949",
      "name": "Sticky: Create Project",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        80
      ],
      "parameters": {
        "width": 272,
        "height": 272,
        "content": "CREATE PROJECT (Straker)\n\nGoal: create a Verify project and upload the source binary.\n\n\u2022 Operation: Create Project\n\u2022 Title: e.g. ={{ $json.name }} (from Drive file)\n\u2022 Input File: binary from previous node (usually \"data\")"
      },
      "typeVersion": 1
    },
    {
      "id": "bede4842-8946-44a4-8ca0-1d06e6870722",
      "name": "Sticky: Webhook",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        800
      ],
      "parameters": {
        "width": 272,
        "height": 272,
        "content": "WEBHOOK (from Straker)\n\nGoal: receive callback when translations are ready.\n\n\u2022 Method: POST\n\u2022 Path: ={{ $workflow.id }} (unique)\n\nAfter activation: copy the Production URL from this node and set it as the callback in Straker project creation node."
      },
      "typeVersion": 1
    },
    {
      "id": "6b60ca5a-0c14-4521-a7e4-707a648d45aa",
      "name": "Sticky: Download Translations",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        800
      ],
      "parameters": {
        "width": 256,
        "height": 272,
        "content": "DOWNLOAD TRANSLATIONS (Straker)\n\nGoal: fetch completed files for the project/job.\n\n\u2022 Operation: Download Files\n\u2022 (If required) Map job uuid from Webhook: e.g. ={{ $json.body.job_uuid }}\n\nReturns: one or more binaries (key often \"data\")."
      },
      "typeVersion": 1
    },
    {
      "id": "12c1ce21-1c50-4ba6-96d2-77479bca8c6c",
      "name": "Sticky: Upload to Drive",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        800
      ],
      "parameters": {
        "width": 272,
        "height": 272,
        "content": "UPLOAD TO GOOGLE DRIVE\n\nGoal: store translated files.\n\u2022 Drive/Folder: select destination (/Translations recommended)"
      },
      "typeVersion": 1
    },
    {
      "id": "f5871554-3a6a-4113-8e64-9551e3a18078",
      "name": "Create a new project",
      "type": "n8n-nodes-straker-verify.strakerVerify",
      "position": [
        784,
        400
      ],
      "parameters": {
        "title": "test"
      },
      "notesInFlow": true,
      "typeVersion": 1
    },
    {
      "id": "bbc2b9f9-0dc6-4b24-b1d4-350ce3f256bf",
      "name": "Download file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        560,
        400
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $json.id }}"
        },
        "options": {},
        "operation": "download"
      },
      "notesInFlow": true,
      "typeVersion": 3
    },
    {
      "id": "e047f8b3-413a-401c-89ce-70c3c1ffb961",
      "name": "Google Drive Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        336,
        400
      ],
      "parameters": {
        "event": "fileCreated",
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "triggerOn": "specificFolder",
        "folderToWatch": {
          "__rl": true,
          "mode": "list",
          "value": ""
        }
      },
      "typeVersion": 1
    },
    {
      "id": "179bc77d-75ce-421f-ab7c-5227eaaac8e2",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        336,
        624
      ],
      "parameters": {
        "path": "={{ $workflow.id }}",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2.1
    },
    {
      "id": "03d7c7aa-e867-48c7-a21e-b5097f964f87",
      "name": "Download translated files",
      "type": "n8n-nodes-straker-verify.strakerVerify",
      "position": [
        560,
        624
      ],
      "parameters": {
        "operation": "downloadFiles"
      },
      "notesInFlow": true,
      "typeVersion": 1
    },
    {
      "id": "c36fc3d5-f0b2-42b0-87dd-a8cc858617b9",
      "name": "Upload file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        784,
        624
      ],
      "parameters": {
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "root",
          "cachedResultName": "/ (Root folder)"
        }
      },
      "notesInFlow": true,
      "typeVersion": 3
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "9e9c1cc3-87a1-4737-8563-542e2554661e",
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Download translated files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download file": {
      "main": [
        [
          {
            "node": "Create a new project",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Trigger": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download translated files": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}