{
  "name": "Fillo client intake \u2014 Postgres review queue",
  "nodes": [
    {
      "parameters": {
        "content": "## Setup\n1. Install n8n-nodes-fillo.\n2. Run n8n-client-intake.sql in your destination database.\n3. Select the Fillo and Postgres credentials, and your form.\n4. Publish, submit one response, then check the queue.\n\nGuide: https://fillo.so/guides/n8n-client-intake\n\nThe trigger acknowledges receipt immediately. Inspect failed n8n executions and retry after fixing the destination. This workflow stores answers and protected file references; it does not download files or send notifications.",
        "height": 380,
        "width": 480
      },
      "id": "1a397ca4-254c-4ed9-b694-46d5e342490d",
      "name": "Read before publishing",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-320, -320]
    },
    {
      "parameters": {
        "formId": "",
        "events": ["response.created", "response.updated"]
      },
      "id": "5f795c45-4614-4c86-9de0-c1dbbcc315d9",
      "name": "Fillo Trigger",
      "type": "n8n-nodes-fillo.filloTrigger",
      "typeVersion": 1,
      "position": [0, 160]
    },
    {
      "parameters": {
        "operation": "executeQuery",
        "query": "SELECT * FROM fillo_intake.accept_response($1::jsonb);",
        "options": {
          "queryReplacement": "={{ [JSON.stringify($json)] }}"
        }
      },
      "id": "cb604aa3-503f-432f-9821-cbfdf913f19b",
      "name": "Save intake atomically",
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 2.6,
      "position": [320, 160],
      "retryOnFail": true,
      "maxTries": 3,
      "waitBetweenTries": 1000
    }
  ],
  "connections": {
    "Fillo Trigger": {
      "main": [
        [
          {
            "node": "Save intake atomically",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "saveDataErrorExecution": "all",
    "saveDataSuccessExecution": "none",
    "saveManualExecutions": false
  },
  "active": false,
  "pinData": {}
}
