{
  "name": "CallHuman · Read a verification code",
  "nodes": [
    {
      "id": "04596e8a-3da6-4de2-ad01-77a29503d025",
      "name": "Code requested",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "webhookId": "ca1d8f28-fc13-4cd2-af29-29eec47f0cd7",
      "parameters": {
        "httpMethod": "POST",
        "path": "voice-code",
        "options": {}
      }
    },
    {
      "id": "a04f92ee-98c8-4970-a700-d0d519acde1f",
      "name": "Read the code",
      "type": "n8n-nodes-callhuman.callHuman",
      "typeVersion": 1,
      "position": [
        320,
        0
      ],
      "webhookId": "6e23c5bf-061c-43e1-a9a7-d3e48ebe4610",
      "parameters": {
        "operation": "callAndWait",
        "phone": "={{ $json.body.phone }}",
        "message": "=Your verification code is {{ $json.body.code.split('').join(' ') }}. Again: {{ $json.body.code.split('').join(' ') }}.",
        "language": "en",
        "options": {}
      }
    },
    {
      "id": "469ee676-3cff-48eb-ad57-21848c8ba2b0",
      "name": "Code delivered",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        700,
        -90
      ],
      "parameters": {}
    },
    {
      "id": "4c5925bf-6d31-47b7-a79d-692328b29980",
      "name": "Fall back to SMS",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        700,
        90
      ],
      "parameters": {}
    },
    {
      "id": "51cbfcfe-9554-462d-a385-c58a18a6ba0a",
      "name": "How it works",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        -420
      ],
      "parameters": {
        "width": 520,
        "height": 260,
        "content": "## Voice verification code\nPOST `{ \"phone\": \"+14155552671\", \"code\": \"4829\" }`.\n\nNo options: a one-way message read once, with no retries, so a code is never read after it expired. Outputs: **Done** and **No answer**."
      }
    }
  ],
  "connections": {
    "Code requested": {
      "main": [
        [
          {
            "node": "Read the code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read the code": {
      "main": [
        [
          {
            "node": "Code delivered",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Fall back to SMS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  }
}
