Scenario
Pull subscriptions withstatus=past_due or status=canceled along with payment failure history. Extract traits — plan type, tenure, failed attempts — and feed into Mavera for personalized retention messaging.
Architecture
Code
Example Output
Error Handling
Stripe: Subscription expand depth error
Stripe: Subscription expand depth error
Stripe limits expansion depth. For nested data like
customer.default_payment_method, make a separate stripe.Customer.retrieve() call.Mavera: Generation prompt too long (413)
Mavera: Generation prompt too long (413)
Prompts capped at 8,000 tokens. Batch profiles into groups of 20 or summarize into aggregate statistics.