{
  "name": "CallHuman · Approve by phone",
  "nodes": [
    {
      "id": "b3f6b4ce-3626-496c-aa2f-cd35991151f5",
      "name": "Approval needed",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "webhookId": "aac38859-fb2b-4197-ac81-5760234fde4c",
      "parameters": {
        "httpMethod": "POST",
        "path": "approval",
        "options": {}
      }
    },
    {
      "id": "565ad624-5735-4c98-a471-f8106194cd55",
      "name": "Ask for approval",
      "type": "n8n-nodes-callhuman.callHuman",
      "typeVersion": 1,
      "position": [
        320,
        0
      ],
      "webhookId": "a82878cd-e37c-474e-ad90-361b9e678dea",
      "parameters": {
        "operation": "callAndWait",
        "phone": "={{ $json.body.phone }}",
        "message": "=Hi, this is Finance. A payment of {{ $json.body.amount }} euros to {{ $json.body.vendor }} is waiting for your approval.",
        "language": "en",
        "options": {
          "option": [
            {
              "label": "Approve",
              "id": "approve",
              "reply": "Approved. Thank you."
            },
            {
              "label": "Reject",
              "id": "reject",
              "reply": "Rejected. We'll let the team know."
            }
          ]
        }
      }
    },
    {
      "id": "465143b8-1858-4dcd-aa30-d6d357d26edc",
      "name": "Pay the invoice",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        700,
        -180
      ],
      "parameters": {}
    },
    {
      "id": "4d4a814e-a392-4896-a240-d022edd67f99",
      "name": "Notify the requester",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        700,
        0
      ],
      "parameters": {}
    },
    {
      "id": "da5fd41b-fcd1-4dfb-aa6f-95eaa4d2beab",
      "name": "Escalate by email",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        700,
        180
      ],
      "parameters": {}
    },
    {
      "id": "b77b57de-48f8-4dc6-a999-5808497d5231",
      "name": "How it works",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        -420
      ],
      "parameters": {
        "width": 520,
        "height": 260,
        "content": "## Approve by phone\nPOST `{ \"phone\": \"+34600111222\", \"amount\": \"4,800\", \"vendor\": \"Acme\" }`.\n\nThe approver says \"yes, go ahead\" or presses 1. Use it after a Slack or email request nobody answered."
      }
    }
  ],
  "connections": {
    "Approval needed": {
      "main": [
        [
          {
            "node": "Ask for approval",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ask for approval": {
      "main": [
        [
          {
            "node": "Pay the invoice",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notify the requester",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Escalate by email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  }
}
