AutomationFlowsGeneral › Nats Object Store File Handling

Nats Object Store File Handling

NATS Object Store File Handling. Uses n8n-nodes-synadia. Event-driven trigger; 9 nodes.

Event trigger★★★★☆ complexity9 nodesN8N Nodes Synadia
General Trigger: Event Nodes: 9 Complexity: ★★★★☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "NATS Object Store File Handling",
  "nodes": [
    {
      "parameters": {},
      "id": "start",
      "name": "Start",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "resource": "bucket",
        "operation": "create",
        "bucket": "documents",
        "config": {
          "description": "Document storage bucket",
          "storage": "file",
          "replicas": 1
        }
      },
      "id": "create-bucket",
      "name": "Create Document Bucket",
      "type": "n8n-nodes-synadia.natsObjectStore",
      "typeVersion": 1,
      "position": [
        460,
        200
      ],
      "credentials": {
        "natsApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "content",
              "value": "={{\"# Sample Report\\n\\nThis is a sample report generated at \" + $now.toISO() + \"\\n\\n## Summary\\n- Total items: 42\\n- Status: Completed\\n- Generated by: n8n workflow\"}}"
            }
          ]
        },
        "config": {}
      },
      "id": "create-content",
      "name": "Create Report Content",
      "type": "n8n-nodes-base.set",
      "typeVersion": 2,
      "position": [
        460,
        400
      ]
    },
    {
      "parameters": {
        "resource": "object",
        "operation": "put",
        "bucket": "documents",
        "name": "={{\"reports/2024/\" + $now.format('yyyy-MM-dd') + \"-daily-report.md\"}}",
        "data": "={{$json.content}}",
        "config": {
          "dataType": "string",
          "description": "Daily report"
        }
      },
      "id": "store-file",
      "name": "Store Report",
      "type": "n8n-nodes-synadia.natsObjectStore",
      "typeVersion": 1,
      "position": [
        680,
        400
      ],
      "credentials": {
        "natsApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "resource": "object",
        "operation": "list",
        "bucket": "documents",
        "config": {}
      },
      "id": "list-files",
      "name": "List All Files",
      "type": "n8n-nodes-synadia.natsObjectStore",
      "typeVersion": 1,
      "position": [
        900,
        300
      ],
      "credentials": {
        "natsApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "fieldToSplitOut": "objects",
        "options": {}
      },
      "id": "split-files",
      "name": "Split File List",
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        1120,
        300
      ]
    },
    {
      "parameters": {
        "resource": "object",
        "operation": "info",
        "bucket": "documents",
        "name": "={{$json.name}}",
        "config": {}
      },
      "id": "get-info",
      "name": "Get File Info",
      "type": "n8n-nodes-synadia.natsObjectStore",
      "typeVersion": 1,
      "position": [
        1320,
        300
      ],
      "credentials": {
        "natsApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "bucket": "documents",
        "options": {
          "nameFilter": "reports/2024/*",
          "includeDeletes": true,
          "includeHistory": false
        }
      },
      "id": "watch-files",
      "name": "Watch for File Changes",
      "type": "n8n-nodes-synadia.natsObjectStoreTrigger",
      "typeVersion": 1,
      "position": [
        460,
        600
      ],
      "credentials": {
        "natsApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "resource": "object",
        "operation": "get",
        "bucket": "documents",
        "name": "={{$json.name}}",
        "config": {}
      },
      "id": "get-latest-file",
      "name": "Get Latest File Content",
      "type": "n8n-nodes-synadia.natsObjectStore",
      "typeVersion": 1,
      "position": [
        680,
        600
      ],
      "credentials": {
        "natsApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Create Document Bucket",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create Report Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Report Content": {
      "main": [
        [
          {
            "node": "Store Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Report": {
      "main": [
        [
          {
            "node": "List All Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List All Files": {
      "main": [
        [
          {
            "node": "Split File List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split File List": {
      "main": [
        [
          {
            "node": "Get File Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Watch for File Changes": {
      "main": [
        [
          {
            "node": "Get Latest File Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {},
  "versionId": "object-store-v1",
  "id": "5",
  "tags": [
    "nats",
    "object-store",
    "files",
    "example"
  ]
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

NATS Object Store File Handling. Uses n8n-nodes-synadia. Event-driven trigger; 9 nodes.

Source: https://github.com/synadia-labs/n8n-nodes-synadia/blob/b183e0ca9467695f9fa3f49ff01f2cd66e613aed/examples/object-store-file-handling.json — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

Blotato. Uses googleSheets, @blotato/n8n-nodes-blotato. Event-driven trigger; 65 nodes.

Google Sheets, @Blotato/N8N Nodes Blotato
General

This template is a hands-on, practical exam designed to help you master n8n Expressions—the key to accessing and manipulating data in your workflows.

Stop And Error
General

This template is a hands-on, practical exam designed to test your understanding of the fundamental JSON data types. It's the perfect way to solidify your knowledge after learning the basics.

Stop And Error
General

Agendamiento. Uses n8n-nodes-evolution-api, redis, dataTable, executeWorkflowTrigger. Event-driven trigger; 60 nodes.

N8N Nodes Evolution Api, Redis, Data Table +2
General

Kv Cloudflare Key Value Database Full Api Integration Workflow. Uses stickyNote, httpRequest, manualTrigger. Event-driven trigger; 47 nodes.

HTTP Request