Skip to main content

Automated gold price threshold alerts via LINE with web scraping

Workflow preview

Workflow preview
100%
Automated gold price threshold alerts via LINE with web scraping preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Gold Price Alert This workflow template, "Gold Price Alert," is designed to monitor gold prices at regular intervals and send real time notifications via LINE when the price exceeds a specified thr...

Best for

  • Crypto Trading automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.if, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.html

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by [email protected].

Original n8n.io source

1.1 Workflow description

Title
Automated gold price threshold alerts via LINE with web scraping
Workflow name
Automated gold price threshold alerts via LINE with web scraping

Gold Price Alert

This workflow template, "Gold Price Alert," is designed to monitor gold prices at regular intervals and send real-time notifications via LINE when the price exceeds a specified threshold. By leveraging the power of web scraping and automated alerts, this template ensures you stay informed about significant changes in gold prices without manual intervention.

Whether you're an investor, trader, or simply someone interested in tracking gold prices, this workflow provides a reliable and customizable solution for staying updated.

Who Is This Template For?

  • Investors & Traders: Who want to monitor gold prices and receive alerts when the price reaches a specific threshold.
  • Financial Analysts: Looking for automated tools to track commodity prices. Businesses: Operating in industries where gold prices impact operations or profitability.
  • Automation Enthusiasts: Seeking to build workflows that combine web scraping, data processing, and messaging platforms.

What Problem Does This Workflow Solve?

Tracking gold prices manually can be time-consuming and prone to oversight, especially if you’re monitoring multiple sources or need alerts for specific thresholds.

This workflow solves that problem by:

  • Automatically checking gold prices every 6 hours using a schedule trigger.
  • Extracting the latest price from a trusted source (e.g., Gold Traders Association ).
  • Sending instant notifications via LINE when the price exceeds a predefined threshold (e.g., 52,300 THB).
  • Reducing the need for constant manual checks while ensuring timely updates.

What This Workflow Does

  1. Scheduled Trigger: The workflow is triggered every 6 hours to check the current gold price.
  2. Fetch Webpage Content: It retrieves the HTML content of the webpage displaying the latest gold prices.
  3. Extract Price Data: Using CSS selectors, the workflow extracts the relevant price data (e.g., buying price) from the HTML content.
  4. Filter Prices: The extracted price is converted into a numeric format and compared against a predefined threshold (e.g., 52,300 THB). Alerts are only sent if the price exceeds this value.
  5. Send Notification via LINE: If the condition is met, the workflow sends a notification to your LINE account with the current gold price.

Setup Guide

Pre-Requisites

  • Access to the LINE Developers Console to configure your API Access Token
  • Basic knowledge of HTML and CSS selectors for extracting data from webpages.
  • Familiarity with n8n workflows and JSON formatting.

Step-by-Step Setup

  1. Configure the Schedule Trigger: Set the interval to 6 hours or adjust it based on your preference.
  2. Set Up Webpage Fetching: Update the URL in the HTTP Request node to point to the webpage containing the gold price data.
  3. Extract Price Data: Use the HTML Extractor node to specify the CSS selector for the price element (e.g., #DetailPlace_uc_goldprices1_lblBLBuy).
  4. Set Price Threshold: Modify the threshold value in the If node to match your desired alert level (e.g., 52,300 THB).
  5. Configure LINE Push API: Replace the placeholder to field in the Send Line Message node with your LINE user ID to ensure notifications are sent to the correct account.

Test the Workflow:

  • Run the workflow manually to verify that it fetches the price, evaluates the condition, and sends notifications correctly.

How to Customize This Workflow to Your Needs

  • Change the Interval: Adjust the schedule trigger to check prices more or less frequently (e.g., hourly or daily).
  • Monitor Multiple Prices: Extend the workflow to extract and compare additional price points (e.g., selling price, international rates).
  • Integrate Other Platforms: Replace the LINE notification with integrations for Telegram, email, or SMS.
  • Expand Use Cases: Adapt the workflow to track other commodities or financial indicators by modifying the webpage URL and CSS selectors.

Why Use This Template?

  • Real-Time Alerts: Stay informed about significant changes in gold prices without manual intervention.
  • Customizable Thresholds: Set your own price thresholds to receive alerts tailored to your needs.
  • Easy Integration: Seamlessly integrates with LINE for quick setup and minimal maintenance.
  • Scalable: Easily extend the workflow to monitor multiple data points or integrate with other platforms.

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 - Schedule Trigger

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

Block 2 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 3 - Sticky Note

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

Block 4 - Sticky Note1

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

Block 5 - Sticky Note2

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

Block 6 - Get Webpage

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

Block 7 - Extract Price

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

Block 8 - Sticky Note3

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

Block 9 - Send Line Message

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

Block 10 - Sticky Note4

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

3. Summary Table

Workflow Automated gold price threshold alerts via LINE with web scraping
Complexity intermediate
Nodes 10
Categories Crypto Trading
Author [email protected]
Published 22 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6265/6265.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 Automated gold price threshold alerts via LINE with web scraping do?

Gold Price Alert This workflow template, "Gold Price Alert," is designed to monitor gold prices at regular intervals and send real time notifications via LINE when the price exceeds a specified thr...

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 Crypto Trading use case.