{
  "id": "clinic-001-candidate",
  "name": "Workflow Clinic 001 - Release candidate",
  "active": false,
  "nodes": [
    {
      "id": "candidate-webhook",
      "name": "Public Intake",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [-600, 0],
      "parameters": {
        "httpMethod": "POST",
        "path": "synthetic-client-intake",
        "authentication": "none",
        "responseMode": "lastNode"
      }
    },
    {
      "id": "candidate-normalize",
      "name": "Read Callback Target",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3,
      "position": [-340, 0],
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "callback-url",
              "name": "callbackUrl",
              "type": "string",
              "value": "={{ $json.body.callbackUrl }}"
            }
          ]
        }
      }
    },
    {
      "id": "candidate-callback",
      "name": "Send Callback",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [-80, 0],
      "parameters": {
        "method": "POST",
        "url": "={{ $json.callbackUrl }}",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer SYNTHETIC_DEMO_TOKEN_DO_NOT_USE"
            }
          ]
        }
      }
    },
    {
      "id": "candidate-agent",
      "name": "Draft Client Reply",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2,
      "position": [180, 0],
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.body.message }}"
      }
    },
    {
      "id": "candidate-email",
      "name": "Send Client Email",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2,
      "position": [180, 180],
      "parameters": {
        "fromEmail": "clinic@example.test",
        "toEmail": "={{ $json.body.email }}",
        "subject": "Synthetic clinic reply",
        "text": "={{ $json.output }}"
      },
      "credentials": {
        "smtp": {
          "id": "synthetic-smtp",
          "name": "Synthetic SMTP"
        }
      }
    }
  ],
  "connections": {
    "Public Intake": { "main": [[{ "node": "Read Callback Target", "type": "main", "index": 0 }]] },
    "Read Callback Target": { "main": [[{ "node": "Send Callback", "type": "main", "index": 0 }]] },
    "Send Callback": { "main": [[{ "node": "Draft Client Reply", "type": "main", "index": 0 }]] },
    "Send Client Email": { "ai_tool": [[{ "node": "Draft Client Reply", "type": "ai_tool", "index": 0 }]] }
  },
  "settings": {}
}
