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
Automate stock checks with n8n and Discord

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

Learn how to Build this Workflow with AI:

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.

Automate stock checks with n8n and Discord

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.