From 4b7e201b916f1566d69a92279734178f6c01fe49 Mon Sep 17 00:00:00 2001 From: rogalik27 Date: Wed, 24 Jun 2026 14:48:56 +0200 Subject: [PATCH] Phase 4: wire demo lead forms to live n8n webhook - demo-tier-a / demo-tier-b: forms POST JSON to /webhook/lead-intake (hidden client_id + source, named fields), async submit with success/error toast. - lead-intake webhook: enable CORS (allowedOrigins=*) so the static demos (different origin) can submit; re-export n8n/lead-intake.json. Co-Authored-By: Claude Opus 4.8 --- n8n/lead-intake.json | 4 ++- templates/landing/demo-tier-a/index.html | 43 ++++++++++++++++++++---- templates/landing/demo-tier-b/index.html | 43 ++++++++++++++++++++---- 3 files changed, 77 insertions(+), 13 deletions(-) diff --git a/n8n/lead-intake.json b/n8n/lead-intake.json index ab5ccd1..14391f1 100644 --- a/n8n/lead-intake.json +++ b/n8n/lead-intake.json @@ -6,7 +6,9 @@ "httpMethod": "POST", "path": "lead-intake", "responseMode": "onReceived", - "options": {} + "options": { + "allowedOrigins": "*" + } }, "id": "f60ee339-9809-4962-9c5d-68ad9a5ec452", "name": "Webhook", diff --git a/templates/landing/demo-tier-a/index.html b/templates/landing/demo-tier-a/index.html index 2f083fa..1990b9e 100644 --- a/templates/landing/demo-tier-a/index.html +++ b/templates/landing/demo-tier-a/index.html @@ -247,14 +247,16 @@

Frage stellen oder Rückruf anfordern

Schreib uns kurz — wir melden uns am selben Tag.

- -
-
-
+ + + + +
+
- +
-
+
✓ Danke! Demo-Formular — in der Live-Version landet deine Anfrage automatisch im CRM.

Mit dem Absenden stimmst du der Verarbeitung deiner Angaben zur Kontaktaufnahme zu.

@@ -280,5 +282,34 @@
© 2026 Schnittpunkt Barbershop · Demo-Seite · Impressum · Datenschutz
+ diff --git a/templates/landing/demo-tier-b/index.html b/templates/landing/demo-tier-b/index.html index 3ab6275..9c11807 100644 --- a/templates/landing/demo-tier-b/index.html +++ b/templates/landing/demo-tier-b/index.html @@ -279,14 +279,16 @@

Rezept einreichen oder Frage stellen

Schreiben Sie uns — wir melden uns zeitnah und vertraulich zurück.

- - -
-
+ + + + +
+
- +
-
+
✓ Danke! Demo-Formular — in der Live-Version landet Ihre Anfrage verschlüsselt im Praxis-CRM.
@@ -319,5 +321,34 @@
Demo — in der Live-Version KI-gestützt (Claude)
+