{
  "name": "ScriptureFlow - Verse Lookup Webhook",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "scriptureflow-verse-lookup",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "f8520fe9-6848-4910-bf4f-406a1bb5cd12",
      "name": "Verse Lookup Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "webhookId": "a7ac66a8-1230-4ecf-a46c-42c01ac9a20d",
      "notes": "Send version and reference as query parameters or JSON body fields. Defaults: en-kjv and John 3:16."
    },
    {
      "parameters": {
        "url": "={{ 'https://scriptureflow-api-preview.pages.dev/api/verse?version=' + encodeURIComponent($node[\"Verse Lookup Webhook\"].json.query?.version || $node[\"Verse Lookup Webhook\"].json.body?.version || 'en-kjv') + '&reference=' + encodeURIComponent($node[\"Verse Lookup Webhook\"].json.query?.reference || $node[\"Verse Lookup Webhook\"].json.body?.reference || 'John 3:16') }}",
        "options": {
          "response": {
            "response": {
              "neverError": true,
              "responseFormat": "json"
            }
          }
        }
      },
      "id": "b70d0ed1-e5aa-4bf6-a017-c9b90d71b948",
      "name": "Look Up ScriptureFlow Verse",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        260,
        0
      ],
      "notes": "Uses exact caller-supplied attribution or safe defaults. API error JSON is preserved instead of replaced with verse text."
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ $json }}",
        "options": {}
      },
      "id": "d3a4b2bf-0f43-46c1-822f-c568d8507732",
      "name": "Return ScriptureFlow JSON",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.4,
      "position": [
        520,
        0
      ],
      "notes": "Returns the ScriptureFlow response unchanged, including version, reference, attribution, and any API error."
    }
  ],
  "pinData": {},
  "connections": {
    "Verse Lookup Webhook": {
      "main": [
        [
          {
            "node": "Look Up ScriptureFlow Verse",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Look Up ScriptureFlow Verse": {
      "main": [
        [
          {
            "node": "Return ScriptureFlow JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "61cb667c-e06f-41ac-be00-a96e5f9ea94d",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "tags": []
}
