Zum Inhalt springen
NEUMarktplatz und dein Team: Verkaufe, was du baust, und bekomm Pläne und Änderungen, die getestet sind, bevor du sie siehst. Neuigkeiten ansehen

Bibliothek / Datensynchronisierung & ETL

Datensynchronisierung & ETL

Inkompatible JSON-Datensätze über einen Webhook mit KI-gestütztem Feld-Mapping zusammenführen

Empfängt zwei JSON-Datensätze über einen POST-Webhook, ermittelt Feldzuordnungen mit einem KI- oder heuristischen Mapper, wendet Transformationsregeln an und gibt einen zusammengeführten Datensatz mit Prüfbericht zurück.

Was sie bewirkt

## AI-Powered Data Mapping Engine (v2) Receives two incompatible datasets, uses an AI (or heuristic) mapping step to infer field correspondences, generates executable transformation rules, applies them, and returns a unified merged dataset together with a full audit report. ### Request body (POST /webhook/ai-data-map) json { "datasetA": [ { ... }, ... ], "datasetB": [ { ... }, ... ], "hints": { "email_address": "email" }, // optional "targetSchema": ["id", "email", "full_name"], // optional "mergeStrategy": "left", // concat | left | right | inner | outer "joinKey": "id", // used when strategy ≠ concat "minConfidence": 0.55, "keepUnmapped": false, "simulateStatus": 200 // optional – forces httpbin status for testing } ### Response envelope json { "status": "mapped" | "error", "requestId": "...", "stats": { ... }, "data": [ ... ], // the merged rows "report": { ... } // full mapping audit } ### Nodes (1-line each) 1. Webhook – receives the two datasets + options 2. Code – Validate & Profile – schema profiling + config normalisation 3. IF – Valid? – early exit on bad payload 4. Wait – Pre AI 5. HTTP Request – AI Mapping API (or mock) 6. Code – Parse AI Mappings – normalises AI answer + heuristic fallback 7. IF – AI OK? 8. Code – Generate Transform Rules 9. Code – Apply Mapping & Merge – real join strategies 10. Code – Build Mapping Report 11. Code – Finalize Output 12. Respond to Webhook 13. Error path → structured error response Tip for beginners: Record a short YouTube walkthrough of the request/response and paste the link in a sticky note using the official format.

Die Schritte

  1. Code - Error (AI)
  2. Code - Error (Validation)
  3. Respond to Webhook
  4. Code - Finalize Output
  5. Code - Build Mapping Report
  6. Code - Apply Mapping & Merge
  7. Code - Generate Transform Rules
  8. IF - AI Response OK?
  9. Code - Parse AI Mappings
  10. HTTP Request - AI Mapping API
  11. Wait - Pre AI Call
  12. IF - Valid Payload?
  13. Code - Validate & Profile
  14. Webhook - Submit Datasets

Ähnliche Automatisierungen