Templates / Singapore Lottery Predictive Analytics and Pattern Mining System

Singapore Lottery Predictive Analytics and Pattern Mining System

Ready for 3.0

by Cheng Siong Chin ✓ · 477 views · created 2025-11-16 · Engineering, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 24 nodes and runs on a schedule (every day at 09:00). Along the way it connects OpenAI Chat Model.

How it runs

Trigger: On a schedule (every day at 09:00).

  1. Workflow Configuration (Edit Fields (Set)): sets 4 fields: totoApiUrl, fourDApiUrl, totoHistoricalUrl…
  2. Fetch TOTO Draw Data (HTTP Request): calls an HTTP API
  3. Fetch 4D Draw Data (HTTP Request): calls an HTTP API
  4. Fetch Historical TOTO Dataset (HTTP Request): calls an HTTP API
  5. Fetch Historical 4D Dataset (HTTP Request): calls an HTTP API
  6. Merge TOTO Data (Aggregate): combines items into one
  7. Merge 4D Data (Aggregate): combines items into one
  8. Statistical Pattern Mining - TOTO (Code): runs custom JavaScript code
  9. Check Data Quality (If): checks a condition and branches into true / false
  10. Statistical Pattern Mining - 4D (Code): runs custom JavaScript code

…plus 8 more steps. See the full node list below.

Services it uses

OpenAI Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

How It Works A scheduled trigger initiates automated retrieval of TOTO/4D data, including both current and historical records. The datasets are merged and validated to ensure structural consistency before branching into parallel analytical pipelines. One…

Excerpt from Cheng Siong Chin's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.