Switch to English?
Yes
Переключитись на українську?
Так
Переключиться на русскую?
Да
Przełączyć się na polską?
Tak

Automating the creation of promo codes on Horoshop via Puppetee

The project was developed as a backend automation service that reacts to incoming webhooks and performs actions in a third-party e-commerce system without direct API access. The primary goal was to fully automate the creation of discount promo codes while ensuring transparency and real-time monitoring of the process.

The server receives webhooks from external systems containing order and customer data (order ID, email, phone number, promo code, expiration date, pet type, pet name, etc.). After server-side validation, the same request data is forwarded to a Telegram chat via a bot, enabling real-time visibility of all incoming requests and their processing status.

Once validated, the service triggers an automation workflow using Puppeteer. Through a headless browser, the system logs into the e-commerce admin panel, navigates to the appropriate section, and creates a promo code with predefined parameters such as discount type, code value, expiration date, and business constraints. All actions are executed programmatically and mirror real user interactions with the interface.

After successful execution, the service sends a confirmation message to the Telegram chat, including the generated promo code and the total processing time. In case of errors or unexpected behavior, Telegram serves as an operational alerting channel for fast diagnostics and control.

The project was designed with stability and scalability in mind, featuring structured logging, duplicate request protection, controlled retries, and centralized monitoring of the automation flow.

#NodeJS #Automation #webhooks #puppeteer #telegrambotapi #Backend #ecommerce
Work details
Added 7 January
85 views
Freelancer
Alina Zhyzhkevych
Ukraine Kyiv
No reviews

Available for hire Available for hire
On the service 2 years