{
  "name": "pingwa approval step",
  "nodes": [
    {
      "parameters": {},
      "id": "01308661-fb89-4fd0-aff7-33f2bc35f197",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [0, 0]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://pingwa.dev/v1/ask",
        "authentication": "none",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Bearer {{ $env.PINGWA_KEY }}"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"text\": \"Approve this step?\", \"buttons\": [\"approve\", \"reject\"], \"timeout\": 90}",
        "options": {
          "timeout": 95000
        }
      },
      "id": "fe9d81fd-fbd3-430d-9ec0-b0326f99e17f",
      "name": "Ask on WhatsApp",
      "onError": "continueErrorOutput",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [220, 0]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict"
          },
          "conditions": [
            {
              "id": "63502ea2-71aa-4862-ae5b-153b84c2dfc9",
              "leftValue": "={{ $json.reply.button_id }}",
              "rightValue": "b0",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "89417da2-0370-4201-8254-71a2bf39654f",
      "name": "Approved?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [440, 0]
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Ask on WhatsApp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ask on WhatsApp": {
      "main": [
        [
          {
            "node": "Approved?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  }
}
