Telegram bot for cleaning Amazon Affiliate URLs using regular expressions

Effortlessly clean up Amazon Affiliate URLs using our Telegram bot. No tech expertise required!

  • Instantly when the trigger is activated
  • Instantly when receiving a command (telegrambot → webhook_command)
  • Extract data using regular expressions (btztextparser → multiple_regular_expressions)
  • Reply to the user (telegrambot → reply)

Automate this task with 4 simple prompts

Copy and paste the following prompts into Botize's AI task editor

  1. 2

    Select the AI editing tool.

    AI Prompt Tool
  2. 3

    Set up the automation to trigger immediately when activated.

    Copy and paste this prompt into the AI editing tool.

    Make sure the automation starts as soon as it's turned on or activated.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  3. 4

    Detect when someone sends a command in Telegram to the bot.

    Copy and paste this prompt into the AI editing tool.

    Configure the bot so that it listens for messages with the /url command from any chat, including private messages to me.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  4. 5

    Extract the ASIN and domain from the provided Amazon URL using regular expressions.

    Copy and paste this prompt into the AI editing tool.

    Process the received message to find and extract the ASIN (Amazon Standard Identification Number) and the domain from the given URL. Use regular expressions to get only the clean ASIN and clean domain parts.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  5. 6

    Send a reply to the user with the cleaned Amazon URL.

    Copy and paste this prompt into the AI editing tool.

    Reply to the user by sending a new Amazon link that combines just the domain and the ASIN in the following format: [domain]/dp/[asin].

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  6. 7

    Your automation is ready to use. Click the 'Save changes' button.

    Save changes

Simplify Your Amazon Links Instantly

Here's how it works: Just send a command through Telegram, and our bot will fetch the ASIN and domain from your provided URL, then return a clean version. Easy, right?

Manual Botize
Manually extracting ASIN 5 0 Minutes
Manually cleaning domain 5 0 Minutes
Total 10 0 Minutes

Finally, the tool you've been searching for to tidy up those confusing Amazon URLs.


Example 1: Amazon Affiliates

Transform long affiliate links into clean, shareable URLs.

Quick & Easy

Streamlines link cleaning in seconds.

Accurate Parsing

Ensures precise extraction using regex.

User-Friendly

No technical skills needed to operate.


Example 2: Simplifying Links

Perfect for bloggers who embed clean links for improved aesthetics.

🔗

⌾︎ Affiliate marketers who deal with Amazon links daily.

⌾︎ Anyone looking to clean up Amazon URLs without hassle.

✕ Tech experts wanting more complicated solutions.

✕ Users not familiar with Telegram or those without internet connection.


✓ Change the command trigger words in Telegram.

✓ Modify the regex patterns for different link structures.

✓ Customize the bot's response messages for a personal touch.




This Telegram bot is designed to clean Amazon Affiliate URLs using regular expressions. It works as follows: first, it triggers when it receives a command in Telegram. Then, it uses regular expressions to extract the ASIN (Amazon Standard Identification Number) and the domain from the provided URL. Finally, it responds to the user with a new clean URL containing only the domain and the ASIN.

Related automations