๐Ÿ”ฌ Send Stripe payment thank-you receipts with Claude Sonnet and Gmail

โšก 6 views ยท ๐Ÿ”ฌ Document Extraction & Analysis

Description

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

  1. Triggers when Stripe reports a successful charge (charge.succeeded).
  2. Extracts and normalizes the customer name, email, amount, currency, and payment description from the Stripe event.
  3. Uses Anthropic Claude (via LangChain) to generate a warm email subject, an HTML thank-you/receipt message, and a one-line internal finance summary.
  4. Combines the AI output with the normalized payment fields and adds a timestamp for logging.
  5. Writes the payment details and summary into an n8n Data Table for finance records.
  6. Sends the generated thank-you and receipt email to the customer using Gmail.

Setup

  1. Add Stripe credentials and enable the Stripe trigger so Stripe can register the charge.succeeded webhook.
  2. Add an Anthropic credential (Claude Sonnet 4.6) for the AI-generated subject, message, and internal summary.
  3. Add a Gmail OAuth2 connection and ensure the workflow is allowed to send emails from the connected mailbox.
  4. Create or select the n8n Data Table named payment_log (or update the table selection) to store the payment records.
  5. Confirm your Stripe charge data includes a customer email (billing_details.email or receipt_email) so Gmail has a valid recipient address.

Requirements

Customization

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.

๐Ÿ”— Nodes Used

Stripe Trigger, Gmail, AI Agent, Anthropic Chat Model, Structured Output Parser, Data table

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup