Automation library · Money admin

Send Stripe payment invoices with Gmail and Google Drive

Started by an event in a connected app, and works across Gmail, Google Drive and Stripe. 21 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large

21 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 1Logic 8Service 12

The steps in the order they run, from what starts it.

  1. 1Stripe (Trigger Payment Succeeded)Stripe triggerStarts it
  2. 2Code (Get payment data, amount & currency)CodeLogic
  3. 3HTTPS (Get Line Items)Http RequestService
  4. 4IfIfLogic
  5. 5Get a customer1StripeService
  6. 6HTTPS (Get all Invoices)Http RequestService
  7. 7Code (Format Invoice Data)CodeLogic
  8. 8Code (payment summary)CodeLogic
  9. 9HTTPS (Create Stripe Invoice)Http RequestService
  10. 10List InvoicesSplit OutLogic
  11. 11Email (Send Invoice)GmailService
  12. 12HTTPS (Download PDF)Http RequestService
  13. 13Stripe (Get a customer)StripeService
  14. 14HTTPS (Finalize Invoice)Http RequestService
  15. 15Loop Over ItemsSplit In BatchesLogic
  16. 16Rapiwa (Notification Admin by WhatsApp)RapiwaService
  17. 17Invoice Save to Google DriveGoogle DriveService
  18. 18HTTPS (Generate Payment Links)Http RequestService
  19. 19Code (Format Data for Sheets)CodeLogic
  20. 20We do only Invoice ObjectsIfLogic
  21. 21HTTPS (Download Invoice PDF from Stripe)Http RequestService

How it's built

Starts on
An event in a connected app
Steps
21, with 2 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Drive, Stripe
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Drive and Stripe accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 21 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 21 steps before you point it at anything that matters.