Automate Singapore COE price analysis & purchase timing with GLM-4.5 AI predictions
Needs changesWhat this workflow does
This AI workflow has 15 nodes and runs on a schedule (cron 0 20 * * 3). Along the way it connects Google Sheets, Telegram and OpenRouter Chat Model. It also calls onemotoring.lta.gov.sg over HTTP.
How it runs
Trigger: On a schedule (cron 0 20 * * 3).
- Scrape COE Data from OneMotoring (HTTP Request): calls onemotoring.lta.gov.sg
- Extract COE Price Data (Code): runs custom JavaScript code
- Store in Google Sheets (Google Sheets): append
- Retrieve Historical COE Data (Google Sheets): uses Google Sheets
- Calculate Technical Indicators (Code): runs custom JavaScript code
- Prepare AI Prediction Prompt (Edit Fields (Set)): sets 1 field: predictionPrompt
- AI Agent: runs an AI agent, with model: OpenRouter Chat Model
- Generate Buy Recommendations (Code): runs custom JavaScript code
- Format HTML Report (Code): runs custom JavaScript code
- Check for Buy Opportunities (If): checks a condition and branches into true / false
…plus 3 more steps. See the full node list below.
Services it uses
HTTP calls to: onemotoring.lta.gov.sg
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent - COE Analysis (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent - COE Analysis (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Send Email
n8n-nodes-base.emailSend - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
From the author
Introduction Automates Singapore COE price tracking, predicts trends using AI, and recommends optimal car purchase timing. Scrapes LTA data biweekly, analyzes historical trends, forecasts next 6 bidding rounds, and sends alerts when buying windows…