Singapore Lottery Predictive Analytics and Pattern Mining System
Ready for 3.0What 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).
- Workflow Configuration (Edit Fields (Set)): sets 4 fields: totoApiUrl, fourDApiUrl, totoHistoricalUrl…
- Fetch TOTO Draw Data (HTTP Request): calls an HTTP API
- Fetch 4D Draw Data (HTTP Request): calls an HTTP API
- Fetch Historical TOTO Dataset (HTTP Request): calls an HTTP API
- Fetch Historical 4D Dataset (HTTP Request): calls an HTTP API
- Merge TOTO Data (Aggregate): combines items into one
- Merge 4D Data (Aggregate): combines items into one
- Statistical Pattern Mining - TOTO (Code): runs custom JavaScript code
- Check Data Quality (If): checks a condition and branches into true / false
- Statistical Pattern Mining - 4D (Code): runs custom JavaScript code
…plus 8 more steps. See the full node list below.
Services it uses
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)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Aggregate
n8n-nodes-base.aggregate - Code
n8n-nodes-base.code - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Code Tool
@n8n/n8n-nodes-langchain.toolCode - AI Agent
@n8n/n8n-nodes-langchain.agent - Calculator
@n8n/n8n-nodes-langchain.toolCalculator - If
n8n-nodes-base.if
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…