{
  "name": "Create an offline DIGIPIN microservice API for precise location mapping in India",
  "nodes": [
    {
      "id": "882aa556-8ea2-4582-8230-7b0e13ad2fd1",
      "name": "Respond to Webhook - Success",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        340,
        -140
      ]
    },
    {
      "id": "368240b0-cecf-46e7-9509-bfcb1afe7610",
      "name": "Respond to Webhook - Error",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        340,
        60
      ]
    },
    {
      "id": "b6c70cd6-3d5f-4215-989c-8a5e6a896564",
      "name": "Switch - Check for Success",
      "type": "n8n-nodes-base.switch",
      "position": [
        120,
        -40
      ]
    },
    {
      "id": "3a7dc7a2-9d19-467c-b651-143187d852d9",
      "name": "DIGIPIN_Generation_Code",
      "type": "n8n-nodes-base.code",
      "position": [
        -100,
        -40
      ]
    },
    {
      "id": "33aab4da-4b77-44fa-85c4-0ed165b416d3",
      "name": "DIGIPIN_Decode_Code",
      "type": "n8n-nodes-base.code",
      "position": [
        -100,
        420
      ]
    },
    {
      "id": "6da5b090-caf7-4a8b-a254-a90ac9b97610",
      "name": "Encode_Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -320,
        -40
      ]
    },
    {
      "id": "99a30d16-696a-4c2c-941d-7b66a6591d54",
      "name": "Decode_Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -320,
        420
      ]
    },
    {
      "id": "ab871baf-aae7-4060-83af-7794974dce18",
      "name": "Switch 2 - Check for Success1",
      "type": "n8n-nodes-base.switch",
      "position": [
        120,
        420
      ]
    },
    {
      "id": "64409e6c-e4aa-41b2-abcf-a016e729ea37",
      "name": "Respond to Webhook - Success 2",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        340,
        320
      ]
    },
    {
      "id": "d37184ce-7060-4d06-b039-dd8572e7d3e8",
      "name": "Respond to Webhook - Error 2",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        340,
        520
      ]
    },
    {
      "id": "8d745b4f-f993-4865-a96f-e3f1e28a0cc2",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        360
      ],
      "parameters": {
        "width": 920,
        "height": 320,
        "content": "## Example usage \n\nGenerate a DIGIPIN:\n```\ncurl --request GET \\\n  --url 'https://n8n.example.in/webhook/generate-digipin?lat=27.175063&lon=78.042169'\n```\n\nDecode a DIGIPIN:\n```\ncurl --request GET \\\n  "
      }
    },
    {
      "id": "3cb47a09-ce41-4d2d-a413-885510ebda96",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        -160
      ],
      "parameters": {
        "width": 920,
        "height": 440,
        "content": "## DIGIPIN Generator and Decoder\n\nThis n8n workflow lets you **generate and decode DIGIPINs** using only JavaScript - no external APIs involved.\n\nDIGIPIN is India Post’s geolocation code system that e"
      }
    }
  ],
  "connections": {
    "Decode_Webhook": {
      "main": [
        [
          {
            "node": "DIGIPIN_Decode_Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Encode_Webhook": {
      "main": [
        [
          {
            "node": "DIGIPIN_Generation_Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DIGIPIN_Decode_Code": {
      "main": [
        [
          {
            "node": "Switch 2 - Check for Success1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DIGIPIN_Generation_Code": {
      "main": [
        [
          {
            "node": "Switch - Check for Success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch - Check for Success": {
      "main": [
        [
          {
            "node": "Respond to Webhook - Success",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Respond to Webhook - Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch 2 - Check for Success1": {
      "main": [
        [
          {
            "node": "Respond to Webhook - Success 2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Respond to Webhook - Error 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}