Skip to main content

Predict and Forecast HDB Flat Prices with GPT-4o and Google Sheets Analytics

Workflow preview

Workflow preview
100%
Predict and Forecast HDB Flat Prices with GPT-4o and Google Sheets Analytics preview
Open on n8n.io

Important notice

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

1. Workflow Overview

How It Works The workflow runs on a monthly trigger to collect both current year and multi year historical HDB data. Once fetched, all datasets are merged with aligned fields to produce a unified t...

Best for

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

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.merge, n8n-nodes-base.code, n8n-nodes-base.aggregate, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Cheng Siong Chin.

Original n8n.io source

1.1 Workflow description

Title
Predict and Forecast HDB Flat Prices with GPT-4o and Google Sheets Analytics
Workflow name
Predict and Forecast HDB Flat Prices with GPT-4o and Google Sheets Analytics

How It Works

The workflow runs on a monthly trigger to collect both current-year and multi-year historical HDB data. Once fetched, all datasets are merged with aligned fields to produce a unified table. The system then applies cleaning and normalization rules to ensure consistent scales and comparable values. After preprocessing, it performs pattern mining, anomaly checks, and time-series analysis to extract trends and forecast signals. An AI agent, integrating OpenAI GPT-4, statistical tools, and calculator nodes, synthesizes these results into coherent insights. The final predictions are formatted and automatically written to Google Sheets for reporting and downstream use.

Setup Steps

  1. Configure fetch nodes to pull current-year HDB data and three years of historical records.
  2. Align and map column names across all datasets.
  3. Set normalization and standardization parameters in the cleaning node.
  4. Add your OpenAI API key (GPT-4) and link the model, forecasting tool, and calculator nodes.
  5. Authorize Google Sheets and configure sheet and cell mappings for automated export.

Prerequisites

  • Historical data source with API access (3+ years of records)
  • OpenAI API key for GPT-4 model
  • Google Sheets account with API credentials
  • Basic understanding of time series data

Use Cases

Real Estate: Forecast property prices using multi-year historical HDB/market data with confidence intervals Finance: Predict market trends by aggregating years of transaction or pricing records

Customization

Data Source: Replace HDB/fetch nodes with stock prices, sensor data, sales records, or any historical dataset Analysis Window: Adjust years fetched (2-5 years) based on data availability and prediction horizon

Benefits

Automation: Monthly scheduling eliminates manual data gathering and analysis Consolidation: Merges fragmented year-by-year data into unified historical view

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 - Monthly Data Collection Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Workflow Configuration

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

Block 3 - Fetch Current Year HDB Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 4 - Fetch Historical Data Year 1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 5 - Fetch Historical Data Year 2

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 6 - Fetch Historical Data Year 3

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 7 - Merge All Historical Data

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

Block 8 - Data Cleaning and Normalization

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

Block 9 - Statistical Pattern Mining

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

Block 10 - Time Series Analysis

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

Block 11 - Aggregate Statistical Features

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

Block 12 - AI Forecasting Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3

Block 13 - OpenAI GPT-4 Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 14 - Statistical Forecasting Tool

Type / Role
@n8n/n8n-nodes-langchain.toolCode - toolCode
Config choices
Version 1.3

Block 15 - Calculator Tool

Type / Role
@n8n/n8n-nodes-langchain.toolCalculator - toolCalculator
Config choices
Version 1

Block 16 - Structured Forecast Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 17 - Format Forecast Results

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

Block 18 - Save to Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 19 - Sticky Note

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

Block 20 - Sticky Note1

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

Block 21 - Sticky Note2

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

Block 22 - Sticky Note3

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

Block 23 - Sticky Note4

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

Block 24 - Sticky Note5

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

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

3. Summary Table

Workflow Predict and Forecast HDB Flat Prices with GPT-4o and Google Sheets Analytics
Complexity advanced
Nodes 28
Categories Market Research, AI Summarization
Author Cheng Siong Chin
Published 16 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10891/10891.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 and Forecast HDB Flat Prices with GPT-4o and Google Sheets Analytics do?

How It Works The workflow runs on a monthly trigger to collect both current year and multi year historical HDB data. Once fetched, all datasets are merged with aligned fields to produce a unified t...

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