Skip to main content

Auto-track Amazon prices with Google Gemini & send alerts to Telegram

Workflow preview

Workflow preview
100%
Auto-track Amazon prices with Google Gemini & send alerts to Telegram preview
Open on n8n.io

Important notice

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

1. Workflow Overview

AI Powered Amazon Price Tracker to Telegram Overview Automate your deal hunting with this intelligent Amazon price tracker. This workflow uses the power of AI to monitor any Amazon product page at ...

Best for

  • Crypto Trading automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.cron, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.telegram

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Issam AGGOUR.

Original n8n.io source

1.1 Workflow description

Title
Auto-track Amazon prices with Google Gemini & send alerts to Telegram
Workflow name
Auto-track Amazon prices with Google Gemini & send alerts to Telegram

AI-Powered Amazon Price Tracker to Telegram

Overview

Automate your deal hunting with this intelligent Amazon price tracker. This workflow uses the power of AI to monitor any Amazon product page at regular intervals. When the price drops to or below your desired target, it instantly sends a notification to your Telegram chat. Say goodbye to manual price checking and never miss a sale, a lightning deal, or a Black Friday bargain again.

Unlike traditional scrapers that break when a website's layout changes, this workflow uses a Large Language Model (Google Gemini) to understand the page content, making it significantly more robust and reliable.

🚀 Key Features

  • AI-Powered Data Extraction: Leverages Google Gemini to intelligently read the product page and extract the name and price, making it resilient to Amazon's frequent layout updates.
  • Scheduled Automation: Set it up once with a schedule (e.g., every hour) and let it run in the background.
  • Instant Telegram Alerts: Get real-time notifications directly in Telegram the moment a price drops to your target.
  • Centralized & Easy Configuration: A single Set node holds all your settings—product URL, target price, and Telegram Chat ID—for quick and easy updates.
  • Built-in Error Handling: Intelligently checks if data was extracted correctly and sends an error alert if it fails, so you're always in the loop.
  • Cost-Efficient Processing: Includes a pre-processing step to clean and simplify the page's HTML, reducing the amount of data sent to the AI and lowering potential token costs.

⚙️ How It Works

The workflow follows a clear, linear process from scheduling to notification.

1. Initiation and Configuration

  • A Schedule node triggers the workflow automatically at your chosen interval (e.g., every hour).
  • A Set node named Config: Product & Alert acts as your control panel. Here, you define the Amazon product URL, your target price, and your Telegram Chat ID.

2. Fetch and Clean Product Page

  • An HTTP Request node fetches the full HTML content of the Amazon product URL.
  • A Code node then cleans this raw HTML. It strips out unnecessary scripts, styles, and tags, leaving only the core text content. This crucial step makes the data easier for the AI to analyze accurately and efficiently.

3. AI-Powered Data Extraction

  • An AI Agent node sends the cleaned text to the Google Gemini model.
  • It uses a specific prompt to ask the AI to identify and extract the product's name (productName) and its current price (priceValue) as a number.
  • A Structured Output Parser ensures the AI returns the data in a clean, predictable JSON format (e.g., {"productName": "...", "priceValue": 49.99}), which is essential for the next steps.

4. Validate and Compare Price

  • An IF node first validates the AI's output, checking if a valid price was successfully extracted. If not, it routes the workflow to send an error message.
  • If the data is valid, a second IF node compares the extracted priceValue with your priceTarget from the configuration node.

5. Prepare and Send Telegram Notification

  • If the current price is less than or equal to your target price, the workflow proceeds down the "true" path.
  • A Set node constructs a formatted, user-friendly success message including the product name, the new low price, and a direct link to the product page.
  • Finally, a Telegram node sends this prepared message to your specified Chat ID. If an error occurred at any stage, a corresponding error message is sent instead.

🛠️ Setup Steps & Credentials

To get this workflow running, you'll need to configure the following:

  1. Google Gemini:
    • You need a Google AI (Gemini) API Key.
    • Create a Google Gemini(PaLM) Api credential in n8n.
    • Assign this credential to the Google Gemini Chat Model node.
  2. Telegram:
    • You need a Telegram Bot Token. Get one by talking to the @BotFather on Telegram.
    • You also need your personal Chat ID. You can get this from a bot like @userinfobot.
    • Create a Telegram credential in n8n with your Bot Token.
    • Assign this credential to both the Send Success and Send Error Telegram nodes.
  3. Workflow Configuration:
    • Open the Config: Product & Alert node.
    • Replace the placeholder values:
      • telegramChatId: Paste your Telegram Chat ID.
      • amazonUrl: Paste the full URL of the Amazon product you want to track.
      • priceTarget: Set your desired price (e.g., 49.99).

Once configured, save the workflow and activate it using the toggle in the top-right corner.

đź’ˇ Customization & Learning

This workflow is a powerful template that you can easily adapt and expand:

  • Track Multiple Products: Modify the workflow to read product URLs and target prices from a Google Sheet or Airtable base to monitor many items at once.
  • Add More Notification Channels: Duplicate the Telegram node and add Discord, Slack, or Email nodes to receive alerts on multiple platforms.
  • Store Price History: Connect a Google Sheets, Airtable, or database node after the AI extraction step to log the price of the product over time, creating a historical price chart.
  • Switch AI Models: Easily swap the Google Gemini node for an OpenAI or Anthropic model by adjusting the prompt and credentials.

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 - Sticky Note1

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

Block 2 - Sticky Note2

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

Block 3 - Sticky Note3

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

Block 4 - Sticky Note4

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

Block 5 - Sticky Note5

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

Block 6 - Set: Success Message

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Set: Error Message

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Config: Product & Alert

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 10 - Schedule Trigger1

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

Block 11 - Sticky Note6

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

Block 12 - Google Gemini Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 13 - Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 14 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 15 - Send Error

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

Block 16 - Send Success

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

Block 17 - If

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

Block 18 - IF: Price <= Target?

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

Block 19 - Fetch HTML

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

Block 20 - Parse and clean HTML

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Sticky Note

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

Block 22 - Sticky Note7

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

3. Summary Table

Workflow Auto-track Amazon prices with Google Gemini & send alerts to Telegram
Complexity advanced
Nodes 22
Categories Crypto Trading, AI Chatbot
Author Issam AGGOUR
Published 02 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8175/8175.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 Auto-track Amazon prices with Google Gemini & send alerts to Telegram do?

AI Powered Amazon Price Tracker to Telegram Overview Automate your deal hunting with this intelligent Amazon price tracker. This workflow uses the power of AI to monitor any Amazon product page at ...

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, AI Chatbot use case.