Data Sync & ETL
Merge incompatible JSON datasets through a webhook with AI field mapping
Receives two JSON datasets over a POST webhook, infers field correspondences with an AI or heuristic mapper, applies transformation rules, and returns a merged dataset with an audit report.
What it does
## 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.
The steps
- Code - Error (AI)
- Code - Error (Validation)
- Respond to Webhook
- Code - Finalize Output
- Code - Build Mapping Report
- Code - Apply Mapping & Merge
- Code - Generate Transform Rules
- IF - AI Response OK?
- Code - Parse AI Mappings
- HTTP Request - AI Mapping API
- Wait - Pre AI Call
- IF - Valid Payload?
- Code - Validate & Profile
- Webhook - Submit Datasets
Similar automations
Data Sync & ETLMerge RSS feeds and Hugging Face datasets into a cleaned marketing CSV18 stepsBuilding Blocks & UtilitiesJoin Different Datasets with the Merge Node10 stepsDocuments, PDF & OCRMerge Two Remote PDFs with a PDF Merge API34 stepsReports, Analytics & DashboardsCompare Two MySQL Order Datasets5 steps