Report drop — write, scan, read
The file trio on one flow: write two reports into ./node-demos-data, scan the folder for *.txt, and read one back — the drop-folder pattern behind most batch feeds.
What’s inside
6 nodes — every type links to its full reference page.
| Step | Node | Type |
|---|---|---|
| Report content | Inject | input.inject |
| Write daily | Write File | storage.write-file |
| Write weekly | Write File | storage.write-file |
| Scan drop folder | Directory Scan | input.directory-scan |
| Read daily | Read File | input.read-file |
| Report feed | Console | utility.console |
Import it
- Studio → Import — paste the JSON below (or the URL
/docs/templates/report-drop-write-scan-read.json). - Or ask the AI Copilot with the JSON pasted after the phrase:
import this workflow json into a new workflow named "Report drop — write, scan, read" - Any credentials the nodes need are
${credential.…}references — add them once in Admin → Credentials and the template picks them up. Nothing secret ships in a template.
The workflow document (flowdrome.workflow.v1, 5 node types)
{
"schemaVersion": "flowdrome.workflow.v1",
"id": "",
"name": "Report drop — write, scan, read",
"version": "0",
"status": "draft",
"nodes": [
{
"id": "seed",
"type": "input.inject",
"label": "Report content",
"category": "trigger",
"config": {
"contentType": "application/json",
"payload": {
"daily": "revenue: $4,120",
"weekly": "revenue: $28,900"
}
},
"position": {
"x": 0,
"y": 23
}
},
{
"id": "w1",
"type": "storage.write-file",
"label": "Write daily",
"category": "io",
"config": {
"path": "./node-demos-data/daily.txt",
"contentMode": "text",
"inputField": "daily",
"append": false,
"createDirs": true,
"encoding": "utf8"
},
"position": {
"x": 530,
"y": 23
}
},
{
"id": "w2",
"type": "storage.write-file",
"label": "Write weekly",
"category": "io",
"config": {
"path": "./node-demos-data/weekly.txt",
"contentMode": "text",
"inputField": "weekly",
"append": false,
"createDirs": true,
"encoding": "utf8"
},
"position": {
"x": 1060,
"y": 23
}
},
{
"id": "scan",
"type": "input.directory-scan",
"label": "Scan drop folder",
"category": "io",
"config": {
"path": "./node-demos-data",
"pattern": "*.txt",
"recursive": false,
"includeFileContents": false,
"contentEncoding": "utf8"
},
"position": {
"x": 1590,
"y": 23
}
},
{
"id": "read",
"type": "input.read-file",
"label": "Read daily",
"category": "io",
"config": {
"path": "./node-demos-data/daily.txt",
"contentType": "auto",
"encoding": "utf8"
},
"position": {
"x": 2120,
"y": 0
}
},
{
"id": "out",
"type": "utility.console",
"label": "Report feed",
"category": "utility",
"config": {
"message": "daily report says: {{ $json.data }}"
},
"position": {
"x": 2650,
"y": 0
}
}
],
"edges": [
{
"id": "e0",
"sourceNodeId": "seed",
"sourcePort": "output",
"targetNodeId": "w1",
"targetPort": "input"
},
{
"id": "e1",
"sourceNodeId": "w1",
"sourcePort": "output",
"targetNodeId": "w2",
"targetPort": "input"
},
{
"id": "e2",
"sourceNodeId": "w2",
"sourcePort": "output",
"targetNodeId": "scan",
"targetPort": "input"
},
{
"id": "e3",
"sourceNodeId": "scan",
"sourcePort": "output",
"targetNodeId": "read",
"targetPort": "input"
},
{
"id": "e4",
"sourceNodeId": "read",
"sourcePort": "output",
"targetNodeId": "out",
"targetPort": "input"
}
],
"triggers": [
{
"id": "t0",
"nodeId": "seed"
}
],
"meta": {
"snippets": [],
"source": "template-gallery",
"description": "The file trio on one flow: write two reports into ./node-demos-data, scan the folder for *.txt, and read one back — the drop-folder pattern behind most batch feeds."
}
} Generated from the verified demo corpus — this exact document seeds and runs on a fresh Flowdrome. Raw JSON: report-drop-write-scan-read.json.