Send Stripe payment thank-you receipts with Claude Sonnet and Gmail
Quick overview This workflow triggers on successful Stripe charges, normalizes payment details, uses Anthropic Claude to generate a personalized thank-you and receipt message, logs the payment to an n8n Data Table, and emails the customer via Gmail.
How it works Triggers when Stripe reports a successful charge (charge.succeeded). Extracts and normalizes the customer name, email, amount, currency, and payment description from the Stripe event. Uses Anthropic Claude (via LangChain) to generate a warm email subject, an HTML thank-you/receipt message, and a one-line internal finance summary. Combines the AI output with the normalized payment fields and adds a timestamp for logging. Writes the payment details and summary into an n8n Data Table for finance records. Sends the generated thank-you and receipt email to the customer using Gmail.
Setup Add Stripe credentials and enable the Stripe trigger so Stripe can register the charge.succeeded webhook. Add an Anthropic credential (Claude Sonnet 4.6) for the AI-generated subject, message, and internal summary. Add a Gmail OAuth2 connection and ensure the workflow is allowed to send emails from the connected mailbox. Create or select the n8n Data Table named payment_log (or update the table selection) to store the payment records. Confirm your Stripe charge data includes a customer email (billing_details.email or receipt_email) so Gmail has a valid recipient address.
Requirements n8n instance with the Data Table feature enabled Stripe account + API key (the trigger registers the webhook automatically) Anthropic API key (Claude) Gmail account connected via OAuth2
Customization Listen to other Stripe events — charge.refunded, charge.dispute.created, customer.subscription.deleted, invoice.payment_failed — and branch a different flow for each Add an IF for high-value payments to trigger a VIP/owner alert Attach a PDF invoice (via a PDF node) to the thank-you email Send the payment record to QuickBooks, a Google Sheet, or Slack instead of (or alongside) the data table Localize the email by currency/country for international customers
Additional info App-event trigger: Stripe fires the workflow the instant a payment succeeds — no polling, no manual webhook setup. Claude confirms the exact amount, currency, and item and never invents order numbers, discounts, or promises. Universal for any business taking Stripe payments: SaaS, e-commerce, coaching, agencies, communities.
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Product Ad Copy & CTAs with GPT-4 for Slack and Airtable
⚡ AI Copywriter Pro: Instant Ad Copy & CTA Generator Transform product details into compelling marketing copy in second...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments