Automate Website Stock Checks with n8n and Discord Alerts

Tired of manually checking product stock status and risking missed sales? This n8n workflow automates hourly website stock monitoring and sends real-time Discord alerts when products go out of stock, saving time and preventing lost revenue.
cron
httpRequest
if
+1
Workflow Identifier: 2442
NODES in Use: Cron, HTTP Request, IF, Discord

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Workflow Does

This workflow checks if a product is out of stock on a website every hour and sends a message to a Discord channel.
It helps avoid manual checking and prevents selling items that are not available.
The workflow makes sure the sales team always knows the current stock status.


Tools and Services Used

  • n8n platform: Runs the automation and links nodes.
  • Cron node: Triggers the workflow every hour.
  • HTTP Request node: Requests the product page HTML as text.
  • IF node: Checks if “Out Of Stock” phrase is present in the HTML.
  • Discord node: Sends alert messages to a Discord channel via webhook.

How the Workflow Works (Inputs → Process → Output)

Inputs:

  • Product page URL to monitor stock status.
  • Discord webhook URL to send alerts.

Processing Steps:

  • Cron node starts workflow every hour.
  • HTTP Request node fetches the product page HTML as raw text.
  • IF node searches the HTML text for the phrase “Out Of Stock.”
  • The workflow splits based on IF result:
    • If true, it goes to Discord node that sends “Out of Stock” message.
    • If false, it goes to Discord node that sends “In Stock” message.

Output:

  • Discord messages sent to notify about current stock status.

Who Should Use This Workflow

Anyone running an online store with limited stock and wanting to avoid manual stock checks.
Ideal for small teams who rely on Discord for communication.


Beginner Step-by-Step: How to Use This Workflow in n8n Production

Step 1: Import Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open the n8n editor.
  3. Choose “Import from File” and select the downloaded workflow.

Step 2: Configure Credentials and URLs

  1. Enter your Discord webhook URLs in the Discord nodes.
  2. Update the HTTP Request node with the exact product page URL to check.
  3. Make sure the phrase “Out Of Stock” in the IF node matches exactly what the website uses.

Step 3: Test Workflow

  1. Run the workflow manually in n8n once.
  2. Check if Discord gets the correct message based on stock availability.

Step 4: Activate for Production

  1. Turn on the workflow toggle to make it run automatically every hour.
  2. Optionally, monitor execution logs in n8n to ensure it runs correctly.

For long-term control and removing limits, consider self-host n8n.


Common Customizations

  • Change the IF node phrase from “Out Of Stock” to other stock terms like “Sold Out.”
  • Adjust the Cron node to check more or less often, like every 30 minutes or daily.
  • Add more Discord nodes to send alerts to different channels or teams.
  • Add email notifications using a Gmail node alongside Discord alerts.
  • If API returns JSON stock data, set HTTP Request node to JSON format and adapt IF node accordingly.

Handling Problems and Failures

  • Empty HTTP Request Data: Check URL is right and website allows requests. Add headers or user-agent if needed.
  • Discord Message Not Sent: Verify webhook URLs are exactly correct. Test manually.
  • IF Node Condition Always False: Confirm phrase spelling and case. Use lowercase or regex for better matching.

Summary

✓ Saves hours daily by automating stock checks.
✓ Sends instant Discord alerts on stock changes.
✓ Helps avoid selling out-of-stock items.
✓ Keeps sales teams updated automatically.
✓ Easy to customize for phrases, frequency, and alerts.

Frequently Asked Questions

Yes, by duplicating the HTTP Request node for each URL or cloning the workflow.
No, Discord webhooks are free but n8n workflow runs may count toward plan limits.
Incorrect phrase spelling, case differences, or phrase not present in the webpage HTML.
Yes, if HTTP Request node is set to parse JSON and IF node logic is updated accordingly.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free