{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Appointment reminder — WhatsApp",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "seed",
      "type": "input.inject",
      "label": "Upcoming appointment",
      "category": "trigger",
      "config": {
        "contentType": "application/json",
        "payload": {
          "to": "15551234567",
          "when": "tomorrow 14:00"
        }
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "send",
      "type": "output.whatsapp",
      "label": "Send reminder",
      "category": "output",
      "config": {
        "credentialId": "",
        "accessToken": "${credential.whatsapp.accessToken}",
        "phoneNumberId": "${credential.whatsapp.phoneNumberId}",
        "to": "{{ $json.to }}",
        "messageMode": "text",
        "text": "Reminder: your appointment is {{ $json.when }}. Reply CHANGE to reschedule.",
        "baseUrl": "",
        "timeoutMs": 15000
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "out",
      "type": "utility.console",
      "label": "Sent",
      "category": "utility",
      "config": {
        "message": "reminder sent to {{ $json.to }}"
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "seed",
      "sourcePort": "output",
      "targetNodeId": "send",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "send",
      "sourcePort": "output",
      "targetNodeId": "out",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "seed"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "SETUP: add a “whatsapp” 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. Reminds the customer a day ahead via the WhatsApp Business API."
  }
}