Skip to main content

Predict housing prices with a simple neural network

Workflow preview

Workflow preview
100%
Predict housing prices with a simple neural network preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Predict Housing Prices with a Neural Network This n8n template demonstrates how a simple Multi Layer Perceptron (MLP) neural network can predict housing prices. The prediction is based on four key ...

Best for

  • Engineering automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

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

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Predict housing prices with a simple neural network
Workflow name
Predict housing prices with a simple neural network

Predict Housing Prices with a Neural Network

This n8n template demonstrates how a simple Multi-Layer Perceptron (MLP) neural network can predict housing prices. The prediction is based on four key features, processed through a three-layer model.

Input Layer

Receives the initial data via a webhook that accepts four query parameters.

Hidden Layer

Composed of two neurons. Each neuron calculates a weighted sum of the inputs, adds a bias, and applies the ReLU activation function.

Output Layer

Contains one neuron that calculates the weighted sum of the hidden layer's outputs, adds its bias, and returns the final price prediction.

Setup

This template works out-of-the-box and requires no special configuration or prerequisites. Just import the workflow to get started.

How to Use

Trigger this workflow by sending a GET request to the webhook endpoint. Include the house features as query parameters in the URL.

Endpoint: /webhook/regression/house/price

Query Parameters

  • square_feet: The total square footage of the house.
  • number_rooms: The total number of rooms.
  • age_in_years: The age of the house in years.
  • distance_to_city_in_km: The distance to the nearest city center in kilometers.

Example

Here’s an example curl request for a 1,500 sq ft, 3-room house that is 10 years old and 5 km from the city.

Request
curl "https://your-n8n-instance.com/webhook/regression/house/price?square_feet=1500&number_rooms=3&age_in_years=10&distance_to_city_in_km=5"

Response

JSON

{
    "price": 53095.832123960805
}

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 - Webhook

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

Block 2 - Number of Rooms

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

Block 3 - Distance to City

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

Block 4 - Age

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

Block 5 - Sticky Note

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

Block 6 - Square Feet

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

Block 7 - Sticky Note1

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

Block 8 - Sticky Note9

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

Block 9 - Sticky Note3

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

Block 10 - Output Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 11 - Respond to Webhook

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

Block 12 - Sticky Note4

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

Block 13 - Sticky Note2

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

Block 14 - Merge 1

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 15 - Merge 2

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 16 - Neuron 1 - Input 1 - Weight

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

Block 17 - Neuron 1 - Input 2- Weight

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

Block 18 - Neuron 1 - Input 3 - Weight

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

Block 19 - Neuron 1 - Input 4 - Weight

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

Block 20 - Neuron 1 - Input 1

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

Block 21 - Neuron 1 - Input 2

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

Block 22 - Neuron 1 - Input 3

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

Block 23 - Neuron 1 - Input 4

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

Block 24 - Neuron 2 - Input 1

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

Showing the first 24 of 43 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Predict housing prices with a simple neural network
Complexity advanced
Nodes 43
Categories Engineering, AI Summarization
Author Sean Spaniel
Published 30 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9089/9089.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 Predict housing prices with a simple neural network do?

Predict Housing Prices with a Neural Network This n8n template demonstrates how a simple Multi Layer Perceptron (MLP) neural network can predict housing prices. The prediction is based on four key ...

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 Engineering, AI Summarization use case.