#342 Demo: Smart Dunning & Subscription Recovery
Description
Edit## Overview
Sophisticated billing recovery system managing failed payment lifecycle over weeks.
## Workflow Steps
1. Payment fails (trigger)
2. Send 'Update Card' email
3. Sleep 3 days
4. Check if card updated (HTTP call to billing API)
5. If no: Retry charge
6. If fail: Downgrade service tier
7. Notify user
8. Sleep 7 days
9. Cancel account
## Tools Required
- tools.email.send ✅
- tools.http.request ✅ (billing API)
- Payment Gateway App ❌ (Stripe/PayPal - marketplace)
## DSL Operators
TaskOperator, WaitOperator, ConditionalOperator, ErrorHandler
## Mock Implementation
- Mock billing API with HTTP endpoints
- Simulate payment success/failure
## Durable Advantages
- Manages weeks-long grace period
- No cron jobs or external state DB needed
- Automatic state persistence
Comments
Loading comments...
Context
Loading context...
Audit History
View AllLoading audit history...