{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Deal notes — Notion",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "seed",
      "type": "input.inject",
      "label": "Sync tick",
      "category": "trigger",
      "config": {
        "contentType": "application/json",
        "payload": {}
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "q",
      "type": "storage.notion",
      "label": "Query deals",
      "category": "io",
      "config": {
        "credentialId": "",
        "accessToken": "${credential.notion.token}",
        "operation": "queryDatabase",
        "databaseId": "YOUR_DATABASE_ID",
        "filter": {},
        "sorts": [],
        "returnAll": false,
        "limit": 10,
        "notionVersion": "2022-06-28",
        "baseUrl": "",
        "timeoutMs": 15000
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Pipeline",
      "category": "utility",
      "config": {
        "message": "open deals: {{ $json }}"
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "seed",
      "sourcePort": "output",
      "targetNodeId": "q",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "q",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "seed"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "SETUP: add a “notion” credential in Admin → Credentials, then Test sends for real — the node is pre-wired with ${credential.…} references. Until then this demo saves and verifies but the send will report the missing credential. Queries the Deals database for open items."
  }
}