{"product_id":"stripe-charge-success-send-thank-you-receipts-via-gmail","title":"Stripe Charge Success: Send Thank-You Receipts via Gmail","description":"\u003ch3\u003eAutomatically send a thank-you receipt email when Stripe charges succeed—powered by AI\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow listens for \u003cstrong\u003eStripe charge.succeeded\u003c\/strong\u003e events, generates a personalized thank-you and receipt message with \u003cstrong\u003eAnthropic Claude\u003c\/strong\u003e, logs the payment to an \u003cstrong\u003en8n Data Table\u003c\/strong\u003e, and emails the customer via \u003cstrong\u003eGmail\u003c\/strong\u003e. No manual follow-up needed.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers on successful payment:\u003c\/strong\u003e When Stripe reports a successful charge (\u003ccode\u003echarge.succeeded\u003c\/code\u003e), the workflow starts automatically.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts and normalizes payment details:\u003c\/strong\u003e It pulls and normalizes customer name, email, amount, currency, and payment description from the Stripe event.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGenerates an email with AI:\u003c\/strong\u003e Using \u003cstrong\u003eAnthropic Claude\u003c\/strong\u003e (via \u003cstrong\u003eLangChain\u003c\/strong\u003e), it creates:\n    \u003cul\u003e\n      \u003cli\u003eA warm email subject\u003c\/li\u003e\n      \u003cli\u003eAn HTML thank-you + receipt message\u003c\/li\u003e\n      \u003cli\u003eA one-line internal finance summary\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs payment records:\u003c\/strong\u003e It combines AI output with the normalized fields, adds a timestamp, and writes the details and finance summary into an \u003cstrong\u003en8n Data Table\u003c\/strong\u003e (e.g., \u003cstrong\u003epayment_log\u003c\/strong\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends the email via Gmail:\u003c\/strong\u003e It delivers the generated thank-you\/receipt to the customer using a \u003cstrong\u003eGmail OAuth2\u003c\/strong\u003e connection.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS teams sending immediate purchase confirmations after successful Stripe payments.\u003c\/li\u003e\n  \u003cli\u003eE-commerce operators reducing support\/admin time by automating receipt emails.\u003c\/li\u003e\n  \u003cli\u003eFinance-adjacent teams maintaining a structured \u003cstrong\u003epayment_log\u003c\/strong\u003e for reconciliation.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eStripe Trigger:\u003c\/strong\u003e \u003ccode\u003echarge.succeeded\u003c\/code\u003e webhook\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAI generation:\u003c\/strong\u003e Anthropic Claude (Claude Sonnet 4.6) via LangChain agent node (\u003ccode\u003en8nn8n-nodes-langchainagent\u003c\/code\u003e)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eData logging:\u003c\/strong\u003e \u003cstrong\u003en8n Data Table\u003c\/strong\u003e (e.g., \u003ccode\u003epayment_log\u003c\/code\u003e)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEmail delivery:\u003c\/strong\u003e \u003cstrong\u003eGmail\u003c\/strong\u003e node with OAuth2\u003c\/li\u003e\n  \u003cli\u003eWorkflow composition includes nodes like \u003cstrong\u003eset\u003c\/strong\u003e and a \u003cstrong\u003esticky note\u003c\/strong\u003e for clarity\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cstrong\u003eSetup reminder:\u003c\/strong\u003e Ensure the Stripe charge includes a valid customer email (e.g., \u003ccode\u003ebilling_details.email\u003c\/code\u003e or \u003ccode\u003ereceipt_email\u003c\/code\u003e) so Gmail has a proper recipient address.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45742802960563,"sku":"N8N-17575","price":69.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/0RcyOo8mTLeXMtOuoJCU9_GF9FN3sZ.png?v=1785402691","url":"https:\/\/buyflowscripts.com\/products\/stripe-charge-success-send-thank-you-receipts-via-gmail","provider":"N8N Commerce","version":"1.0","type":"link"}