You are helping me build the following AI agent workflow. ## Goal Stripe Invoice Generation and Delivery: On successful payment, it validates the amount, generates a Net 30 invoice PDF, emails it to the customer, saves it to Drive. ## Specification - What it does: Receive a finalized Net 30 invoice PDF immediately after your payment succeeds, delivered directly to the customer's email and saved securely in your Google Drive. This process validates the transaction amount automatically and notifies you via WhatsApp once everything is complete. - Trigger: Triggered by an event (Event ยท on successful Stripe payment) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Stripe: Trigger and invoice creation - Gmail: Sending invoices to customers - Google Drive: Storing invoice PDFs - Rapiwa: Sending admin WhatsApp notifications ## Known pitfalls, handle each one explicitly in your implementation 1. Gmail API quotas may restrict bulk sending so add a small delay between emails if processing high volumes. 2. PDF rendering libraries often struggle with complex CSS so test the template layout with edge case currency formats early. 3. WhatsApp messages via Rapiwa require valid phone numbers in E.164 format so validate and clean customer data before sending. ## Reference implementation https://n8n.io/workflows/16480 (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/automate-stripe-invoice-generation-and-delivery/ via usecasesforagents.com