Back to Templates

Track WTI crude futures from Oilprice.com and send Telegram alerts

Created by

Created by: Rahul Shah || rahulshah111
Rahul Shah

Last update

Last update a day ago

Categories

Share


Quick overview

This workflow runs on a weekday schedule, scrapes WTI crude oil futures prices from Reliable Sources, extracts and formats key contract data with JavaScript, and sends a compact market snapshot to a Telegram chat.

How it works

  1. Runs on a schedule at specified times on weekdays.
  2. Fetches the WTI futures webpage from Oilprice.com via an HTTP request.
  3. Parses the returned HTML to extract WTI (CL) contract symbols, contract months/years, prices, changes, and update times, then sorts and limits the list to the next 15 contracts.
  4. Aggregates the extracted contracts into a single dataset for reporting.
  5. Sends a formatted Telegram message that summarizes the market (all up/down/mixed), lists contracts with price and change, and includes range, average change, and a source link.

Setup

  1. Add a Telegram Bot token (Telegram API credentials) and set the target chat ID in the Telegram message action.
  2. Review and adjust the schedule times and timezone as needed for your market hours.
  3. Confirm the Oilprice.com URL is reachable from your n8n instance and update the source URL if the data location or page structure changes.