Automation library · Money admin

Automated template delivery system with Stripe and Gmail

Started by a clock, and works across Gmail, Google Sheets and Stripe. It hands the judgement calls to Azure OpenAI. 25 steps, 4 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Azure OpenAI

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

The flow

Starts it 1Model 6Logic 11Service 7

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

  1. 1Azure OpenAI Chat ModelLm Chat Azure Open AiModel
  2. 2Structured Output ParserOutput Parser StructuredModel
  3. 3Azure OpenAI Chat Model1Lm Chat Azure Open AiModel
  4. 4Structured Output Parser1Output Parser StructuredModel
  5. 5Get row(s) in sheet in Google SheetsGoogle Sheets ToolService
  6. 6Schedule Trigger DailySchedule triggerStarts it
  7. 7AI Agent – Email ComposerAgentModel
  8. 8AI Agent → Google Sheets LookupAgentModel
  9. 9Stripe Data CollectionStripeService
  10. 10Send a message (Gmail)GmailService
  11. 11Check Match FoundIfLogic
  12. 12Filter – Successful ChargesFilterLogic
  13. 13Append or update row in sheet For TrackingGoogle SheetsService
  14. 14Combine Stripe + Sheet DataMergeLogic
  15. 15Get Payment Intent (From Charge)Http RequestService
  16. 16Merge Charge + PaymentIntent + ProductMergeLogic
  17. 17Loop Over Items of New PurchasesSplit In BatchesLogic
  18. 18Customer matchingCodeLogic
  19. 19Get row(s) in sheet – Purchase Sheet LookupGoogle SheetsService
  20. 20If1IfLogic
  21. 21Merge Logic Format DataCodeLogic
  22. 22SQL CombineMergeLogic
  23. 23Get Product Details (from Payment Intent)Http RequestService
  24. 24Check Required FieldsIfLogic
  25. 25Check Automation ExistsIfLogic

How it's built

Starts on
A clock
Steps
25, with 4 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets, Stripe
Model
Azure OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Stripe accounts, and a key for Azure OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Azure OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 25 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 25 steps before you point it at anything that matters.