Stripe Integration Examples
Real-world examples of how your agent can handle payment scenarios with Stripe.Example 1: Payment Processing Agent
Customer: “I want to pay my invoice” Agent: “You have an outstanding invoice #1234 for $150. Would you like to pay now?” Customer: Clicks “Yes, pay now” button Agent: Creates payment intent in Stripe Agent: “Please complete your payment here: [secure payment link]” Customer: Completes payment via Stripe checkout Agent: Receives webhook confirmation Agent: “Payment received! Your invoice #1234 is now paid. Transaction ID: ch_abc123”Example 2: Balance Check Agent
Customer: “What do I owe?” Agent: Looks up customer by email from conversation Agent: Calls Stripe Get Customer Balance action Agent: “Your current account balance is $250. You have 2 unpaid invoices.” Customer: “Show me the invoices” Agent: Lists invoices with amounts and due datesExample 3: Subscription Management
Customer: “I want to upgrade my plan” Agent: “You’re currently on the Basic plan ($10/month). Available upgrades:”- Pro plan - $25/month
- Enterprise plan - $50/month
Example 4: Invoice Generation
Customer: “Create an invoice for the consulting work” Agent: “I’ll create an invoice for you. What should I include?” Customer: “5 hours at $100/hour” Agent: Captures details Agent: Creates invoice in Stripe with line items Agent: Sends invoice via Stripe Agent: “Invoice #5678 created and sent to your email (john@example.com). Total: $500. Due: February 15th.”Example 5: Refund Request
Customer: “I need a refund for order #9876” Agent: “Let me look up your order” Agent: Retrieves charge details from Stripe Agent: “Order #9876 was $75 charged on January 10th. Confirming refund policy…” Agent: Checks refund eligibility (within 30 days, etc.) Agent: “Refund approved. Processing $75 refund now…” Agent: Issues refund via Stripe API Agent: “Refund processed successfully! You’ll see $75 back in your account within 3-5 business days. Refund ID: re_xyz789”Example 6: Subscription Cancellation
Customer: “I need to cancel my subscription” Agent: “I can help you cancel. You’re currently on the Pro plan ($25/month, renews March 1st).” Agent: “Would you like to:”- Cancel immediately (no refund)
- Cancel at end of billing period (access until March 1st)