Shopify Abandoned Cart Alerts
Every six hours, fetches abandoned carts from Razorpay and sends a formatted alert to your Telegram bot.
What it does
Catch abandoned carts automatically every six hours as the agent fetches data from Razorpay and sends you clean alerts via your Telegram bot. You receive formatted messages with customer details and order values so you can track lost sales without manual checks.
Step by step
- Configure the Razorpay webhook or polling interval to run every six hours using a cron expression.
- Map the specific JSON fields from the Razorpay abandoned cart response to your internal data structure.
- Use the Telegram Bot API sendMessage endpoint with the formatted text payload.
Where the LLM does the work
- Generate the natural language template for the alert message that balances urgency with politeness.
- Write the code logic to handle edge cases like missing customer email addresses in the cart data.
- Design the error handling strategy for transient network failures during API calls.
Watch out for
Telegram messages have a character limit of 4096, so truncate long product lists in the alert message to avoid API rejection errors.
Store owner privacy laws require explicit consent for marketing, so add a check to ensure the customer has opted into notifications before sending alerts.
Tools that fit
Code LLM Format customer and cart details into readable text
The agent brief
Everything your agent needs, including the gotchas. Copy it and go.
You are helping me build the following AI agent workflow. ## Goal Shopify Abandoned Cart Alerts: Every six hours, fetches abandoned carts from Razorpay and sends a formatted alert to your Telegram bot. ## Specification - What it does: Catch abandoned carts automatically every six hours as the agent fetches data from Razorpay and sends you clean alerts via your Telegram bot. You receive formatted messages with customer details and order values so you can track lost sales without manual checks. - Trigger: On a schedule (Scheduled · every 6 hours) - Autonomy: Fully hands-off - Expected setup effort: under an hour - Tools/services involved: - Razorpay API: Fetch abandoned cart data - Code: Format customer and cart details into readable text - Telegram: Send automated alerts to bot ## Known pitfalls, handle each one explicitly in your implementation 1. Telegram messages have a character limit of 4096, so truncate long product lists in the alert message to avoid API rejection errors. 2. Store owner privacy laws require explicit consent for marketing, so add a check to ensure the customer has opted into notifications before sending alerts. ## Reference implementation https://n8n.io/workflows/8092 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/automated-shopify-abandoned-cart-alerts/ via usecasesforagents.com
Frequently asked questions
Can I use a different Payments than Razorpay API?
Yes. Razorpay API is only the example payments in this recipe. The same flow works with PayPal and Stripe. Swap the payments connection and keep the rest of the setup as written.
Want this running in your business?
This is what I do. I design and build AI agents like this one, and keep them running. If you want it set up for your team instead of doing it yourself, get in touch.
Who it's for
Built for founders and execs who need e-commerce handled without hiring for it.
Also fits E-commerce Operator.