Skip to main content

Transform and validate webhook records with configurable type conversion

Workflow preview

Workflow preview
100%
Transform and validate webhook records with configurable type conversion preview
Open on n8n.io

1. Workflow Overview

A self contained data transformation workflow that runs entirely inside n8n. No external APIs, no credentials, no third party services required. Send records via webhook, get transformed and valida...

Best for

  • Document Extraction automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.respondtowebhook

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Florian Eiche.

Original n8n.io source

1.1 Workflow description

Title
Transform and validate webhook records with configurable type conversion
Workflow name
Transform and validate webhook records with configurable type conversion

A self-contained data transformation workflow that runs entirely inside n8n. No external APIs, no credentials, no third-party services required. Send records via webhook, get transformed and validated data back.

Unlike CRM-specific import workflows, this template is a standalone data transformer you can place in front of any system: ERP, CRM, database, or API.

Who is this for?

Teams that regularly import data from external sources (suppliers, partners, legacy systems) and need to normalize field names, convert types, and validate records before loading into any target system.

How it works

  1. Receive Data: A webhook accepts a POST request with an array of records (JSON) or a single record
  2. Configure Mapping: A Set node defines the field mapping rules, source field, target field, data type, default value, and whether the field is required
  3. Transform Records: A Code node applies all mappings: renames fields, converts types (string, number, boolean, date with locale support), fills in defaults, and validates required fields
  4. Return Result: The webhook responds with transformed records and a validation report listing any errors per row

Key features

  • Zero dependencies: No credentials, no external services needed
  • Locale-aware type conversion: Handles comma decimals (12,50), German dates (DD.MM.YYYY), and ja/nein booleans
  • Validation report: Returns per-row errors for required fields and failed type conversions
  • Flexible input: Accepts { records: [...] } arrays or single objects

Setup

  1. Activate the workflow
  2. Edit the Configure Field Mapping node to define your mappings
  3. POST your data to the webhook URL

How to customize

  • Add or remove field mappings in the Set node
  • Set removeUnmappedFields to true to strip fields not in the mapping
  • Set trimStrings to true to auto-trim whitespace
  • Set emptyStringToNull to convert empty strings to null values
  • Adjust dateInputFormat, dateOutputFormat, and decimalSeparator for your locale
  • Connect downstream nodes (database, API, email) after the response to process the output

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Receive Data

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 7 - Configure Field Mapping

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Transform Records

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Return Transformed Data

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.5

3. Summary Table

Workflow Transform and validate webhook records with configurable type conversion
Complexity intermediate
Nodes 9
Categories Document Extraction
Author Florian Eiche
Published 14 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14034/14034.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Transform and validate webhook records with configurable type conversion do?

A self contained data transformation workflow that runs entirely inside n8n. No external APIs, no credentials, no third party services required. Send records via webhook, get transformed and valida...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction use case.