📱 Find AliExpress affiliate products via Telegram with OpenAI and Decodo

⚡ 109 views · 📱 Social Media & Email Marketing

💡 Pro Tip — HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it — it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

Find and share AliExpress affiliate products through Telegram

Build a Telegram bot that helps users find AliExpress products using natural language requests. The bot uses OpenAI to optimize search queries, Decodo to scrape product listings, and AI analysis to select the best options based on ratings, reviews, and price—then automatically generates affiliate tracking links for each recommendation.

What it does

When users send “Find me wireless keyboard”:

  1. Bot checks user is member of your Telegram channel (optional)
  2. Validates command starts with accepted phrases
  3. OpenAI generates optimized English search query
  4. Decodo scrapes products from AliExpress
  5. AI analyzes the top 10 products and selects best 2 based on reviews, ratings, and price
  6. AliExpress Affiliate API creates tracking links
  7. Bot sends formatted recommendations with images, prices, ratings, and links

Who this is for

Setup requirements

Credentials needed

Telegram Bot API

AliExpress Affiliate API

OpenAI API

Configuration required

Before activation:

  1. Channel username - Replace @YOUR_CHANNEL in 2 nodes:

    • Check Channel Membership
    • Verify Channel Member
  2. Tracking ID - Set YOUR_AFFILIATE_TRACKING_ID in:

    • Generate Affiliate Links
    • Create Affiliate Link
  3. Channel URL - Update button in Request Channel Join

  4. Bot admin - Make bot admin in your channel

How to use

User commands

Users send messages starting with:

Examples:

Bot responses

Non-member: Asks to join channel

Invalid format: Shows usage examples

Valid request:

  1. Sends “searching…” status
  2. Processes with AI
  3. Returns 2 recommendations
  4. Each includes: image, title, price, rating, orders, link
  5. “More Results” button available

Customization options

Product count: Edit “Select Top 2 Products” node

Selection criteria: Modify AI prompts in “AI Product Search”

Commands: Add/remove in “Validate Command Format”

Channel gate: Delete verification nodes to remove

Language: Translate Telegram message nodes

AI model: Switch to GPT-3.5-turbo for lower costs

Technical details

Workflow components:

APIs used:

Error handling:

Best practices

Cost management:

Security:

Performance:

Troubleshooting

Bot not responding

Channel verification fails

No products found

Links broken

Version

Version: 1.0
Updated: January 2026
Compatible: n8n v1.0+
Setup: 10-15 minutes

đź”— Nodes Used

HTTP Request, Telegram, Telegram Trigger, Filter, OpenAI

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup